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.304 ·

Safer rewriting of session history files

When Claude Code compacts a session's history file, it now checks the file size and any rows added meanwhile, and fails safely if they don't match

You'll notice Improvements
JSON All of v2.1.304
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.304,
ImprovementsSection of the release
What

Claude Code keeps a file with your session's history, called a transcript, and sometimes rewrites it more compactly. It now checks the result before using it:

  • the written file must be exactly the size expected, or compaction fails as staged_size_mismatch
  • rows added to the history while compaction ran must be readable, or it fails as appended_rows_unread

Before, it wrote the file without checking its size. Failure reports now include an error code.

Why

A compaction that goes wrong is caught instead of leaving a damaged session history.

See this entry in the whole of v2.1.304 →

Feedback