You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: macOS: runtime-dependent CLI commands fail from Claude Code's Bash sandbox with "Orca is not running" while orca status reports ready #20937
On macOS, runtime-dependent orca CLI commands fail from inside Claude Code's Bash sandbox with runtime_unavailable / "Could not connect to the running Orca app. Restart Orca and try again." (non-JSON mode adds "Orca is not running. Run 'orca open' first."), while the Orca app is open and healthy and orca status --json from the same sandbox reports the runtime as ready and connected. The identical commands succeed immediately when run outside the sandbox.
Because the message says the app is not running, agents driving the CLI repeat that to the user. This has become frequent recently, most likely because Claude Code now runs Bash commands sandboxed by default, so every Orca-managed Claude session hits it. It looks like the macOS/Claude Code sibling of #12528 (Codex sandbox, stale_bootstrap) and #13539 (Windows Codex sandbox, named pipe EPERM).
Environment
Orca app/CLI 1.4.203
macOS (Darwin 25.6.0), arm64
Claude Code running in an Orca-managed terminal, Bash tool in its default sandbox
From a Claude Code session inside an Orca-managed terminal, with the Bash sandbox on (default):
orca status --json # ok: true, runtime.state "ready", connectionState "connected"
orca worktree list --json # ok: false, error.code "runtime_unavailable"
orca worktree list # "Could not connect to the running Orca app. Restart Orca and try again." / "Orca is not running. Run 'orca open' first."
Then run the same orca worktree list with the sandbox disabled for that one command: it succeeds and lists every worktree. Reproduced three times in a row in the same minute; the outcome is stable, not flaky.
Actual behavior
{
"id": "local",
"ok": false,
"error": {
"code": "runtime_unavailable",
"message": "Could not connect to the running Orca app. Restart Orca and try again."
},
"_meta": { "runtimeId": null }
}
Every invocation, sandboxed or not, also prints this line first:
status and the runtime-dependent commands should agree: if status can reach the runtime from the sandbox, worktree list should too, or status should report the same limitation.
When the connection fails while the app is demonstrably running, the error should say so ("connection to the Orca runtime was refused or denied; the app appears to be running") and print the socket or endpoint it tried, so a sandboxed caller can allow it and an agent does not report an outage.
Document the local endpoint sandboxed agents need to reach, so Claude Code / Codex sandbox allowlists can include it.
Notes
The SecCodeCheckValidity line may be unrelated; it appears on every CLI call on this machine, sandboxed or not, and is included in case it helps.
Activity
AmethystLiang commentedon Sep 16, 2026
thanks for reporting. looking into it
fix(cli): a sandbox that denies chmod no longer breaks reading Orca's…