dangerouslyDisableSandbox: true does not prompt for user confirmation

Resolved 💬 5 comments Opened Mar 9, 2026 by afeil1 Closed Apr 17, 2026

Body:

  • Claude Code version: 2.7.1
  • OS: macOS 24.3.0 (Darwin)
  • What happened: Claude used dangerouslyDisableSandbox: true on a Bash tool call to start a dev server (npm start /

vite). No confirmation prompt was shown — the command executed immediately.

  • What was expected: A permission prompt asking the user to approve or deny the sandboxed action before execution
  • Reproduction: Ask Claude to start a local dev server. Claude will use dangerouslyDisableSandbox: true to bind a

port and bypass the sandbox. No prompt appears.

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗