Skip to content

Codex Desktop automatically marks Goal blocked after transient gpt-5.6-sol capacity errors without an update_goal call #41808

Open

Description

@huangh-git

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=false
  • token_limit_reached=false

This was therefore not a context-window or Goal token-budget stop.

Reproduction

  1. Start a long-running Goal in Codex Desktop.
  2. Use gpt-5.6-sol with medium reasoning.
  3. Let the Goal continue across multiple turns and execute tools.
  4. Encounter repeated transient Selected model is at capacity responses.
  5. Observe that ordinary WebSocket disconnects use the existing bounded retry path, while capacity errors terminate the turn without that retry path.
  6. After repeated capacity errors, inspect or resume the Goal.
  7. Observe that the Goal is persisted or displayed as blocked even 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 blocked for a genuine task impasse or an explicit supported state transition.

Related issues

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

  1. added
    bug
    app
    connectivity
    session
    on Aug 31, 2026
  2. github-actions commented on Aug 31, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. dllu commented on Sep 1, 2026

    @dllu

    my multi-day /goal run in codex cli was also paused due to transient capacity issues. Image

  4. metjm commented on Sep 1, 2026

    @metjm

    +1 same thing keeps happening to me

  5. bog-margo commented on Oct 29, 2026

    @bog-margo

    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.

    Goal Capacity failure (UTC) Next recorded turn start (UTC) Gap after failure
    A 02:53:57 07:51:06 4h 57m
    B 01:48:17 07:50:20 6h 02m

    Both failed task_complete events contain codex_error_info: server_overloaded and Selected model is at capacity. Please try a different model. Neither session records another task_started between 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.

  6. AntoninusPius commented on Oct 29, 2026

    @AntoninusPius

    Additional source-level finding: why an external Goal supervisor cannot safely repair this by treating every capacity-adjacent blocked state as retryable.

    We inspected the official rust-v0.160.0 source commit a956835d020762cb2b570053af06f643a11c0ecc and compared the public projection on main at 7f1c09979c79579c43b953762effe22eabc20e06. 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:

    • The Goal runtime distinguishes its internal turn-error stop and emits an internal event identifier.
    • The App Server extension adapter projects the Goal update to thread ID, optional turn ID, and Goal state. That public notification does not preserve a structured stop-origin receipt.
    • Consequently, an external consumer observing capacity plus blocked plus 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 visible update_goal call 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:

    1. Work/tool results → typed capacity failure → bounded recovery on the same Goal/model, without replaying completed effects.
    2. The same sequence with an explicit manual/tool stop must not auto-resume.
    3. Reconnect, newer Goal revision/replacement, duplicate observation and uncertain submission acknowledgement must not cause a duplicate continuation.
    4. Retry exhaustion must remain distinguishable from a semantic task blocker; pre-input compaction failure must not lose or duplicate submitted input.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugconnectivitysession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions