Skip to content

Codex should not terminate active development tasks without a safe checkpoint when usage limits are reached #60447

Open

Description

@souljah

What variant of Codex are you using?

App

What feature would you like to see?

Codex was performing a multi-file implementation in a production-intended inventory application.

After approximately 22 minutes, 19 files had been modified (+537/−72 lines), multiple tests had passed, and browser acceptance was underway.

Codex then stopped because the usage limit was reached, before completing verification or providing a final implementation report.

Expected behaviour

When a task approaches a usage limit, Codex should:

  1. Warn before starting substantial work if the remaining allowance may be insufficient.
  2. Reserve a small portion of the available allowance for verification and handover.
  3. If the limit is reached, enter a safe-stop mode that preserves modifications, captures outstanding tests and generates a durable recovery report.
  4. Allow the next session to resume from that checkpoint without reconstructing the entire task.

A bounded continuation allowance for safe stopping would also be valuable.

Why this matters

Partially completed development work can leave codebases in an unverified state. For applications handling inventory, financial transactions or other integrity-sensitive operations, this is a material reliability concern.

This is not simply a request for more usage. It is a request for safer and more predictable agent behaviour at usage boundaries.

Environment

Codex on Windows, working in a local Python/Flask repository.

Request

Please consider task-aware usage preflight checks and mandatory safe-stop handovers as first-class Codex reliability features.

Additional information

No response

Activity

  1. added
    enhancement
    on Nov 9, 2026
  2. added
    app
    windows-os
    rate-limits
    session
    on Nov 9, 2026
  3. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor
  4. Zyph3rKeaton commented on Nov 10, 2026

    @Zyph3rKeaton

    For this 19-file change, I’d make the recovery point part of the workspace: after the first passing test, write down the diff summary, the exact test command and result, and the browser check still outstanding. Then a fresh session can inspect the existing diff and start at that check instead of reconstructing the plan. The app could capture the same fields automatically on the limit event, without asking the model for one final turn.

  5. PH1119057 commented on Nov 12, 2026

    @PH1119057

    Additional proposal: Professional workflow continuity and bounded quota borrowing

    I would like to expand this proposal from the perspective of a professional software developer using ChatGPT and Codex for real, interconnected systems.

    Different categories of work have fundamentally different interruption costs.

    An interrupted image generation or ordinary document may simply be resumed later. But an interrupted software engineering task may leave database migrations, API contracts, core modules, integrations, and tests in different stages of implementation.

    Even when changes are safely isolated from production, the result may be unusable until the entire affected scope has been reconciled and verified.

    The problem is not merely that the user runs out of tokens. The problem is that the user can spend an entire weekly allowance on one task and receive no coherent, deployable, or independently verifiable deliverable.

    The next allowance may then be consumed reconstructing the unfinished work.

    I propose three additional capabilities:

    1. Workload-aware handling: Distinguish routine creative tasks from tightly coupled engineering, infrastructure, scientific, and other high-consequence workflows.
    2. Bounded quota borrowing: Allow eligible users to voluntarily borrow a limited amount of their next usage-period allowance to complete the current coherent engineering stage or reach a safe checkpoint. This would not be free usage; it would be deducted from the next period.
    3. Verified task handoff: Preserve exact task objectives, repository state, modified files, commits, decisions, test results, unfinished operations, external process state, and next actions. The user should see exactly what is transferred to the next session.

    The goal is not unlimited execution or guaranteed completion of an arbitrarily large project.

    The goal is to make professional AI work economically predictable and technically recoverable.

    Users are not simply paying to generate a quantity of code. They are paying for a tool that helps them achieve a practically useful result.

    An AI engineering agent should be able to complete a coherent stage or safely preserve its exact unfinished state, rather than stopping at an arbitrary point when the quota expires.

    I believe this is essential to long-term professional trust in OpenAI products.

    Related proposal on quota borrowing: #53434.

    Best regards,
    Alexey
    Almaty, Kazakhstan

  6. souljah commented on Nov 12, 2026

    @souljah
    Author

    Thank you, Alexey. You've expanded on exactly the problem I was trying to highlight.

    I particularly agree with the distinction between token consumption and completing a coherent engineering stage.

    I'm currently developing a multi-component SaaS application using Codex, and I've experienced interruptions during complex authentication and deployment investigations where preserving the exact state of the work is essential.

    The concept of verified task handoff is particularly important. Even when additional execution isn't possible, Codex should ideally leave behind a reliable, independently verifiable checkpoint rather than requiring the next session to reconstruct unfinished work.

    I also like the idea of bounded quota borrowing as an optional mechanism, especially when a task is close to reaching a safe and useful stopping point.

    Ultimately, I believe the goal should be continuity and recoverability, not simply extending execution time.

    Thanks for contributing these ideas to the discussion.

  7. mark-iap commented on Nov 13, 2026

    @mark-iap

    The preflight check (#1) is the biggest missing piece here on Windows. Right now it's very easy to kick off a multi-file refactor without realizing the 5-hour or weekly window is already close to empty, and once the limit hits there's no built-in handover.

    Two practical workarounds that help in the meantime: keeping an explicit CHECKPOINT.md / git diff summary updated after each passing test batch (as noted above), and keeping an eye on both the 5h and weekly remaining percentages before starting a 20+ minute run. (On Windows I built a tiny local-only desktop monitor, CodexFuse, to keep those two live limits and reset times visible while coding, though native preflight warnings and auto-checkpoints inside the Codex app would solve the root problem.)

  8. bellowsai commented on Nov 16, 2026

    @bellowsai

    Disclosure: I'm Rob, and I built this.

    Bellows is a free desktop app that runs Codex (through Codex's own app-server, so every command and edit still asks you first). It gives you the safe stop you're describing when the limit hits mid-task:

    • The checkpoint is already written. After every turn, Bellows itself (no model call, so no allowance spent) adds a line to .bellows/memory.md in the project: what you asked, which files changed, whether the last test run passed. When Codex stops at the limit, the record of where the 19 files stand is already on disk.
    • Your changes are kept, and you can go back. Each message you send records a restore point first, so you can keep everything or rewind the files to any earlier message.
    • Resume in the same session. Bellows reads the "try again at…" time from Codex's error and offers Resume at that time. A minute after the reset it tells Codex to carry on from where it stopped, with nobody at the keyboard (Bellows just needs to stay open).
    • Or carry on now with another agent. Continue with… hands the task to Claude, Gemini CLI or Qwen Code in the same folder, with the project memory and the last exchanges, so the next session does not rebuild the task.

    Guide: https://bellowsai.app/guides/codex-hit-your-usage-limit-try-again-at?utm_source=github&utm_medium=reply

    Try it on your next long task and tell me what's missing. We act fast on feedback.

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-limitssessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions