openai / openai/codex-plugin-cc
Review commands should persist their Codex threads (write rollouts) like task runs do
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 33.3k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Behavior today
Review runs (/codex:review, /codex:adversarial-review) start their app-server threads with ephemeral: true (hardcoded in the review path), while task/rescue runs pass persistThread: true. Ephemeral threads never write a rollout to ~/.codex/sessions.
Why this is a problem
- The resume hint is broken for reviews.
/codex:statusprintscodex resume <session-id>for review jobs, but the thread is memory-only, so that ID goes dead as soon as the broker restarts. The printed hint promises something the implementation can't deliver. - Review usage is invisible locally. Token usage lives inside the rollout events; with no rollout, review runs never appear in
~/.codex/sessions, so local accounting tools that read the sessions tree (e.g.ccusage codex) see rescue usage but not review usage. - Two run kinds, two silent behaviors. Users have no reason to expect that a review and a rescue differ in persistence; the asymmetry is surprising and undocumented.
Request
Make review runs persist their threads unconditionally, exactly like task runs — not a flag, not a config option. Uniform behavior means the /codex:status resume hint is truthful for every job kind, and local usage accounting is complete for all plugin activity.
The plumbing already exists: persistThread in scripts/lib/codex.mjs (the thread-start call maps it to ephemeral); the review path just hardcodes ephemeral: true instead of using it.
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 scripts/lib/codex.mjs, comparing the review path's hardcoded ephemeral thread start with the task/rescue path's persistThread handling. Verify the change against /codex:review and /codex:adversarial-review: review sessions should write rollouts under ~/.codex/sessions, and the /codex:status resume hint should remain usable after a broker restart.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100