Repository navigation
Handle missing Mac input permission without locking the client - #5
Merged
Merged
Conversation
added 5 commits
October 29, 2026 09:50
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.
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.