feat: first-run permission setup wizard (0.6.3) - #21
Merged
Merged
Conversation
Add a one-time AppKit wizard for Screen Recording, Accessibility and Full Disk Access. It opens the exact System Settings pane, re-tests only on explicit Test Again or app activation, and explains that browser-only use needs none — no automated grant, screenshot, prompt, or polling loop. Not Now is respected across launches/versions; the menu bar keeps Set Up Permissions permanently available and shows live ✓/✗/? rows including FDA. PermissionProbe lives in Core with tri-state results: Apple preflight APIs for screen/AX and an actual O_RDONLY|O_CLOEXEC open+immediate close of protected TCC/Safari/Messages databases for FDA (no content read), with injected seams. Sys_info and startup logs now include FDA. 9 new tests cover FDA granted/denied/unknown/path logic and every auto-show policy branch (97 total). Real GUI smoke on macmini caught and fixed two AppKit layout faults; final screenshot verifies aligned mixed-state rows. Packaging smoke passes. Version 0.6.3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First install still requires the human to grant macOS TCC permissions — that cannot and should not be bypassed. 0.6.3 makes the one-time process explicit and usable instead of leaving it in README text.
Not Nowis respected across launches and versions; fully-granted upgrades mark setup complete without a window.Test Again; automatic one-shot refresh when returning from Settings. No timer, no screenshot, no prompting APIs — avoids the permission-popup storm recorded in oablab/oab-pty-mac#62.browser_*works without any of these grants.Measurement
PermissionProbeis in Core and testable. Screen/AX use Apple's non-prompting preflight APIs. macOS has no FDA preflight API, so FDA is measured by actualopen(O_RDONLY|O_CLOEXEC)+ immediatecloseof an existing protected DB (user TCC.db, Safari History, Messages chat) — no bytes are read. Result is tri-state: granted / denied / unknown (no candidate exists).sys_infonow exposesfull_disk_access+ state.Verification
Version
0.6.3. After merge, tag release uses the signed/notarized universal pkg pipeline proven by v0.6.2.