{"version":"2.1.324","anchor":"compaction-preserved-segment-guard","canonical_anchor":"compaction-preserved-segment-guard","heading":"Resuming a session skips a compaction record that points to itself","tier":"notice","area":"Compaction","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/compaction-preserved-segment-guard","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Resuming a session skips a compaction record that points to itself\n\nWhen loading a session, Claude Code now skips a compaction record whose kept-messages marker points back at the record itself\n\n**What**\n\nCompaction is when Claude Code summarises older parts of a conversation to free up room. A compaction record can mark where the messages it kept begin. When Claude Code loads a saved session, it now skips that part of the history if the marker points back at the compaction record itself.\n\n**Why**\n\nThis makes resuming a compacted session sturdier. A record that points at itself is not followed.\n\n- Area: Compaction\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}