[BUG] macOS sandbox cannot be enabled, shows Linux pre-requisites

Resolved 💬 5 comments Opened Mar 7, 2026 by jamestelfer Closed Mar 16, 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?

The sandbox is no longer applied despite being enabled. When I view /sandbox the following is shown:

<img width="906" height="652" alt="Image" src="https://github.com/user-attachments/assets/cee241e2-4b7e-4a53-bdb1-b598007f35f9" />

Bubblewrap, socat etc are required for the Linux sandbox, not Mac.

This is a new regression in 2.1.71, all is working in 2.1.70.

What Should Happen?

When the sandbox is enabled, Claude should use it when executing commands on Mac. Showing the /sandbox settings should appear as below:

<img width="1334" height="832" alt="Image" src="https://github.com/user-attachments/assets/5bb21bca-1b17-443a-8053-daf7719e05d7" />

Error Messages/Logs

Steps to Reproduce

  1. On 2.1.70, enable the sandbox on macOS
  2. Upgrade to 2.1.71, open

Sandbox no longer works.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.70

Claude Code Version

2.1.71

Platform

AWS Bedrock

Operating System

macOS

Terminal/Shell

Other

Additional Information

I looked at the debug logs but nothing appeared relevant. On 2.1.71 it shows what you'd expect for a disabled sandbox, and the Bash confirmation prompts are showing.

View original on GitHub ↗

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