Claude Code v2.1.247 ·
Individual transcript records can be removed from a session stream
Code exists to delete one record from a stored session by rewriting the stream.
Under the hood Notable
Nothing to try yet Internal Changes
JSON
All of v2.1.247
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
4Signal: worth watching, 1 to 5
SessionsArea: what it touches
Internal ChangesKind: in v2.1.247,
What probably matters to youSection of the release
Single-record deletion from a session transcript is implemented as the machinery a targeted deletion would need, with no surface described here.
What
New code can delete a single record from a stored session by rewriting the stream in place, which is the machinery a targeted deletion would need.
Details
- It walks records backwards looking for the target id in the raw bytes, then parses to confirm before rewriting.
- The rewrite is done in place with a precondition on the current version, retried up to three times if the stream changed underneath it.
- It stops and reports rather than looping if the stream exceeds a read budget or the backward cursor fails to move.
Evidence
Tombstone removal abandoned: the backward record cursor did not advance
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.247 →