claude-code - 💡(How to fix) Fix [FEATURE] /sandbox command support in Claude Desktop app

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…

The /sandbox command is available in Claude Code CLI but does not exist in Claude Desktop (with code), leaving users with no way to manage sandbox settings interactively from within the app.

Root Cause

The /sandbox command is available in Claude Code CLI but does not exist in Claude Desktop (with code), leaving users with no way to manage sandbox settings interactively from within the app.

RAW_BUFFERClick to expand / collapse

Summary

The /sandbox command is available in Claude Code CLI but does not exist in Claude Desktop (with code), leaving users with no way to manage sandbox settings interactively from within the app.

Current Behavior

  • Bash commands to localhost / network endpoints are blocked by the harness-level sandbox in Claude Desktop.
  • The only bypass is dangerouslyDisableSandbox: true per call, which triggers a permission pop-up with only "Allow Once" / "Deny" — no "Always Allow" option.
  • sandbox.network.allowedDomains set in ~/.claude/settings.json is not honored by the Desktop harness, even when sandbox.enabled: false is set.
  • skipDangerousModePermissionPrompt: true in settings.json does not suppress the per-call pop-up in Desktop.

Expected Behavior

One or more of the following:

  1. Expose /sandbox in Claude Desktop so users can toggle sandbox mode and configure allowed domains interactively, matching the CLI experience.
  2. Honor sandbox.network.allowedDomains from ~/.claude/settings.json in the Desktop harness so users can whitelist localhost / 127.0.0.1 without needing per-call bypasses.
  3. Add an "Always Allow" option to the dangerouslyDisableSandbox permission pop-up so users can permanently authorize the bypass without repeated prompts.

Use Case

Developers using Claude Desktop for active coding work (e.g., testing local backends, running curl against localhost services) are forced to click "Allow Once" on every network call. This is a significant friction point for any workflow involving local servers.

Environment

  • Claude Desktop (macOS) with code/cowork feature
  • ~/.claude/settings.json with sandbox.enabled: false — works for CLI but not Desktop harness

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 [FEATURE] /sandbox command support in Claude Desktop app