Skip to content

[BUG] API Error: Rate limit reached incorrect in CLI #25531

@lanorac

Description

@lanorac

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code fails to compact at that point, giving the same error, API rate limit reached. I was able to recover by quitting the session, then resuming it and compacting immediately.
I have a new Max account, plenty of usage left. I have gotten this error twice with about 3% context left both times.

What Should Happen?

I don't know, it should auto-compact and continue working?

Error Messages/Logs

Steps to Reproduce

  1. Reach 3% context remaining until auto-compact
  2. have some heavy work going on

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.41 (Claude Code)

Platform

Other

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplatform:windowsIssue specifically occurs on Windows

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions