Skip to content

Handle missing Mac input permission without locking the client - #5

Merged
Lokilankaaa merged 5 commits into
mainfrom
fix/macos-permission-startup
Oct 30, 2026
Merged

Lokilankaaa merged 5 commits into
mainfrom
fix/macos-permission-startup

Conversation

@Lokilankaaa

@Lokilankaaa Lokilankaaa commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

When the packaged Mac app lacks input permissions, the receiver exits before listening. The UI previously treated that ordinary startup rejection as unconfirmed input cleanup, disabling retry and app exit.

Add a dedicated terminal startup_rejected status only for read-only permission preflight before an adapter or input worker exists. The Mac UI shows the required permission and permits retry only after an ordinary nonzero process exit and a valid final status. Generic runtime errors, malformed sequences, signals and forced termination retain the cleanup gate. Capture the native exit reason before releasing the process handle.

Validation: seven receiver-control tests and five actual Windows DrySink process tests pass; Windows and Apple-target Clippy pass. Native Mac CI on source 80e2246 passed all 30 Swift tests, core/pairing builds, packaged self-test/signature and isolated Keychain checks: https://github.com/Lokilankaaa/crossflow/actions/runs/40803043473 . Later changes only document these results.

The user completed first pairing through the actual Windows/Mac native UIs on the prior build. On 2026-10-30, actual app permission-denied retry, normal quit, reopen and window-close passed with b684dec core/UI plus the preserved previously authorized Keychain helper. Freshly rebuilt helper access to the existing pair fails, so normal upgrade persistence is explicitly NOT passed. Exact hashes and conditions are in docs/macos-permission-app-regression-20261030.json. System permission grants and visible cursor/physical input acceptance remain pending.

@Lokilankaaa
Lokilankaaa merged commit 5700808 into main Oct 30, 2026
@Lokilankaaa
Lokilankaaa deleted the fix/macos-permission-startup branch November 22, 2026 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant