[BUG] /sandbox shows Linux dependencies (bubblewrap/socat/seccomp) on macOS instead of Seatbelt

Status Fixed / completed
Reported on v2.1.71
Maintainer reply None cached
Activity 4 comments · opened Mar 8, 2026 · closed Mar 8, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Running /sandbox in Claude Code CLI on macOS shows the Dependencies tab with Linux-specific packages (bubblewrap, socat, seccomp filter) marked as "installed" — even though none of them are actually installed. There is no way to enable or configure sandbox from this menu.

On macOS, sandbox should use the built-in Seatbelt framework (sandbox-exec) per the docs:

"macOS: Uses Seatbelt for sandbox enforcement" "On macOS, sandboxing works out of the box using the built-in Seatbelt framework."

What Should Happen?

/sandbox should detect macOS and show Seatbelt-based sandbox configuration with an option to enable/disable it — not Linux dependency checks.

Steps to Reproduce

  1. Open Claude Code CLI on macOS
  2. Run /sandbox
  3. See "Dependencies" tab showing bubblewrap, socat, seccomp filter as "installed"
  4. No Enable/Settings tab available

Error Messages/Logs

No error — the UI simply shows incorrect platform dependencies with no way to proceed.

Environment

  • macOS: 26.3 (Darwin 25.3.0, arm64)
  • Chip: Apple M3 Pro
  • Terminal: Ghostty
  • Claude Code: 2.1.71 (native install at ~/.local/bin/claude)
  • Node.js: v22.22.0 (mise)
  • Claude Desktop: v1.1.5368 (installed, not related to CLI)

Diagnostics

$ sandbox-exec -n no-network /usr/bin/true   → works
$ which bwrap                                 → not found
$ which socat                                 → not found
$ node -e 'console.log(process.platform)'     → darwin
$ uname -s                                    → Darwin

Is this a regression?

Yes — sandbox worked on v2.1.63 (Feb 28). Broke after updating to v2.1.70+ (Mar 6–8).

Last Working Version

2.1.63

Claude Code Version

2.1.71

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Ghostty / zsh

View original on GitHub ↗

4 Comments

ArtemStepanov · 7 months ago

Screenshot

<img width="470" height="237" alt="Image" src="https://github.com/user-attachments/assets/32ef44d8-c1c0-4428-87a5-0c0af849eed9" />

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/31804
  2. https://github.com/anthropics/claude-code/issues/32027
  3. https://github.com/anthropics/claude-code/issues/31993

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

ArtemStepanov · 7 months ago
github-actions[bot] · 7 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.