What
The sandbox is a fenced-off area where Claude Code runs commands with limits on what they can reach.
- If
sandbox.failIfUnavailableis set but the session runs in Anthropic's cloud container, which has no command sandbox, the session now starts anyway with a message saying so, instead of failing. The setting's description now says this. - In a hosted worker where the sandbox is unavailable, an administrator policy can set
failIfUnavailableaside. Startup then continues with a warning that thesandbox.filesystemandsandbox.networkrules are not enforced. Before, startup either refused to run or printed a sandbox-disabled warning. autoAllowBashIfSandboxed, which lets sandboxed Bash commands run without asking you, used to default to on when not set. Its default now depends on a feature check, so it can be off.autoAllowBashIfSandboxednow has a description: it works only on macOS and Linux/WSL and has no effect on native Windows.
Why
In cloud and some hosted sessions, commands may run without the sandbox rules you set, so watch for the warning. If you rely on sandboxed Bash commands running without a prompt, set autoAllowBashIfSandboxed yourself rather than relying on the default.
Names in the bundlefailIfUnavailable
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up failIfUnavailable, on Claude Code changelog.
* Changed how a sandbox that can't start is reported, unless `sandbox.failIfUnavailable` is set: the next sandboxed Bash command is refused and says that the sandbox is off for the sessionchangelog see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up failIfUnavailable, on Claude Code changelog.