openai / openai/codex-plugin-cc
feat: add --resume-id <threadId> option to task command
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.mjshandleTask(): add--resume-idas a value optionbuildTaskRequest(): passresumeIdthroughexecuteTaskRun(): useresumeIddirectly when provided, fall back toresolveLatestTrackedTaskThread()for--resume-last
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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