openai / openai/codex-plugin-cc

feat: add --resume-id <threadId> option to task command

Open Beginner friendly
#230 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
33.3k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Summary

The task command currently supports --resume-last (boolean) and --resume (boolean alias) to resume the latest thread, but there is no way to resume a specific thread by ID.

This is needed for workflows that manage multiple concurrent threads (e.g., parallel PR reviews) where --resume-last would pick the wrong thread.

Proposed Change

Add a new --resume-id <threadId> value option:

  • --resume-id <threadId> — resume the specified thread
  • --resume / --resume-last — resume the latest thread (existing behavior, unchanged)

Using --resume-id instead of overloading --resume preserves backward compatibility with the existing boolean --resume flag used by the rescue command routing.

This aligns with the @cursor/agent-plugin-cc companion which already supports --resume-id <threadId>.

Affected Files

  • plugins/codex/scripts/codex-companion.mjs
    • handleTask(): add --resume-id as a value option
    • buildTaskRequest(): pass resumeId through
    • executeTaskRun(): use resumeId directly when provided, fall back to resolveLatestTrackedTaskThread() for --resume-last

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in plugins/codex/scripts/codex-companion.mjs by reading handleTask(), buildTaskRequest(), and executeTaskRun(). Trace how --resume and --resume-last currently select a thread, then add the specified --resume-id value flow without changing existing boolean behavior. Done means a provided thread ID is used directly, while --resume-last still falls back to resolveLatestTrackedTaskThread().

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.