[DOCS] Permissions page should say next to allow rules that an allow rule also approves the unsandboxed retry
Documentation Location
https://code.claude.com/docs/en/permissions (and the sandboxing page)
Section/Topic
Allow rules, and the unsandboxed retry of a Bash command that failed in the sandbox.
Current Documentation
The sandboxing page (https://code.claude.com/docs/en/sandboxing, section on permissions) says: "An allow rule that matches a command also approves an unsandboxed retry of it, so the command can run outside the sandbox with no prompt."
What's Wrong or Missing?
The permissions page, where users write allow rules, does not repeat this. It is easy to miss when adding rules that look safe because the command is read-only, such as Bash(<tool> grep *) or Bash(<tool> ls *). Such a rule is safe inside the sandbox, but the same rule also lets an unsandboxed retry of that command through unreviewed, where the sandbox no longer limits what it can read or write.
Suggested Improvement
- Repeat the sentence on the permissions page next to the allow-rule syntax, with a short example.
- Optionally, offer a way to scope an allow rule to sandboxed runs only, so a "safe because sandboxed" rule does not widen when the command is retried outside the sandbox.
Environment: Claude Code 2.1.325, macOS (arm64), VS Code extension, auto mode.