Unclear What CLAUDE_CODE_RELAUNCH_SANDBOX_HOLD does, and whether it is meant to be set by users, is not stated.
What
The sandbox, the protected area where Claude Code runs commands with limited access, now tracks which folders its rules were built for.
- If rebuilding the rules fails and the rules in force belong to a different folder, sandboxed commands are refused with "Sandboxed commands are refused: the sandbox rules could not be rebuilt for this folder". This also applies when
dangerouslyDisableSandboxis used. Before, the running rules were kept and commands were not refused. - On Windows, a process started ahead of time is refused if it is not yet in its session's folder.
- A new environment variable,
CLAUDE_CODE_RELAUNCH_SANDBOX_HOLD, carries the strict, required and auto-allow state across a relaunch. It is passed through in several allowlists and removed once read.
Why
After the working folder moves, commands now stop rather than run under rules meant for another folder. If you see this refusal, the sandbox could not set itself up for where you are working.
Names in the bundleCLAUDE_CODE_RELAUNCH_SANDBOX_HOLD
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What `CLAUDE_CODE_RELAUNCH_SANDBOX_HOLD` does, and whether it is meant to be set by users, is not stated.
The name it cites is new in this build
New in this build: CLAUDE_CODE_RELAUNCH_SANDBOX_HOLD