[BUG] Used all tokens in session limit without receiving a SINGLE token as a response
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I spent 30 minutes trying to resume one prompt with the word "continue". Claude is clearly having issues at the moment, which is a separate topic, but in that 30 minutes I did not get a SINGLE token as a response from claude. I canceled the task after a few minutes a couple times, then let it run for 20+ minutes.
The result? "You've hit your limit", without claude actually responding with literally anything (that was visible to me anyway)
Either the client kept retrying the request which kept failing (and kept adding tokens), or it was swallowing output, or something else, but regardless charging token usage and money and not actually showing ANY output is absurd.
What Should Happen?
Failed requests should not count towards token limit
Error Messages/Logs
--
Steps to Reproduce
--
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.92
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗