Repository navigation
Conversation
|
@jkomyno is attempting to deploy a commit to the knox projects Team on Vercel. A member of the Team first needs to authorize it. |
jkomyno
marked this pull request as ready for review
October 13, 2026 14:41
This branch has not been deployed
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.
Prevents the
EditorCloseGuard windowDidBecomeKey:launch crash observed with BetterShot 0.5.9 on macOS 14.4.1 (Apple silicon).AppKit registers delegate notifications using
responds(to:)when the guard is attached. During startup-window teardown, SwiftUI releases the original window controller, leaving the guard's weak forwarding target nil; the already-queued editor focus call then delivers a notification the guard cannot handle. Keep the original delegate alive while forwarding is installed, and detach inwindowWillCloseafter forwarding the original delegate's teardown so closed windows cannot retain the controller or send late callbacks to the guard.The new standalone check covers owner release, notification forwarding, restoration/release on detach, and close-time cleanup followed by a late focus notification. It is discovered by the existing
scripts/run-checks.shrunner.Validation on macOS 14.4.1: the check fails against the original code and passes with this fix. These local runs used a temporary copy of the production file with only its concurrency annotations removed for the installed Swift 5.9 compiler; the committed test compiles the production file directly under the repository's Swift 6 runner. The shipped binary's failure path was also confirmed under LLDB in a temporary diagnostic copy.
Draft pending Xcode 26 validation:
make teststops at missingxcodegen, and the available Xcode is 15.0.1. The full patched app, Swift 6 checks, and native editor integration suite have not been built/run. No release or deployment-target changes are included.