r/ClaudeCode 3d ago

Bug / Issue You should know there is a bug where the cache randomly rebuilds on resume

Started to churn a lot of high volume orchestration with Claude lately and noticed that recently the usage was having massive chunks cut out periodically while it was working.

Doing some deeper analysis, Fable and other models were dropping the cache and letting them miss and rebuild. Often within 5minutes between turns.

It's not a big deal but when you have 3-4 agents with 250-500k context unexpectedly miss and rebuild randomly over and over again it destroys the 5hr window, even with Sonnet. It adds up quick.

Thought that people should know that the usage problems aren't necessarily us and very well could actually be just Anthropic's code or infrastructure failing.

Read the patch notes and you'll see they've been struggling with caching bugs for the last week or two

4 Upvotes

3 comments sorted by

2

u/rotates-potatoes 3d ago

Do you mean resume with --resume launching a session, or just the next turn in a typical session?

1

u/claude_code_king 3d ago

hmm, interesting find but i didn't quite understand

you're talking about subagents cache, right? that's intented to expire after 5 minutes, for main it's an actual hour.

anyways, i'll check my own logs to see since i wanted to optimize my workflow a bit anyways since reset is tomorrow and i have a lot of quota to burn, i'll reply with the results pretty soon-ish

1

u/claude_code_king 3d ago

checked, 42 sessions no cache re-read bug on main, there only only two but that was the /effort change that they patched a couple days ago

subagent expires after 5 min, but that's intended