Skip to content

When Claude limit is reached, don't keep re-querying #19

Description

@jeffersoneagley

Hi all, an unrelated Claude bug caused me to hit the 5 hour limit on my Claude account very quickly. This results in an error back from Claude. That's fine, but autocoder keeps opening new sessions and trying to send more requests (That will inevitably fail). Ideally it should alert the user and then pause until the listed time. A good first step though, would be to simply display some kind of warning so it's clear when this happens.

Here's what the debug window looks like:


======================================================================
  AUTONOMOUS CODING AGENT DEMO
======================================================================
Project directory: C:\git\PremiumSearch\PremiumSearch
Model: claude-opus-4-5-20251101
Mode: Standard (full testing)
Max iterations: Unlimited (will run until completion)
Continuing existing project
Progress: 7/12 tests passing (58.3%), 1 in progress
======================================================================
  SESSION 1: CODING AGENT
======================================================================
Created security settings at C:\git\PremiumSearch\PremiumSearch\.claude_settings.json
   - Sandbox enabled (OS-level bash isolation)
   - Filesystem restricted to: C:\git\PremiumSearch\PremiumSearch
   - Bash commands restricted to allowlist (see security.py)
   - MCP servers: playwright (browser), features (database)
   - Project settings enabled (skills, commands, CLAUDE.md)
   - Using system CLI: C:\Users\jeffe\.local\bin\claude.EXE
Sending prompt to Claude Agent SDK...
Limit reached · resets 6pm (America/New_York) · /upgrade to Max or turn on /extra-usage
----------------------------------------------------------------------
Agent will auto-continue in 3s...
Progress: 7/12 tests passing (58.3%), 1 in progress
Preparing next session...
======================================================================
  SESSION 2: CODING AGENT
======================================================================
Created security settings at C:\git\PremiumSearch\PremiumSearch\.claude_settings.json
   - Sandbox enabled (OS-level bash isolation)
   - Filesystem restricted to: C:\git\PremiumSearch\PremiumSearch
   - Bash commands restricted to allowlist (see security.py)
   - MCP servers: playwright (browser), features (database)
   - Project settings enabled (skills, commands, CLAUDE.md)
   - Using system CLI: C:\Users\jeffe\.local\bin\claude.EXE
Sending prompt to Claude Agent SDK...

Limit reached · resets 6pm (America/New_York) · /upgrade to Max or turn on /extra-usage

Activity

  1. coreycauble commented on Jan 9, 2026

    @coreycauble
    Contributor

    I submitted a pull request for this... #35

  2. added a commit that references this issue on Jan 10, 2026
  3. added a commit that references this issue on Feb 9, 2026
  4. stevebeauge commented on Feb 17, 2026

    @stevebeauge

    Your PR has been merged, however, the issue is still occuring.
    Is the PR included in the latest release ?

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions