Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.328 ·

Sandbox refuses commands when its rules belong to another folder

The sandbox now refuses commands if its rules could not be rebuilt for the current folder, and keeps its state across a relaunch

Group of 2 You'll notice Improvements
JSON All of v2.1.328
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
3Signal: worth watching, 1 to 5
SandboxArea: what it touches
ImprovementsKind: in v2.1.328,
ImprovementsSection of the release

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 dangerouslyDisableSandbox is 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.

See this entry in the whole of v2.1.328 →

Feedback