Unclear Whether the check for a folder that could not be left is switched on is not known.
What
The sandbox, the protected area that limits what commands Claude runs can reach, now refuses commands in two more failure cases:
- 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
dangerouslyDisableSandboxare refused too. This check sits behind a switch that the server controls. - 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.
The 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.
Why
When 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.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
Whether the check for a folder that could not be left is switched on is not known.