{"version":"2.1.336","anchor":"session-file-write-retries-after-creating-the-directory","canonical_anchor":"session-file-write-retries-after-creating-the-directory","heading":"Claude Code creates the session folder only when a save needs it","tier":"internal","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/session-file-write-retries-after-creating-the-directory","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Claude Code creates the session folder only when a save needs it\n\nWhen saving session data, Claude Code now tries the write first and creates the folder only if that write fails\n\n**What**\n\nA session is one conversation with Claude Code, and Claude Code saves its data to a file. It now tries that write first. Only if the write fails with certain kinds of error does it create the folder, readable only by your user account, and then write again.\n\nBefore, it created the folder before every single write.\n\n**Why**\n\nClaude Code no longer repeats the folder-creation step on every save. Saving otherwise works the same way.\n\n- Area: Sessions\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5\n- Scope: individual\n- Heads-up: no"}