{"version":"2.1.327","anchor":"messaging-key-file-write-is-now-cancellable","canonical_anchor":"messaging-key-file-write-is-now-cancellable","heading":"Sessions that exit during startup no longer leave a messaging key behind","tier":"internal","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/messaging-key-file-write-is-now-cancellable","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Sessions that exit during startup no longer leave a messaging key behind\n\nClaude Code now checks that a session still needs its local messaging key before writing it, so early exits leave no stale key file\n\n**What**\n\nClaude Code writes a key file so local processes can message each other. Before, it wrote the key as soon as it had read its identity. It now first checks that the session still wants the key. It also records timing checkpoints during startup, such as when the key was written.\n\n**Why**\n\nIf a session closes while still starting up, it no longer leaves an outdated key file behind.\n\n- Area: Sessions\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}