Skip to content

Persistent Auto-Resume After Usage Cooldown for Goals and Long-Running Tasks #43605

Open

Description

@XoxRumbleLorexoX

What variant of Codex are you using?

CLI

What feature would you like to see?

Feature Request: Persistent Auto-Resume After Usage Cooldown for Goals and Long-Running Tasks

Summary

Codex should be able to automatically resume Goals and other long-running agent tasks after a usage-limit cooldown/reset, without requiring the user to manually return and press Resume or type continue.

This would make Codex substantially more useful for genuinely autonomous engineering work.

Current Problem

Codex can now handle increasingly large engineering goals that may run for hours:

  • repository-wide refactors
  • migrations
  • debugging campaigns
  • test/fix/test loops
  • application modernization
  • dependency upgrades
  • large feature implementations
  • autonomous Goals

However, these tasks can encounter the usage limit before the Goal itself is complete.

At that point Codex stops.

Even when the quota becomes available again later, the task remains paused until the user manually returns.

For a long-running autonomous agent, the quota boundary should ideally behave like a temporary execution checkpoint, rather than the end of the task.

Proposed Behaviour

Add an option such as:

☑ Automatically resume after usage reset

When enabled:

  1. Codex begins executing the Goal normally.

  2. If the account reaches its usage limit, Codex safely checkpoints the current execution state.

  3. The Goal enters a state such as:

    Paused — usage limit reached

  4. Codex records the known/reset eligibility time.

  5. Once usage becomes available again, Codex automatically resumes the same Goal.

  6. It continues from the existing execution state rather than creating a new task or requiring the user to re-enter the prompt.

  7. This continues across multiple usage windows until one of the following occurs:

    • the Goal is completed;
    • the user cancels it;
    • Codex encounters a genuine blocker requiring user input;
    • an approval/permission decision is required;
    • repository/workspace state has changed in a way that makes automatic continuation unsafe.

Example

A user starts:

Pursue Goal: migrate this repository to the new architecture, run all tests, repair regressions, verify the application end-to-end, and continue iterating until the acceptance criteria pass.

Codex works for several hours.

Then:

Usage limit reached — available again at 03:14

Instead of terminating the autonomous workflow:

Goal paused — waiting for usage availability.

At 03:14:

Usage available — automatically resuming Goal.

Codex then continues working.

No user interaction should be necessary.

This Should Apply Beyond /goal

Ideally this execution model should eventually apply to:

  • Pursue Goal
  • long-running agent sessions
  • orchestrator/subagent workflows
  • repository-wide tasks
  • test-and-repair loops
  • autonomous debugging sessions
  • queued tasks

In other words, temporary quota exhaustion should pause execution, not destroy task continuity.

Persistence

For true long-running operation, the paused task should ideally survive:

  • Codex application restart
  • terminal/CLI restart
  • computer sleep
  • temporary network interruption
  • Codex process restart

Where architecture permits, the persisted task could contain:

  • Goal ID
  • execution checkpoint
  • working directory/repository
  • current plan
  • completed steps
  • remaining steps
  • Git/worktree state
  • pending tests
  • usage-reset timestamp
  • permission/approval state

Safety

This should not bypass usage limits.

Codex should make no model calls while usage is unavailable.

It should simply wait until usage becomes available again and resume normally.

Additionally, automatic continuation should stop if:

  • user approval is required;
  • permissions have changed;
  • the repository has materially changed externally;
  • credentials have expired;
  • a destructive action requires confirmation;
  • continuing from the previous state cannot be safely guaranteed.

UX

Something as simple as:

Long-running Goal

☑ Auto-resume after usage cooldown

Status:

Running → Usage limit reached → Waiting until 03:14 → Resuming → Running

There could additionally be:

Maximum automatic resumes: Unlimited / 1 / 3 / Custom

and:

Stop auto-resume after: 6h / 12h / 24h / Goal completion

Why This Matters

The increasingly capable Codex agent model makes tasks that span several hours or even multiple usage windows realistic.

Requiring a human to return simply to type:

continue

adds no meaningful safety or information.

For an explicitly authorised long-running Goal, Codex should treat temporary usage exhaustion like any other recoverable infrastructure condition:

checkpoint → suspend → wait → resume.

This would make Goals considerably more useful for overnight work, large refactors, repository migrations, test-driven repair loops, and other autonomous engineering workflows.

Acceptance Criteria

  • User can opt into automatic resume for a Goal.
  • Usage-limit exhaustion checkpoints rather than terminates the Goal.
  • No model usage occurs while quota is unavailable.
  • Codex automatically detects when usage becomes available.
  • Execution resumes from the existing Goal/context.
  • Completed work is not unnecessarily repeated.
  • Multiple cooldown/resume cycles are supported.
  • User can cancel the waiting Goal at any time.
  • Approval-required actions still pause for the user.
  • Unsafe/stale execution state prevents automatic continuation.
  • UI clearly distinguishes Running, Waiting for quota, Blocked, Cancelled, and Complete.

The key principle is:

A usage cooldown should pause an autonomous Goal, not end it.

Additional information

No response

Activity

  1. added
    CLIIssues related to the Codex CLI
    rate-limitsIssues related to rate limits, quotas, and token usage reporting
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    on Sep 7, 2026
  2. bluebabo-hub commented on Sep 30, 2026

    @bluebabo-hub

    I was hoping for this feature too. Since it isn’t currently available, I’ve decided to continue using Claude. If this feature is included in a future update, I’ll reconsider switching to ChatGPT/Codex.

  3. bruceclng-cloud commented on Oct 4, 2026

    @bruceclng-cloud

    same problem here. I ended up automating the reset → resume bit on my mac because long runs stopping overnight was driving me nuts.

    biggest thing was making it resume the exact interrupted task, not just blindly fire continue into whatever state is there.

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

    CLIIssues related to the Codex CLIenhancementNew feature or requestrate-limitsIssues related to rate limits, quotas, and token usage reportingsessionIssues involving session (thread) management, resuming, forking, naming, archiving

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions