{"version":"2.1.331","anchor":"summary-stripping-keeps-analysis-block-when-a-precedes-it","canonical_anchor":"summary-stripping-keeps-analysis-block-when-a-precedes-it","heading":"Conversation summaries keep their analysis section when the summary comes first","tier":"notice","area":"Compaction","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/summary-stripping-keeps-analysis-block-when-a-precedes-it","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Conversation summaries keep their analysis section when the summary comes first\n\nWhen compaction output has its summary section before the analysis section, Claude Code now leaves the text as it is\n\n**What**\n\nCompaction is how Claude Code shortens a long conversation by replacing earlier parts with a summary. The summary text can contain an analysis section that Claude Code removes before using it. Now, if a `<summary>` section appears before the analysis section starts, Claude Code leaves the text unchanged. Before, it always cut the analysis section out. The earlier version also referred to a value that did not exist.\n\n**Why**\n\nThis fixes how analysis is removed from compaction summaries, so the summary is not cut in the wrong place.\n\n- Area: Compaction\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}