{"version":"2.1.331","anchor":"precomputed-compact-can-now-arm-after-a-turn-after-turn-tri","canonical_anchor":"precomputed-compact-can-now-arm-after-a-turn-after-turn-tri","heading":"Precomputed compaction can now start right after a turn","tier":"soon","area":"Compaction","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/precomputed-compact-can-now-arm-after-a-turn-after-turn-tri","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Precomputed compaction can now start right after a turn\n\nBackground compaction gains an `after_turn` trigger, so a summary can be prepared as soon as Claude finishes a turn\n\n**What**\n\nCompaction is when Claude Code summarises a long conversation to free up room. It can prepare that summary in advance, and the moment it starts is called its trigger, stored as `armTrigger`.\n\n- A new `after_turn` trigger joins `idle`, `stop` and `beside_turn`\n\n- The check that groups trigger values now also accepts `after_turn`\n\n- Metrics and failure labels now use `compact_after_turn`\n\n- The `loopSource` is passed into the compaction step\n\n- If a turn is aborted while an `after_turn` item is pending, it is set again as `stop`. Before, it went straight to the stopped-again path\n\nNothing has been read about the related switch `tengu_precomputed_compact_started`.\n\n**Why**\n\nPreparing the summary right after a turn ends could make automatic compaction feel faster when it is needed.\n\n- Area: Compaction\n- Tier: Nothing to try yet\n- Useful: 3\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}