Skip to content

[Bug]: macOS: runtime-dependent CLI commands fail from Claude Code's Bash sandbox with "Orca is not running" while orca status reports ready #20937

Closed

Description

@rickbarcellos

Summary

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
  • Orca app open, desktop window available, runtime state: ready

Reproduction

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:

[.../codesign_util.cc:149] SecCodeCheckValidity: Error Domain=NSOSStatusErrorDomain Code=-2147409622 "(null)" (-2147409622)

Expected behavior

  • 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

  1. AmethystLiang commented on Sep 16, 2026

    @AmethystLiang
    Contributor

    thanks for reporting. looking into it

  2. added
    bug
    os:macos
    on Sep 19, 2026
  3. added theissue type on Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugos:macos

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions