{"version":"2.1.299","anchor":"added-directories-are-denied-to-the-sandbox-when-added-mid-s","canonical_anchor":"added-directories-are-denied-to-the-sandbox-when-added-mid-s","heading":"Folders added during a session are kept out of sandboxed shell commands","tier":"notice","area":"Sandbox","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.299\/e\/added-directories-are-denied-to-the-sandbox-when-added-mid-s","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.299","markdown":"### Folders added during a session are kept out of sandboxed shell commands\n\nAdding a folder mid-session now rebuilds the sandbox so shell commands stay out of it, with clear errors when that cannot be done\n\n**Unclear.** Which command or action adds a folder this way is not stated.\n\n**What**\n\nThe sandbox limits what shell commands Claude runs can reach. Claude Code can now add a folder to a session and rebuild the sandbox so shell commands stay out of that folder. It fails with a clear error in two cases:\n\n- the sandbox could not be rebuilt\n\n- on Windows, the sandbox had already started, because there it cannot keep shell commands out of a folder added later\n\n**Why**\n\nIf you use sandboxing and add a folder partway through a session, you may now see one of these errors.\n\n- Area: Sandbox\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}