Skip to content

Goal mode cannot increase its token budget and resume after becoming budget_limited #34215

Open

Description

@abcjhby2871

What variant of Codex are you using?

Codex App / Goal mode (/goal). This likely also affects other clients that use the same thread-goal runtime.

What issue are you seeing?

When a Goal reaches its configured token budget, it enters the budget_limited state and stops substantive work. There does not appear to be a reliable user-facing way to increase that Goal's token budget and resume the same Goal.

Asking Codex to “increase the Goal budget”, “add more tokens”, or “continue with a larger budget” does not reliably update the persisted Goal. The existing Goal remains budget_limited, and the user may be forced to clear the Goal, create a new one, or manually continue outside Goal mode.

This is specifically about the per-Goal token budget, not the user's ChatGPT/Codex subscription quota or rate limit.

Steps to reproduce

  1. Start a Goal with an explicit token budget, or open a thread whose active Goal already has a finite token_budget.
  2. Let the Goal consume that budget.
  3. Observe that the Goal becomes budget_limited and automatic continuation stops.
  4. Ask Codex to increase or extend the Goal budget and resume the same objective.
  5. Observe that there is no clear command or desktop UI for changing the persisted budget, and the Goal does not reliably return to active with the larger budget.

Expected behavior

Users should be able to extend an existing Goal without losing its objective, progress, or history. For example, Codex could support one or more of:

  • /goal budget 400000 — set a new total token budget;
  • /goal budget +200000 — add an incremental allowance;
  • an Increase budget and resume action when a Goal becomes budget_limited;
  • an app-server / agent API that atomically updates token_budget and changes the status from budget_limited back to active.

The UI should show:

  • tokens already used;
  • previous and new total budget;
  • the source of the budget change;
  • confirmation that the same Goal has resumed.

Increasing the budget should preserve tokens_used; it should not reset accounting or silently create a different Goal.

Actual behavior

Once the Goal is budget_limited, the budget behaves like an immutable terminal limit from the user's perspective. Resume alone is insufficient because the persisted budget has already been exhausted, while clearing/recreating the Goal loses the existing Goal lifecycle and progress tracking.

Why this matters

Long-running coding and research tasks are difficult to estimate in advance. A budget should act as a controllable safety boundary, not permanently strand the Goal when the user explicitly approves more work.

This is also important for budgets that were set accidentally or inferred too conservatively. The previously closed issue #24629 addressed Goals assigning an unrequested token budget, and its original suggested fixes included allowing users to clear or extend an accidental budget. That issue was closed after strengthening the prompt against unsolicited budgets, but the separate recovery path—extending an existing budget-limited Goal—still needs a first-class UX.

Suggested safety behavior

  • Require explicit user confirmation before increasing a Goal budget.
  • Clearly distinguish Goal-local token budget from account usage limits.
  • Refuse to resume if the account itself is usage-limited, while preserving the updated Goal budget for later.
  • Record budget changes in the Goal history for auditability.

Activity

  1. added
    enhancement
    app
    app-server
    rate-limits
    on Jul 19, 2026
  2. bitnom commented on Sep 19, 2026

    @bitnom

    this sucks. how does a feature like this ship half-baked bro? it ruins entire sessions

  3. T0bi-S commented on Oct 10, 2026

    @T0bi-S

    Additional reproduction from Codex desktop on Windows, 2026-10-10:

    • Successive Goal status checks changed from active to usageLimited.
    • While the status was usageLimited, the user could not see a resume/unpause control.
    • Later, the Goal status returned to active and the control reappeared; the trigger is unknown.

    Expected: when a Goal is limited, show a clear recovery action or explain why resuming is unavailable, and keep the visible control synchronized with the Goal status. The app build/version and diagnostic logs were not captured, so the cause is unknown.

  4. KobeVaizman commented on Nov 2, 2026

    @KobeVaizman

    Additional reproducible case (macOS Codex IDE, 2026-11-02). This is a report for an existing Goal, not a request to reset or replace it.

    • Reported IDE extension: openai.chatgpt-26.51021.22027-darwin-arm64; runtime: 0.164.0-alpha.11.1.
    • Existing Goal: budgetLimited; reported tokenBudget=180000, tokensUsed=415147.
    • The Goal control exposed to the session's agent can change status only; it does not expose a budget update. The native runtime explicitly refuses further substantive work for that Goal, including otherwise independent work.
    • The user has explicitly approved removal of the Goal-local cap while preserving the same Goal, thread, objective, history, and tokens-used counter. This is not a request to override account/provider limits.
    • At source revision 6905ecede7816e91373e9eabda3f6b0368fc747b (matching the reported runtime tag), ThreadGoalSetParams supports tokenBudget: null, but GoalService can apply max_goal_token_budget in that case. We have not established which effective configuration source is active or whether thread/goal/set is reachable from the same owning IDE session.

    Could maintainers clarify the supported user-facing or agent-accessible control in the owning Codex client to (1) read the effective goals.max_goal_token_budget source/value, (2) change the persisted budget on the same Goal, and (3) read back confirmation that existing identity and consumption are preserved? An unrelated new app-server process, a replacement Goal, or direct internal-state/SQLite edits would not meet the requirement. No private thread IDs or project paths are included here.

  5. clyde-asara commented on Dec 1, 2026

    @clyde-asara

    Adding additional support for the requested feature.

    Today's behaviour is that when /goal exhausts the budget, if I wanted to selectively continue the work toward that goal, I would expect that /goal resume would allow me to reset the token budget without needing to edit the goal text. Failing that, I would expect that /goal edit would allow me to edit the goal and reset the token budget, such as if I wanted to change the goal entirely or just modify a small part of the acceptance criteria. In both /goal resume and /goal edit cases (even if you change the goal text) the goal does not proceed with a "Token budget" warning.

    The current workaround is to copy the original goal text, run /goal clear, then run /goal <CTRL+V) to start it up again. This is a papercut.

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

    appapp-serverenhancementrate-limits

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions