claude-code - 💡(How to fix) Fix [BUG] Crash on startup: "sandbox required but unavailable" on macOS Tahoe 26.4 [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#53138Fetched 2026-04-26 05:23:25
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
1
Participants
Timeline (top)
labeled ×5cross-referenced ×1subscribed ×1

Error Message

9252: Error: sandbox required but unavailable: ${f_} 9253 + sandbox.failIfUnavailable is set \u2014 refusing to start without a : working sandbox. 9254:

  • <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9251:5663)
  • WC (/$bunfs/root/src/entrypoints/cli.js:492:63749)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:76948)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:76926)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
  • pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
  • fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
  • async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18815:2361)

Root Cause

Claude Code crashes immediately on startup with a sandbox-related error. The process refuses to start because sandbox.failIfUnavailable is set but the sandbox is reported as unavailable.

Code Example

9252: Error: sandbox required but unavailable: ${f_}
 9253 `+`  sandbox.failIfUnavailable is set \u2014 refusing to start without a
 :   working sandbox.
 9254:

 - <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9251:5663)
 - WC (/$bunfs/root/src/entrypoints/cli.js:492:63749)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:76948)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:76926)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18815:2361)
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

Claude Code crashes immediately on startup with a sandbox-related error. The process refuses to start because sandbox.failIfUnavailable is set but the sandbox is reported as unavailable.

Environment:

  • Claude Code version: 2.1.120
  • OS: macOS 26.4 (Tahoe), build 25E246
  • Architecture: arm64 (Apple Silicon)
  • Kernel: Darwin 25.4.0
  • Bun: 1.3.11

What Should Happen?

It should resume a session

Error Messages/Logs

9252: Error: sandbox required but unavailable: ${f_}
 9253 `+`  sandbox.failIfUnavailable is set \u2014 refusing to start without a
 :   working sandbox.
 9254:

 - <anonymous> (/$bunfs/root/src/entrypoints/cli.js:9251:5663)
 - WC (/$bunfs/root/src/entrypoints/cli.js:492:63749)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:76948)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:76926)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - pj (/$bunfs/root/src/entrypoints/cli.js:492:77745)
 - fT (/$bunfs/root/src/entrypoints/cli.js:492:76827)
 - async <anonymous> (/$bunfs/root/src/entrypoints/cli.js:18815:2361)

Steps to Reproduce

Steps to reproduce:

  1. Run claude in terminal
  2. Crash occurs immediately before any interaction

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.118

Claude Code Version

2.1.120

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

The most likely fix is to investigate and resolve the sandbox availability issue, potentially by updating or reconfiguring the sandbox environment.

Guidance

  • Verify the sandbox configuration and environment to ensure it is properly set up and available.
  • Check the differences between version 2.1.118 (last working version) and 2.1.120 to identify potential changes that may have caused the sandbox issue.
  • Review the error logs to see if there are any specific error messages or clues that can help diagnose the sandbox problem.
  • Consider testing the application with sandbox.failIfUnavailable set to false to see if it can start without the sandbox.

Example

No code example is provided as the issue seems to be related to environment configuration rather than code.

Notes

The issue seems to be specific to the macOS environment and the Anthropic API platform. The fact that it worked in a previous version suggests that the problem may be related to a recent change.

Recommendation

Apply workaround: temporarily set sandbox.failIfUnavailable to false to see if the application can start without the sandbox, while investigating the root cause of the sandbox availability issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Crash on startup: "sandbox required but unavailable" on macOS Tahoe 26.4 [1 participants]