Sandbox cannot be enabled on macOS: /sandbox menu unresponsive and settings.json ignored
Resolved 💬 3 comments Opened Mar 9, 2026 by danosbananos Closed Mar 13, 2026
Description
Sandbox cannot be enabled on macOS. Two separate issues prevent activation:
/sandboxinteractive menu does not respond to keyboard input — arrow keys, Tab, and Enter have no effect. Only Escape works (to dismiss). This occurs in both Terminal.app and zsh.
sandbox.enabled: truein settings.json is ignored —/statusdoes not show sandbox as enabled, even after restart.
Environment
- macOS: 26.2 (Build 25C56)
- Architecture: arm64 (Apple Silicon)
- Claude Code: v2.1.71
- Terminal: Terminal.app (also tested in zsh shell)
- Shell: bash (also tested with zsh)
- sandbox-exec: available at
/usr/bin/sandbox-exec(Seatbelt) - bubblewrap: not installed (Linux-only, not expected on macOS)
Steps to reproduce
Issue 1: /sandbox menu unresponsive
- Start Claude Code:
claude(or with custom config dir) - Type
/sandbox - Menu appears showing dependencies (bubblewrap, socat, seccomp) as installed
- Arrow keys, Tab, and Enter do nothing
- Only Escape works (dismisses the menu)
Issue 2: settings.json sandbox config ignored
- Add sandbox config to
~/.claude/settings.json:
``json``
{
"sandbox": {
"enabled": true,
"autoAllowBashIfSandboxed": true
}
}
- Also added to project-level
.claude/settings.json(same config) - Restart Claude Code
- Run
/status - Expected: Sandbox shown as enabled
- Actual: No sandbox information displayed in /status output
Notes
- The
/sandboxmenu shows "bubblewrap: installed", "socat: installed", "seccomp filter: installed" — but these are Linux tools. On macOS, Seatbelt should be used instead. This suggests the/sandboxUI may be checking for the wrong dependencies on macOS. - Using
CLAUDE_CONFIG_DIRto point to a custom config directory (~/.claude-sdlc/) does not change the behavior. - The settings.json files are valid JSON (verified with Python
json.load()).
Expected behavior
Either:
- The
/sandboxinteractive menu should respond to keyboard input on macOS Terminal.app, OR - Setting
sandbox.enabled: truein settings.json should enable the sandbox without requiring the interactive menu
Workaround
None found. The sandbox cannot be enabled on this configuration.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗