Repository navigation
Description
Summary
orca computer get-app-state (and other orca computer actions) consistently return permission_denied for Accessibility even when the "Orca Computer Use" helper is granted Accessibility access in System Settings, verified as granted, and confirmed via TCC's own IPC responses in some code paths but not others within the same process.
Environment
- Orca version: 1.4.145 (also checked 1.4.146 changelog — no related fix)
- macOS, Apple Silicon
orca computer capabilities --jsonreports the macOS provider is active and functional
Reproduction
- Fresh install, quarantine cleared (
xattr -dr com.apple.quarantine), no translocation tccutil reset Accessibility com.stablyai.orca.computer-useandcom.stablyai.orca, grant fresh in System Settings → Privacy & Security → Accessibility, confirm checkbox checkedorca computer permissions --jsonreports"accessibility": "granted"orca computer get-app-state --app com.google.Chrome --restore-window --jsonstill returns:{"error": {"code": "permission_denied", "message": "Accessibility permission is required for Orca Computer Use..."}}- Reproduces identically against other target apps (Finder), so it is not Chrome/Automation-specific — pure Accessibility gate.
Root cause (traced via log show --predicate 'process CONTAINS "orca-computer-use"')
Each orca computer CLI invocation appears to spawn a fresh, short-lived orca-computer-use-macos helper process (distinct temp socket dir under /var/folders/.../orca-computer-use-XXXXXX/ each time).
Live TCC IPC trace for a single fresh process (pid 73661) shows the SAME identity flapping across three different answers within its own lifetime:
SEND kTCCServiceAccessibility (self, pid 73661) -> RECV auth_value=0, result=false (denied)
SEND kTCCServiceAccessibility (self, pid 73661) -> RECV auth_value=0, result=false (denied, again)
SEND kTCCServiceAccessibility (target pid 841) -> RECV auth_value=2, result=true (granted, different target)
... later, same process ...
SEND kTCCServiceAccessibility (self, pid 73661) -> RECV auth_value=2, result=true (now granted)
Separately, calls tagged auth_reason=5 consistently come back as:
{"prompt_type": 1, "auth_value": 1, "preflight_unknown": true, "do_not_cache": true}i.e. macOS's own "unknown, do not cache" preflight response — which is the expected answer from tccd for a freshly spawned process that has not yet made a real (non-preflight) access attempt, regardless of the bundle-level grant already recorded in TCC.db.
This strongly suggests the permission gate in orca computer is calling the cheap preflight check (AXIsProcessTrustedWithOptions with prompt disabled, or equivalent) and immediately failing with permission_denied on auth_value != 2, instead of either:
- attempting the real action directly (which would trigger the proper enforcement check and succeed given the actual system-wide grant), or
- retrying once against the non-preflight path before giving up.
Because a fresh helper process is spawned per invocation, this preflight-only check will legitimately return "unknown" on every single call, making the Accessibility gate permanently unusable for CLI-driven orca computer actions even when correctly granted.
Suggested fix
Either:
- Reuse a single long-lived helper process (so it "warms up" past the first preflight-unknown state), or
- Have the permission gate perform the real accessibility call (or a proper
AXIsProcessTrusted()check withoutdo_not_cache) instead of relying on a fresh-process preflight response, or - Retry the check once after a short delay / after triggering a real (non-preflight) TCC request before surfacing
permission_deniedto the CLI caller.
Happy to provide the full log show trace or test a patched build.
Activity
haniakrim commentedon Jul 19, 2026
Update: tried 3 source-level fixes, none resolved it — likely not a simple code bug
Cloned the repo and patched
accessibilityTrusted()innative/computer-use-macos/Sources/OrcaComputerUseMacOS/main.swiftthree ways, rebuilding and re-deploying (ad-hoc signed locally) between each:AXIsProcessTrusted()(10x, 50ms apart) — no change, still denied every call.AXIsProcessTrustedWithOptions([kAXTrustedCheckOptionPrompt: true])per Apple's documented pattern for forcing a real settlement instead of a passive/preflight check — no change.Also tested and ruled out:
--options runtime, no change.osascript -e 'do shell script ...'(different ancestor chains) — same failure both ways.find /only one active copy exists at the expected path, andstringsconfirms the deployed binary contains the patched code.runStdio()dead code path — confirmed it justexit(13)s; all CLI calls go throughrunAgent()/NSApplication, same as the passing self-check path.Most importantly: this flapping reproduces on the original, unmodified, Developer-ID-signed v1.4.145 build, before any of my changes — so it isn't something introduced by ad-hoc re-signing or my patches.
orca computer permissions --json(which also callsaccessibilityTrusted(), perprintPermissionStatus()/writePermissionStatus()) consistently reportsgranted, while the identical check insidebuildSnapshot()for a freshly-spawned agent instance consistently reports denied, with no code-level combination of retries/APIs changing that outcome.My best remaining guess: this may be inherent to how a new agent process gets spawned per CLI invocation rather than a single persistent daemon reused across calls — i.e. the fix might need to be architectural (keep one warm, already-trusted agent process alive and route all
orca computercalls through it, instead of spinning up a fresh one per call) rather than anything fixable insideaccessibilityTrusted()itself. I didn't attempt that change — it's a bigger surface area than I want to touch blind on someone's production install.Happy to test a candidate fix if useful.
AmethystLiang commentedon Jul 19, 2026
Duplicate consolidation
Closing #9159 as a duplicate of this issue.
Both report the same computer-use failure mode:
orca computer permissionsreports Accessibility granted, while real actions likeget-app-statereturnpermission_denied.This issue has the deeper TCC preflight / fresh-helper-process root-cause analysis, so it is the canonical tracker.
Related (not duplicates):
opCLI (different TCC path)Tamaz-sujashvili commentedon Jul 24, 2026
Related Screen Recording variant of this same fresh-helper preflight race: #10372.
CGPreflightScreenCaptureAccess()stays false /permissions.screenshots=not-grantedwhile System Settings already shows Orca Computer Use Screen Recording toggled ON, and the drag-assistant keeps asking to add an app that is already listed.Proposed fix (settle + one real capture probe): stacked on #10122 in a follow-up PR from that branch.
buchi1122 commentedon Oct 24, 2026
I have a recorded observation from October 23, 2026 on macOS:
Orca 1.4.230 was confirmed later that day. The retained evidence does not independently establish the build used by the failed request. I have not verified whether the failure is still reproducible.
An earlier System Settings check showed Orca Computer Use enabled under Accessibility. That does not establish the effective Accessibility trust of the process handling the failed request. The cause and any update-related trigger remain unconfirmed.
I am asking here because this issue records the same error wording. I also found #31022, closed through PR #31200, concerning a specific macOS serve-supervisor update problem. I have not established that my case matches that setup. #20078 reports a different “visible windows but no accessibility window” message, so I am not assuming a shared cause.
No logs, screenshots, local paths, or runtime identifiers are attached.