Preserve Welcome choices across Accessibility reauthorization - #1862
Open
dank-openai wants to merge 1 commit into
Open
dank-openai wants to merge 1 commit into
dank-openai wants to merge 1 commit into
Conversation
dank-openai
marked this pull request as ready for review
September 18, 2026 19:31
Contributor
Author
|
This issue cropped up while I was developing, so I found it useful to fix it. |
Owner
|
Thanks for the follow-on. To keep it simpler, I think we could instead add this to the beginning of the And add that BoolDefault to Defaults. There isn't a need to make that part unit testable, in my opinion, so we could get by with this simple change. |
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
Problem solved
The new-permission callback opens Welcome unconditionally. For example, a returning user who chose Resize can reauthorize Rectangle, see Welcome again, and select Recommended, changing the saved choice to Across Monitor.
Save that Welcome is pending before version bookkeeping records the first launch, so exiting before permission is granted does not suppress Welcome on restart. Both newly granted permission and an already-trusted launch check that pending state. Clear the marker after the Welcome callback returns. Existing installations retain their preferences without a migration.
Validation
EXCLUDED_SOURCE_FILE_NAMES=RectangleTests.swift: that existing file has an unrelated outdatedsetFrameoverride that prevents the full suite from compiling. No exclusion or unrelated test repair is included in this PR.