You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
CompactionArea: what it touches
Bug FixesKind: in v2.1.331,
Bug FixesSection of the release
What
Compaction 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.
Why
This fixes how analysis is removed from compaction summaries, so the summary is not cut in the wrong place.