35 people reported
All time, since Oct 1, including 32 thumbs-up on GitHub.
Idle auto-compaction
“Since 2.1.286, idle sessions are compacted automatically before the prompt cache expires ("Compacted while idle, before the prompt cache expired").”
Is this your bug? What gets counted gets fixed. Pile on.
Paste this into your agent. It files your report, with your error and version.
I hit this bug: rapsheet.dev/sheets/claude-code/issues/11640/file Follow it to file my report. Show me the text before you send.
No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends
Sessions auto-compact while idle far below context limit. Shows as "Compacted while idle, before the prompt cache expired"; no opt-out or warning, and working context is replaced by a summary.
Is this your bug?
File my report- Where
- Context compaction
- Error text
Compacted while idle, before the prompt cache expired- Versions
- 2.1.286 to 2.1.296
- Platforms
- macOS
- How bad
- Breaks a normal workflow. Some reports say it used to work.
Part of: Auto-compaction loses session context6 bugs
- Auto-compaction loses session context6 people
- Autocompact thrashing ends session3 people
- Auto-compaction fires early3 people
- Idle after compaction2 people
- Opus 4.6 context capped at 200K12 people