Environment
- open-computer-use: 0.3.1 (latest)
- macOS: 27.0 (Build 26A5406e), Apple Silicon MacBook Pro
- Launched as MCP server by a host agent (also reproduced via direct CLI)
Symptom
doctor reports accessibility=granted, screenRecording=granted, list_apps works, but get_app_state / snapshot fail for every app (even frontmost Google Chrome) with:
Apple event error -10005: cgWindowNotFound
Repro
open-computer-use call get_app_state --args '{"app":"Google Chrome","text_limit":200}'
What we ruled out
- Permissions: re-granted in System Settings;
doctor confirms granted both times.
- Reinstall:
npm uninstall -g + npm install -g (same signed build, TeamIdentifier J9P29FA5BX); TCC re-granted after. No change.
- System-level Screen Recording works:
screencapture from Terminal succeeds.
Key finding (root cause)
The system's own Accessibility window enumeration was also broken: osascript -e 'tell application "System Events" to tell process "Google Chrome" to get name of every window' returned empty, while process-level queries worked fine. This points to the WindowServer session state, not to this plugin.
Trigger: the problem appeared after a user-session logout + re-login (loginwindow restarted, new WindowServer instance).
Fix: a full reboot (fresh WindowServer) restored everything — get_app_state / snapshot / system AppleScript window enumeration all work again, with no plugin or permission changes.
Suggested improvement (optional)
When the macOS window enumeration returns no windows while permissions are granted, consider detecting this state and suggesting a reboot/logout in the error message instead of returning a bare cgWindowNotFound.
Environment
Symptom
doctorreports accessibility=granted, screenRecording=granted,list_appsworks, butget_app_state/snapshotfail for every app (even frontmost Google Chrome) with:Repro
open-computer-use call get_app_state --args '{"app":"Google Chrome","text_limit":200}'What we ruled out
doctorconfirms granted both times.npm uninstall -g+npm install -g(same signed build, TeamIdentifier J9P29FA5BX); TCC re-granted after. No change.screencapturefrom Terminal succeeds.Key finding (root cause)
The system's own Accessibility window enumeration was also broken:
osascript -e 'tell application "System Events" to tell process "Google Chrome" to get name of every window'returned empty, while process-level queries worked fine. This points to the WindowServer session state, not to this plugin.Trigger: the problem appeared after a user-session logout + re-login (loginwindow restarted, new WindowServer instance).
Fix: a full reboot (fresh WindowServer) restored everything —
get_app_state/snapshot/ system AppleScript window enumeration all work again, with no plugin or permission changes.Suggested improvement (optional)
When the macOS window enumeration returns no windows while permissions are granted, consider detecting this state and suggesting a reboot/logout in the error message instead of returning a bare
cgWindowNotFound.