Repository navigation
fix: preserve focus through native control transfers - #4440
Closed
leaf-agent wants to merge 1 commit into
Closed
leaf-agent wants to merge 1 commit into
leaf-agent wants to merge 1 commit into
Conversation
Read focus departures after the native transfer task rather than its intermediate microtask checkpoint. Ignore a deferred departure superseded by a newer location. The runtime regression protects against an intermediate empty location; failed component arrivals still publish their departure. Closes #4425
Collaborator
Author
This was referenced Oct 27, 2026
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.
Native Tab transfers briefly leave the document body active between blur and focus. #4406 started reading that gap in a microtask as a real departure, so the margin folded its options before Reject could receive focus. The shared focus reader now waits until the transfer task finishes and ignores departures superseded by a newer location. Failed component arrivals still publish their departure, preserving #4406's intent.
The reported margin Tab test fails on main and passes with this change. A new runtime regression also fails before the change and passes afterward. The adjacent margin arrow test, the review-a-fix stale-key journey behind #4406, and
pnpm run checkpass. Generated kernel files are rebuilt.Closes #4425 — automated triage