Skip to content

Estimate credits needed to finish an interrupted task before purchasing more credits #45133

Open

Description

@FacundoSu1986

What variant of Codex are you using?

Codex on desktop/PC. This request applies to App and CLI long-running tasks.

What feature would you like to see?

When a Codex task is interrupted because the included usage limit or purchased credits are exhausted, show an estimated amount of additional credits required to finish the current task before the user buys more credits.

The key question is not only "how much have I used?", but:

Approximately how many more credits will this existing task need to reach completion?

A range would be preferable to false precision, for example:

Task paused: usage limit reached
Estimated credits to finish: 180–320 credits
Confidence: medium
Assumes: GPT-5.6 Sol, Standard speed, current reasoning level, no additional subagents
Credits remaining: 75
Suggested additional credits: ~150–250

If Codex cannot produce a responsible estimate, it should explicitly say that the remaining cost is unknown rather than inventing a number.

Problem

Long-running coding tasks can stop halfway through because the usage window or credit balance is exhausted. At that point the user has no practical way to decide whether purchasing 100, 500, or 1,000 credits is appropriate.

Existing usage information is retrospective: it tells us what has already been consumed. That is useful, but it does not answer whether the remaining task is likely to require a small continuation or another large block of credits.

This is particularly important when the task already has substantial execution state: completed edits, remaining TODOs, tests still pending, known failures, planned validation, or active/subsequent subagents.

Suggested behavior

At a quota/credit interruption, Codex could estimate remaining cost using signals it already has or can derive conservatively, such as:

  • credits/tokens already consumed by the current thread;
  • recent per-turn burn rate;
  • current model, reasoning effort and speed/service tier;
  • remaining explicit plan/checklist items;
  • tests, builds or validation steps still pending;
  • expected context replay/compaction overhead;
  • active or planned subagents;
  • whether the remaining work is mostly implementation, verification, or investigation.

The result should be shown as a range plus confidence, not as an exact guarantee.

Possible confidence levels:

  • High: bounded remaining steps and stable recent consumption.
  • Medium: known remaining work but variable tool/test cost.
  • Low: open-ended debugging/research or uncertain subagent fan-out.
  • Unavailable: insufficient evidence for a useful estimate.

It would also help to expose the estimate in a command such as /status or /cost, for example:

Current thread usage: 420 credits
Estimated remaining: 180–320 credits (medium confidence)
Current balance: 75 credits
Estimated shortfall: 105–245 credits

Why this matters

Without a remaining-cost estimate, purchasing credits for an interrupted task is guesswork. Users either under-purchase and get interrupted again, or over-purchase without knowing whether the task actually needs that much capacity.

This would make credit purchasing and long-running agent work much more predictable without requiring Codex to promise an exact completion cost.

Relationship to existing work

This is related to, but more specific than:

Those features/issues focus primarily on quota visibility, historical/current thread cost, or interruption behavior. This request is specifically for a prospective estimate of the additional credits required to finish the already-running task.

Additional information

Accuracy does not need to be perfect. A conservative range with assumptions and confidence would already be much more useful than no estimate.

The estimate should clearly update if the user changes model, reasoning effort, Fast mode, subagent usage, or scope.

Activity

  1. added
    enhancement
    app
    rate-limits
    on Sep 12, 2026
  2. dc2027631 commented on Nov 13, 2026

    @dc2027631

    Thanks for writing this up, it's a clear description of a real problem.

    I'm trying to understand how people deal with it, so a few questions about the last time a task stopped like this:

    1. What did you do next: buy more credits, wait for the reset, switch to another tool or model?
    2. How long did it take to get going again, and was any work lost or redone?
      Happy to share my research on this
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

    appenhancementrate-limits

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions