[BUG] Prompt cache expires during active session, causing massive token spikes on next prompt
Status Open
Reported on v2.1.270
Maintainer reply None cached
Activity 0 comments · opened Sep 12, 2026
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?
2 days i see new message: Idle xxx minutes. The prompt cache has likely expired, so your next message will re-cache about 629k tokens.
What Should Happen?
No idle count or cache expired as before!!
I don't wanna waste tokens on a bugged software working 2 minutes and then hit a 5h limit!
Pro-subscription, Opus 5
Error Messages/Logs
Steps to Reproduce
In not even long session just continue to work
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
10 September 2026
Claude Code Version
2.1.270
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_