Claude Code v2.1.321 ·
Session transcripts are saved more safely and repair half-written lines
Claude Code now forces the transcript onto disk before adding to it, and starts a fresh line if the file ends partway through one
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.321,
ImprovementsSection of the release
What
Claude Code saves each session as a transcript file, adding one line at a time. It now:
- Forces what has been written onto the disk before adding more, instead of leaving it waiting in memory.
- Keeps track of lines not yet safely on disk.
- Starts a new line when the file ends partway through a line, so a half-written line does not damage the next one.
- Logs an error when forcing the file onto disk fails.
Why
Transcripts are more likely to survive a crash or a full disk intact.
See this entry in the whole of v2.1.321 →