{"version":"2.1.280","anchor":"sandbox-now-re-initializes-automatically-when-the-sandboxing","canonical_anchor":"sandbox-now-re-initializes-automatically-when-the-sandboxing","heading":"Sandbox now re-initializes automatically when the sandboxing setting is toggled mid-session","tier":"notice","area":"Sandbox","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280\/e\/sandbox-now-re-initializes-automatically-when-the-sandboxing","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.280","markdown":"### Sandbox now re-initializes automatically when the sandboxing setting is toggled mid-session\n\nClaude Code now re-initializes the sandbox automatically if its setting changes mid-session\n\n**What**\n\nClaude Code can run tools inside a sandbox, a restricted environment that limits what commands can access. Previously, if the setting controlling whether sandboxing is enabled changed while a session was running, the sandbox would not pick up that change. Now Claude Code watches for that setting to flip and automatically re-initializes the sandbox when it does. If the re-initialization fails, an error is logged.\n\n**Why**\n\nThis keeps the sandbox in sync with the current setting instead of continuing to run under a stale configuration for the rest of the session.\n\n- Area: Sandbox\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5"}