61 people reported

All time, since Sep 23, including 45 thumbs-up on GitHub.

Auto-compaction loses session context

“Claude Code's automatic context compaction runs mid-session with no user consent or confirmation prompt.”

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/themes/250/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

Quiet. No reports and thumbs-up in the last two weeks, down from 30 a week at the early-October peak.

6 bugs in this theme

  1. Idle auto-compactionNo workaround yet35 people
  2. Opus 4.6 context capped at 200K12 people
  3. Auto-compaction loses session contextNo workaround yet6 people
  4. Autocompact thrashing ends sessionNo workaround yet3 people
  5. Auto-compaction fires earlyNo workaround yet3 people
  6. Idle after compactionHas a workaround2 people

What's included

  • Compaction runs mid-session with no warning, pause or consent, and the session forgets instructions, decisions and task state
  • Compaction fires far below the context limit on 1M-window models, at roughly 24–45% usage, after recent updates
  • Idle sessions compact before the prompt cache expires ("Compacted while idle, before the prompt cache expired"), with no opt-out
  • Repeated compaction loop ends with "Autocompact is thrashing: the context refilled to the limit within 3 turns", including in subagents
  • After compaction the agent re-reads the same files instead of continuing from where it left off

Not included

  • Running out of usage or rate limits unrelated to context compaction
  • Manual /compact or /clear behaving differently from what the user asked
  • Write tool overwriting file contents, apart from context loss

Original reports16, newest first

  1. Session goes idle after auto-compaction instead of continuing the work the assistant just announced#104920
  2. Manual /compact during in-progress work leaves the agent idle; a filler message is needed to resume#104378
  3. Auto-compact runs while idle after prompt cache expires, forcing manual session restarts#102332
  4. Auto-compaction triggers early at 24-45% of 1M context window with no user config#101430
  5. Auto-compact triggers early at ~89% context remaining#101209
  6. Auto-compaction fires at 281K–845K tokens on 2.1.296 for claude-opus-5-5 (documented default ~967K)#101067
  7. Session context lost during auto-compact, forcing restart of development workflow#100710
  8. Merged Claude app runs Opus 4.6 at 200K context on Max 5x (help center says 500K); ~92K fixed overhead leaves ~50K per compaction cycle#100502
  9. Auto-Compact triggers prematurely on Opus 5.5 1M context window#100277
  10. Auto-compaction runs without user consent and degrades quality of long sessions#99860
Show all 16Show only the newest 10
  1. This "Claude ran out of context on this turn" is really common i am facing this…#99612
  2. Context exhaustion + Write tool overwrote append-only file — full day of design work lost#98967
  3. 2.1.286 idle compaction silently discards working context in long-running sessions; no opt-out, logged as "manual"#98747
  4. Autocompact thrashing crashes subagent researching auto-compact behavior itself (invalid_request error)#98158
  5. Auto-compact repeatedly re-reads same files instead of continuing from prior state#96414
  6. Autocompact thrashing due to context window refill within 3 turns#96379

Do you work on Claude Code?

Claim its RAP Sheet to see what your users report and answer them in one place.