What
Claude Code saves each session's conversation to a transcript file. The transcript writer gains a way to add to that file only if it still exists:
- A new
ifExistspath callsappendEntryIfExists. Before,appendEntryalways created the file. - Lines written again at exit, and queued operations, no longer create a transcript file that is gone.
- New
hasQueuedWritesanddrainLateRowsmethods handle writes that arrive late.
The same release also adds groundwork that is not visible yet: a helper that caches an observerReportFence setting from a flag (default false), a helper that strips a prefix from your message text, and new internal names for permission prompt titles, MCP consent keys and reporting a permission prompt as unwanted.
Why
After you delete a session or clear it, writes that arrive late should no longer bring back an empty or stale session file.