Skip to content

Auto-resume conversation when token/rate limit resets #38263

Description

@exe-network

Feature Request

When a conversation is interrupted because the token or rate limit is exhausted, Claude Code currently just stops. The user has to manually resume once the limit resets.

Desired behavior: An option (e.g. --auto-resume or a setting in settings.json) that makes Claude Code automatically wait and continue the conversation once the rate limit window resets — especially useful for long-running, multi-step tasks that shouldn't require babysitting.

Use case: Complex autonomous tasks (multi-file refactors, data pipelines, research) that exceed the token budget in a single window. Today the user has to watch for the limit, wait, and manually --continue. This breaks the "set it and forget it" workflow that makes agentic coding powerful.

Possible approach:

  • Detect rate-limit / token-exhaustion exit
  • Wait for the reset window (API headers or a configurable backoff)
  • Automatically invoke --continue to pick up where it left off
  • Optional max-retries / max-wait to avoid infinite loops

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions