Repository navigation
Description
Codex App version
Codex Framework 151.0.7922.174; Codex runtime 0.151.0-alpha.7.1
Subscription
Pro
Platform
Darwin 25.5.0 arm64 arm
Summary
A long-running Codex Desktop Goal was automatically changed to blocked after transient model-capacity errors:
Selected model is at capacity. Please try a different model.
The user did not pause the Goal, and the agent did not call update_goal(status="blocked").
Observed state transition
A redacted local timeline from 2026-08-31:
2026-08-31 07:50:55Z | WebSocket disconnect | retrying sampling request (1/5 in 200ms)
2026-08-31 07:51:40Z | gpt-5.6-sol | medium | Selected model is at capacity
2026-08-31 07:51:40Z | Goal database status changed to blocked
2026-08-31 07:51:50Z | gpt-5.6-sol | medium | Selected model is at capacity
2026-08-31 07:53:14Z | gpt-5.6-sol | medium | Selected model is at capacity
A strict search found zero actual tool_name="update_goal" calls in the relevant window. The only loose text match came from tool/context documentation, not a tool invocation.
The task had already completed tools and made progress. Later continuation turns still executed after the persisted Goal status became blocked, leaving the scheduler, persisted Goal state, and UI inconsistent.
The same logs report:
full_context_window_limit_reached=falsetoken_limit_reached=false
This was therefore not a context-window or Goal token-budget stop.
Reproduction
- Start a long-running Goal in Codex Desktop.
- Use
gpt-5.6-solwithmediumreasoning. - Let the Goal continue across multiple turns and execute tools.
- Encounter repeated transient
Selected model is at capacityresponses. - Observe that ordinary WebSocket disconnects use the existing bounded retry path, while capacity errors terminate the turn without that retry path.
- After repeated capacity errors, inspect or resume the Goal.
- Observe that the Goal is persisted or displayed as
blockedeven though:- the user did not pause it,
- the agent did not call
update_goal(blocked), - later continuation turns can still execute.
The capacity response is backend-dependent and cannot be triggered deterministically.
Expected behavior
A transient model-capacity error should be classified as retryable and should not automatically convert an active Goal to blocked.
- Retry with bounded exponential backoff.
- Preserve completed tool results and accepted input.
- If the retry budget is exhausted, enter a retained-state waiting or paused state with explicit retry controls.
- Transition back to active when continuation resumes.
- Reserve
blockedfor a genuine task impasse or an explicit supported state transition.
Related issues
- Retry transient capacity errors with backoff and retained task state #22390 — transient capacity errors should retry and retain task state
- Goal mode can enter a one-way blocked state after a recoverable failure #36249 — Goal can enter a one-way blocked state after recoverable failure
- Blocked goal does not transition back to active when user resumes and agent continues work #29370 — blocked Goal may remain blocked while resumed work runs
- Codex Desktop emits “remote compact task” model-capacity error during automatic compaction #35911 —
gpt-5.6-sol+mediumcapacity error during compaction
This report adds a current Codex Desktop observation where the Goal database timestamp matches the capacity failure and no actual update_goal(blocked) call occurred.
Raw logs are intentionally not attached because they contain task content, thread IDs, local paths, tool arguments, and routing or authentication metadata. The timeline above is the redacted minimal evidence.
Activity
github-actions commentedon Aug 31, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
dllu commentedon Sep 1, 2026
my multi-day
/goalrun in codex cli was also paused due to transient capacity issues.metjm commentedon Sep 1, 2026
+1 same thing keeps happening to me
bog-margo commentedon Oct 29, 2026
Additional Windows Codex Desktop reproduction from two independent long-running Goals overnight on 2026-10-29. I inspected each thread's local session JSONL and am sharing only the user-approved redacted lifecycle events; no raw logs, task content, paths, account data, or thread IDs.
Both failed
task_completeevents containcodex_error_info: server_overloadedandSelected model is at capacity. Please try a different model.Neither session records anothertask_startedbetween that failure and the morning restart. The Goals were unfinished; the user found both idle in the morning and resumed them.This confirms two overnight unattended continuation gaps after capacity errors. It does not establish how long model capacity was unavailable, whether lower-level network retries occurred, or the exact component that prevented the next Goal turn. Expected: a transient capacity error should recover with bounded retries or show a clear waiting/exhausted state that accurately tells the user unattended work has stopped.
AntoninusPius commentedon Oct 29, 2026
Additional source-level finding: why an external Goal supervisor cannot safely repair this by treating every capacity-adjacent
blockedstate as retryable.We inspected the official
rust-v0.160.0source commita956835d020762cb2b570053af06f643a11c0eccand compared the public projection on main at7f1c09979c79579c43b953762effe22eabc20e06. Our installed CLI reports 0.160.0; this version string alone does not attest the running binary's exact source hash.On the inspected source paths:
blockedplus nearby timestamps cannot establish that the native error handler, rather than an explicit user/tool action, caused the current stop. A partial transcript or absence of a visibleupdate_goalcall is not sufficient proof either.Source references: Goal runtime, event emitter, App Server projection, public Goal types.
Preferred outcome is native-owned bounded capacity recovery, preserving accepted input/completed tool results and respecting explicit pause, replacement, completion and cancellation. If external recovery is intended to be supported instead, it needs authoritative Goal/source/revision-bound stop provenance with reconnect-safe readback AND a continuation mechanism that cannot race with newer user or Goal activity. Provenance alone does not make read-then-start atomic.
Suggested regressions:
PR #31058 explicitly leaves terminal Goal-level recovery to separate work; #31176 is closed. Is there a current owner or successor for that Goal-level work? Happy to provide a further minimal, redacted reproduction/design discussion through this issue, consistent with the contribution policy.
This is source analysis and a test proposal, not a claim of a tested native fix. No private transcripts, task content, local paths, thread IDs or credentials are included.