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
Summary
The
taskcommand 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-lastwould 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-idinstead of overloading--resumepreserves backward compatibility with the existing boolean--resumeflag used by the rescue command routing.This aligns with the
@cursor/agent-plugin-cccompanion 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