{"version":"2.1.312","anchor":"compaction-applies-the-correct-compaction-result-to-messages","canonical_anchor":"compaction-applies-the-correct-compaction-result-to-messages","heading":"Compaction now keeps messages from the matching result","tier":"notice","area":"Compaction","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.312\/e\/compaction-applies-the-correct-compaction-result-to-messages","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.312","markdown":"### Compaction now keeps messages from the matching result\n\nWhen Claude Code compacts a conversation, the messages it keeps now come from the same compaction result as the rest of the outcome\n\n**Unclear.** The two values may always have been the same, in which case nothing changes for users.\n\n**What**\n\nCompaction is when Claude Code shrinks a long conversation so it fits, keeping some recent messages and summarising the rest. When applying a compaction, the list of messages to keep was taken from a different value than the rest of the result. Both now come from the same compaction result.\n\n**Why**\n\nThis may stop the wrong messages from being kept after a conversation is compacted.\n\n- Area: Compaction\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}