openai / openai/codex

Seamless resume mechanism after quota interruption

Open
#44,987 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

CLI enhancement rate-limits session
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What variant of Codex are you using?

CLI

What feature would you like to see?

The 5-hour quota currently allows for roughly a ~30-minute Astra Max session, which makes it very difficult to use effectively for longer tasks.

What is especially frustrating is that there is no seamless continuation after the quota is exhausted. When the quota becomes available again, I tell the agent to continue because the previous session was interrupted, but it often resumes from an older state instead of exactly where it stopped.

This wastes a significant amount of quota. In some cases, the agent uses as much as a quarter of the entire new 5-hour quota just to reconstruct the previous state and get back to the point where the session was interrupted, even if the terminal was not closed.

I would strongly suggest one of two solutions:

  1. Remove the 5-hour limit and keep only the weekly quota, as was previously the case; or
    2. Implement a seamless resume mechanism so that the agent does not even perceive the quota interruption as a new session.

For example, there could be a command such as /resume_after_quota_loss that requires no additional prompt and simply makes the agent continue from the exact state where it stopped, with the full working context preserved - option available at least if the terminal was not closed.

This would make quota usage much more efficient and significantly improve the experience of using Codex for longer-running tasks.

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue concerns the Codex CLI losing session continuity after quota exhaustion and proposes a /resume_after_quota_loss command; no files, tests, or implementation entry points are named. Start by locating the CLI's session and quota handling, then define how working context survives a quota reset. Done means an open terminal can continue from the exact interruption point without reconstructing prior state.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.