codex - 💡(How to fix) Fix Codex CLI may be nerd-sniped handling an interruption instead of resuming prior work [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#21410Fetched 2026-05-07 03:40:29
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2closed ×1

Code Example

User: Create a v3 version of this briefing and make the remaining revisions.
Codex: Starts editing the v3 briefing.

User: Create a child issue for this work, then continue with your edit.
Codex: Creates the child issue, explicitly resumes the v3 briefing edits, finishes them, and reports both outcomes.
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.128.0

What subscription do you have?

ChatGPT Pro

Which model were you using?

No response

What platform is your computer?

No response

What terminal emulator and version are you using (if applicable)?

No response

What issue are you seeing?

When I interrupt Codex mid-task with a separate request, it may handle the interruption and then stop, rather than returning to the work it was doing before the interruption.

Expected behavior: Codex should preserve the active task stack. If the interruption is additive and does not supersede the prior task, Codex should handle it inline or acknowledge it, then resume the previous task from the last safe point.

The agent should only abandon the prior task if I explicitly cancel it, the interruption clearly replaces the prior goal, or the interruption changes the prior work enough that clarification is needed.


Importantly, Codex cli is very good at incorporating additional detail on a large request over consecutive prompts that ~interrupt its thinking on an original prompt.

It is when a competing problem to be solved (a side quest) is introduced that it will fail to ~exit ~the recursion.

What steps can reproduce the bug?

  1. Ask Codex to perform a multi-step task, such as drafting or editing a technical brief.
  2. While Codex is partway through that work, interrupt with a smaller request, such as creating an issue, checking a command, or answering a quick question.
  3. After Codex handles the interruption, observe whether it returns to the prior task.
  4. Often, Codex treats the interruption as the only active task and stops instead of resuming the original work.

Example expected handling:

User: Create a v3 version of this briefing and make the remaining revisions.
Codex: Starts editing the v3 briefing.

User: Create a child issue for this work, then continue with your edit.
Codex: Creates the child issue, explicitly resumes the v3 briefing edits, finishes them, and reports both outcomes.

The desired behavior is that interruptions are additive by default unless explicitly superseding.

What is the expected behavior?

No response

Additional information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING