{"version":"2.1.331","anchor":"sandbox-refuses-commands-when-a-protected-folder-cannot-be-r","canonical_anchor":"sandbox-refuses-commands-when-a-protected-folder-cannot-be-r","heading":"Sandbox refuses commands when it cannot leave or create a folder it must protect","tier":"notice","area":"Sandbox","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/sandbox-refuses-commands-when-a-protected-folder-cannot-be-r","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Sandbox refuses commands when it cannot leave or create a folder it must protect\n\nSandboxed commands are refused if Claude Code could not leave a folder it should have left, or cannot create a protected temp folder\n\n**Unclear.** Whether the check for a folder that could not be left is switched on is not known.\n\n**What**\n\nThe sandbox, the protected area that limits what commands Claude runs can reach, now refuses commands in two more failure cases:\n\n- Claude Code could not leave a folder it should have left, for example because the disk is full. Commands that ask to skip the sandbox with `dangerouslyDisableSandbox` are refused too. This check sits behind a switch that the server controls.\n\n- The sandbox cannot create a temp folder it must protect from the command, because the temp disk is full, over its quota or failing. The error asks you to free space on the temp disk and run the command again.\n\nThe sandbox also handles git ref files and Git LFS folders, and blocks writes to the Claude Code cache folder and to `.git\/NOTES_MERGE_WORKTREE`.\n\n**Why**\n\nWhen the sandbox cannot set itself up properly, it stops the command instead of running it with weaker protection. If you see one of these refusals, freeing disk space is the first thing to try.\n\n- Area: Sandbox\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}