{"version":"2.1.314","anchor":"idle-sleep-compaction-reworked-rollout-string-replaces-co","canonical_anchor":"idle-sleep-compaction-reworked-rollout-string-replaces-co","heading":"Idle compaction gains a log-only mode and can be refused by the host","tier":"notice","area":"Compaction","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.314\/e\/idle-sleep-compaction-reworked-rollout-string-replaces-co","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.314","markdown":"### Idle compaction gains a log-only mode and can be refused by the host\n\nIdle compaction now follows a mode such as off or log, can be refused by the host program, and in log mode only records that it would compact\n\n**Unclear.** Which mode is used for your sessions is not stated.\n\n**What**\n\nCompaction is when Claude Code shortens a conversation by summarising it. Idle compaction, also called sleep compaction, does this while a session sits idle. It has changed in these ways:\n\n- It now follows a single mode, such as off or log, instead of a group of settings.\n\n- In log mode it only records that it would have compacted, without doing it.\n\n- The smallest conversation size it acts on is now worked out each time rather than fixed.\n\n- The host, a program that runs Claude Code, can refuse a compaction.\n\n- Whether it summarises now depends on whether there is a host, not on a separate compact-on-return mode.\n\n`CLAUDE_CODE_SLEEP_COMPACT` still controls whether idle compaction is set up when Claude Code runs without its interface.\n\n**Why**\n\nThis changes when idle compaction happens and how it is reported.\n\n- Area: Compaction\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}