{"version":"2.1.286","anchor":"autocompact-thrash-message-and-early-compact-telemetry-for-f","canonical_anchor":"autocompact-thrash-message-and-early-compact-telemetry-for-f","heading":"Auto-compaction warns when it keeps refilling, and remote forks skip needless compaction","tier":"notice","area":"Compaction","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.286\/e\/autocompact-thrash-message-and-early-compact-telemetry-for-f","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.286","markdown":"### Auto-compaction warns when it keeps refilling, and remote forks skip needless compaction\n\nClaude Code can now warn that auto-compaction is thrashing, and forked agents in remote sessions skip compaction the normal threshold would not trigger\n\n**Unclear.** It is unclear where the thrashing message is shown.\n\n**What**\n\nCompaction is when Claude Code summarises the conversation so far to free room in the context window, the amount of text the model can take in at once. Claude Code has a new message for when compaction keeps being undone: \"Autocompact is thrashing: the context refilled to the limit within 3 turns of the previous compact, 3 times in a row.\"\n\nIn remote sessions, where `CLAUDE_CODE_REMOTE` is set, some forked agents do not follow `CLAUDE_AUTOCOMPACT_PCT_OVERRIDE`. A forked agent is a separate copy of the conversation that runs side work. Those forks can now skip compacting when their token count is still below the threshold that would apply without the override. Claude Code also logs a new usage event for early compaction in forks.\n\n**Why**\n\nForked agents in remote sessions no longer compact when they do not need to. The new message points out a session where compaction is not buying lasting room, because the context fills back up within three turns, three times running.\n\n- Area: Compaction\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}