Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.296 ·

Transcript compaction can skip rewrites that would free little space

Claude Code can now skip compacting a session transcript when little space would be reclaimed, through a store flag that starts out on

Group of 2 Nothing to try yet Internal Changes
JSON All of v2.1.296
Nothing to try yetTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
CompactionArea: what it touches
Internal ChangesKind: in v2.1.296,
Internal ChangesSection of the release

Unclear Nothing shows where this switch is read, so it is unclear whether compaction actually happens less often.

What

Claude Code saves each session's conversation as a transcript file on disk, and it periodically compacts that file, which means rewriting it to remove material it no longer needs. Compaction now works out up front how many bytes it would reclaim.

  • lowYieldCompactSkipEnabled: a new field on the session store, which is initialised to true. When it is set and the expected saving is low, Claude Code skips the rewrite instead of doing it.
  • recordCompactYield: the step that raises the size threshold for the next compaction now lives in this shared helper. It doubles the threshold after a compaction that freed little. Before, the threshold was only raised after a compaction had actually run.

Why

Large session files are no longer rewritten when the rewrite would barely shrink them. In practice this can change when compaction runs on long sessions.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtNothing shows where this switch is read, so it is unclear whether compaction actually happens less often.

See this entry in the whole of v2.1.296 →

Feedback