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
fix: detect already-granted Screen Recording permission after restart
The background permission poll relied solely on CGPreflightScreenCaptureAccess(),
which on macOS 15+ can return a stale false even on a fresh launch with the
permission genuinely granted. Since the only authoritative live check ran when
the user pressed "Grant…", a permission granted in a prior session showed as
"Not Granted" after restarting the app — a regression from 0.2.0, where the poll
used the cache-bypassing SCShareableContent path (later removed because it
spammed the TCC dialog every 3s).
Add a non-prompting authoritative probe via CGWindowListCopyWindowInfo (reading
another process's window title requires Screen Recording permission) and use it
as a fallback in the poll, plus run one check immediately at launch. This never
triggers the TCC dialog, so it does not reintroduce the prompt loop.
https://claude.ai/code/session_01GZZ1aHLdxmAz4KRof5XAUC
0 commit comments