Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.238 Home All releases olderv2.1.237 v2.1.239newer
Claude Code v2.1.238

Transcript appends repair a truncated last line

Under the hood
Useful3 Signal2
Sessions

A crash mid-write no longer corrupts your transcript; the truncated line is repaired on the next append.

What

Appending to a transcript now detects a last line that was cut off mid-write and writes a leading newline plus a substitute record before adding the new one, so a crash mid-append no longer corrupts what follows.

Details
  • A tear is detected from a missing trailing newline or a torn byte count reported by the storage layer.
  • When the storage layer is not active, the append falls back to opening the file read-write/append and probing before writing.
  • Errors are classified, and recoverable ones note that the synchronous re-stamp runs instead.
Evidence

the synchronous re-stamp runs instead

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.238 →