codex - 💡(How to fix) Fix /goal when blocked doesn't stop but keeps looping consuming tokens and API credits

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…

Code Example

not available
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

codex-cli 0.130.0

What subscription do you have?

PRO

Which model were you using?

gpt-5.5

What platform is your computer?

Windows 11

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

gitbash

Codex doctor report

not available

What issue are you seeing?

in /goal mode, when the goal is blocked requiring "operator" decision/input, it loops repeatedly. If the operator is away or run overnight, this loop continues indefinitely, compacting the context, still continuing, consuming API credits for ever multiple times.

What steps can reproduce the bug?

Uploaded thread: 019e3318-2b97-79d3-bc3d-1bca34d7ed3a. Here is the codex log output loop many such lines. Blocked on A*** authorization. I need explicit approval to cancel stale production orders 7***, 7***, and 7*** before continuing. Blocked pending explicit A*** production mutation approval. Required approval: cancel stale A*** orders 7***, 7***, and 7***. Blocked on A*** authorization. The next action is cancelling stale production orders 7***, 7***, and 7***; I need explicit approval before running it. Blocked pending explicit operator approval. Required A*** mutation: cancel stale production orders 7***, 7***, and 7***. Blocked on A***. I need explicit approval before mutating production state to cancel orders 7***, 7***, and 7***.

What is the expected behavior?

When blocked, /goal should pause , and wait for user to explicitly /goal resume.

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

codex - 💡(How to fix) Fix /goal when blocked doesn't stop but keeps looping consuming tokens and API credits