Skip to content

Feature: Auto-resume tasks after rate limit reset #26775

Description

@federicodeponte

Problem

When rate limited, Claude Code shows a message like:

You're out of extra usage · resets 11:30am (Asia/Colombo)

Currently, the user must manually return and type "continue" or press enter when the reset time is reached. This interrupts workflows, especially for:

  • Long-running tasks left overnight
  • Users in different timezones
  • Automated/unattended use cases

Proposed Solution

Add an option to automatically resume the interrupted task when the rate limit resets.

Implementation Ideas

  1. Parse the reset time from the rate limit message
  2. Schedule a continuation using:
    • Native timer/cron within Claude Code
    • Or system-level scheduler (launchd on macOS, systemd on Linux)
  3. Auto-send continuation when time is reached

Configuration

Could be a setting in settings.json:

{
  "autoResumeAfterRateLimit": true
}

Or a CLI flag:

claude --auto-resume

Fallback Behavior

  • If the terminal/session is closed, do nothing (safe default)
  • Only auto-resume if the session is still active

User Benefit

  • Unattended long-running tasks complete without manual intervention
  • Better developer experience for heavy users who hit rate limits regularly
  • Enables "fire and forget" workflows

Alternatives Considered

  • Hooks: Users could build this with custom hooks, but native support would be cleaner
  • External scripts: Possible but fragile and platform-specific

Would love to see this as a first-class feature!

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