{"version":"2.1.336","anchor":"strict-sandbox-refusal-message-differs-when-managed-settings","canonical_anchor":"strict-sandbox-refusal-message-differs-when-managed-settings","heading":"Sandbox refusals say when only managed settings can exempt a command","tier":"notice","area":"Sandbox","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/strict-sandbox-refusal-message-differs-when-managed-settings","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Sandbox refusals say when only managed settings can exempt a command\n\nWhen only your administrator can exempt a command from the sandbox, the refusal message now says so instead of listing every settings file\n\n**What**\n\nThe sandbox is the walled-off environment where Claude Code can run shell commands. When strict sandboxing blocks a command, Claude Code explains how the command could be exempted. Commands can be exempted with `sandbox.excludedCommands`.\n\nWhen exemptions are controlled by managed settings (settings set by an administrator), the refusal now says that no `sandbox.excludedCommands` entry in managed settings exempts the command. It says that an entry set anywhere else does not count, and that only the administrator can add one. Before, there was a single message that named user settings, managed settings or a `--settings` file in every case.\n\n**Why**\n\nWhen Claude is blocked, it now gets accurate guidance. It will not suggest adding an exemption to your own settings when that would have no effect.\n\n- Area: Sandbox\n- Names: `sandbox.excludedCommands`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: both\n- Heads-up: no"}