{"version":"2.1.335","anchor":"transcript-writes-late-rows-and-existing-file-only-appends","canonical_anchor":"transcript-writes-late-rows-and-existing-file-only-appends","heading":"Session transcripts are no longer recreated after they are deleted","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/transcript-writes-late-rows-and-existing-file-only-appends","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Session transcripts are no longer recreated after they are deleted\n\nThe transcript writer can now append only to a file that still exists, so late writes no longer bring back deleted or cleared session files\n\n**What**\n\nClaude 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:\n\n- A new `ifExists` path calls `appendEntryIfExists`. Before, `appendEntry` always created the file.\n\n- Lines written again at exit, and queued operations, no longer create a transcript file that is gone.\n\n- New `hasQueuedWrites` and `drainLateRows` methods handle writes that arrive late.\n\nThe 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.\n\n**Why**\n\nAfter you delete a session or clear it, writes that arrive late should no longer bring back an empty or stale session file.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}