Skip to content

[Bug]: "Orca Computer Use" loses Accessibility grant after every app update (permissions reports granted, AX reads denied) #20078

Description

@wanxu1224

Summary

After every Orca update, orca computer accessibility (AX) reads start failing with permission_denied, even though System Settings → Privacy & Security → Accessibility shows "Orca Computer Use" as enabled and orca computer permissions --json also reports accessibility: granted. Toggling the switch off→on for "Orca Computer Use" restores it — until the next update, when it breaks again.

This is the same symptom as #9159 (closed as COMPLETED on 2026-07-19), but the recurring trigger here is app updates specifically. It looks like the same underlying root cause as #13921 (TCC grants invalidated after updates → child processes hit EPERM) and #20007 (terminal daemon loses TCC after updates because the update recreates the spawner path).

Repro

  1. Grant "Orca Computer Use" Accessibility; confirm orca computer get-app-state --app <any windowed app> --json works.
  2. Let Orca auto-update to a new version.
  3. orca computer permissions --json → accessibility: granted, screenshots: granted.
  4. orca computer get-app-state --app <any> --json → fails:
    app '<X>' has visible windows but no accessibility window (AX reads stayed blocked for 1500ms after retries). macOS Accessibility may need Orca Computer Use toggled off and on again in System Settings.
  5. Toggle Accessibility off→on for "Orca Computer Use" → works again, until the next update.

Note: orca computer list-apps keeps working (some AX is live) while every get-app-state window read is denied — matching #9159.

Signing is stable, so the TCC association should survive updates

The helper is properly Developer-ID signed & notarized with a stable identity:

  • Identifier=com.stablyai.orca.computer-use
  • Authority=Developer ID Application: Lovecast LLC (6CX3WHS9HZ)
  • TeamIdentifier=6CX3WHS9HZ, flags=0x10000(runtime) (hardened runtime)

Because Team ID + bundle identifier are stable across versions, the TCC Accessibility grant should persist across updates (that's how normal notarized apps behave). It doesn't — which suggests the updater recreates the helper binary/path in a way that breaks TCC's stored association (cdhash/path based) instead of matching by the designated requirement.

Impact

Any headless / agent-driven use of orca computer breaks silently after each update, and because orca computer permissions misreports granted, users (and agents) can't tell why. Every update requires a manual off→on toggle, which is impossible when operating the machine remotely.

Suggested directions

  • Store/match the AX grant by designated requirement (Team ID + identifier) so it survives updates, or cleanly re-request on version change instead of leaving a stale grant.
  • Make orca computer permissions report the effective AX state (perform a real AX probe) rather than the stored TCC flag, so it stops misreporting granted while reads fail.

Environment

  • macOS (Darwin 25.0.0), Apple Silicon
  • Orca 1.4.198

Activity

  1. added
    bug
    os:macos
    on Sep 19, 2026
  2. added theissue type on Sep 19, 2026
  3. venkaa28 commented on Oct 5, 2026

    @venkaa28

    Additional data point: the error itself may be a false positive.

    On Orca 1.4.218, macOS on Apple Silicon, get-app-state returns permission_denied ("has visible windows but no accessibility window (AX reads stayed blocked for 1500ms)… toggle Orca Computer Use off and on") while Accessibility is demonstrably working.

    • The system TCC.db shows com.stablyai.orca.computer-use allowed for Accessibility. Its stored csreq matches the current designated requirement (identifier + team 6CX3WHS9HZ), and there are no stale or duplicate rows.
    • In the same session, without changing any setting, get-app-state reads a normal app's window fine but returns this error for Finder, whose only visible "window" is the desktop.
    • We first hit it against an app relaunched about 20 minutes earlier. Its window was likely on another Space or behind a locked display.

    So the helper seems to raise permission_denied whenever the window list shows a window but the AX tree returns none within 1.5 s, for any reason. "Toggle off/on" appears to help only because the window becomes reachable in the meantime.

    Suggestions:

    1. Return a distinct error (e.g. ax_window_unavailable), and keep permission_denied for when AXIsProcessTrusted() is false in the worker. Drop the toggle advice from the generic case.
    2. Have orca computer permissions query the running --agent worker instead of a separately open -n'd copy of the helper, so the check tests the identity that does the work.
    3. Ignore the Finder desktop and other non-standard window layers when deciding "has visible windows".
    4. Give the helper its own Screen Recording entry. Today only com.stablyai.orca has one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugos:macos

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions