[BUG] Title: Preview sandbox broken on macOS — EPERM uv_cwd
Status Closed — not planned
Reported on v2.1.70
Maintainer reply None cached
Activity 2 comments · opened Mar 6, 2026 · closed Apr 3, 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?
Error: EPERM: operation not permitted, uv_cwd and getcwd: cannot access parent directories: Operation not permitted
Details: preview_start fails for all executables (node, npm, bash). macOS Seatbelt sandbox blocks getcwd() in spawned processes. No launch.json config works around it. Machine: macOS Darwin 25.3.0, Apple Silicon, Node v25.2.1.
What Should Happen?
Claude Code should be able to control the Chrome browser
Error Messages/Logs
Error: EPERM: operation not permitted, uv_cwd and getcwd: cannot access parent directories: Operation not permitted
Steps to Reproduce
Ask Claude desktop on Mac to do a browser task with Claude in Chrome
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.70.
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗