Skip to content

Feature Request: Automatically Reschedule Tasks When Claude Usage Quota Is Reached #92

Description

@malys

Summary

When a task stops because the Claude usage quota has been reached, Claude Code Studio should automatically postpone the task and schedule it to resume when the quota resets.

Example

The agent encounters:

You've hit your session limit · resets 2:30pm (Europe/Paris)

Current Behavior

  1. Task is running.
  2. Claude quota is reached.
  3. Execution stops.
  4. User must manually restart or reschedule the task.

Proposed Behavior

  1. Detect quota-related messages such as:
You've hit your session limit
You've reached your usage limit
  1. Automatically move the task from:
In Progress

to:

Todo
  1. Automatically create/update a schedule entry using the reset time provided by Claude.

Example:

Quota reset: 2:30pm (Europe/Paris)

becomes:

Task Status: Todo
Scheduled: Today 14:30 Europe/Paris

Scheduling Rules

Same-Day Reset

Reset: 14:30
Current Time: 13:10

Schedule:

Today 14:30

Next-Day Reset

If Claude indicates a reset occurring the next day:

resets tomorrow 02:00

Schedule:

Tomorrow 02:00

Kanban Improvements

Display a badge on the task:

⏸ Waiting for Claude quota

or

⏳ Scheduled after quota reset

Example:

⏳ Resumes at 14:30 (Europe/Paris)

Automatic Resume (Optional)

Optionally provide:

☑ Automatically restart task after quota reset

Workflow:

Quota Reached
    ↓
Move to Todo
    ↓
Schedule for Reset Time
    ↓
Quota Available
    ↓
Restart Automatically

Additional Enhancements

Track quota-related interruptions:

Paused: Claude quota reached
Next retry: 14:30

and provide dashboard metrics:

  • Tasks waiting for quota
  • Next quota reset
  • Estimated restart time
  • Number of postponed tasks

Benefits

  • No manual rescheduling.
  • Better unattended execution.
  • More accurate Kanban status.
  • Better quota management.
  • Reduced risk of forgetting interrupted tasks.

Priority

High

Use Case

As a user, I want tasks interrupted by Claude usage limits to be automatically moved back to Todo and scheduled for the quota reset time, so that work resumes predictably without manual intervention.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions