[BUG] Usage Calculation for weekly limits hit within a short time with no large use.
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 hit my weekly limit, within 2 days. I haven't even used it a lot, and was around 14% usage, when all of a sudden I looked and was a 100%.
from my own monitoring in Grafana:
<img width="1168" height="830" alt="Image" src="https://github.com/user-attachments/assets/4686a2d8-4a28-488f-8729-8d227b1538c9" />
from /usage
<img width="800" height="333" alt="Image" src="https://github.com/user-attachments/assets/6315c9a0-6a7b-4cfd-86e8-7fcf41994ba4" />
Not much more to say about this, but it seems like a pretty bad bug.
Heres my statusline before and after:
<img width="413" height="71" alt="Image" src="https://github.com/user-attachments/assets/6691f977-5e49-4304-a2dc-3636ff4fe4a5" />
<img width="394" height="75" alt="Image" src="https://github.com/user-attachments/assets/977c5a8b-31ff-4346-8d64-324306d0e2a4" />
What Should Happen?
It should not spend my entire budget on nothing? And if it is for some reason my fault, the tools and usage view should show where this was spend, so it's not a big mystery for me. But I doubt this as my own monitoring would catch this?
Error Messages/Logs
There are none.
Steps to Reproduce
No idea. That's the issue.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.119 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
ghostty 1.3.1
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗