Repository navigation
Preserve interrupted arrivals and avoid offscreen layout work - #3374
Merged
Merged
Conversation
…-layout-repairs # Conflicts: # skills/leaf/kernel/kernel.json
leaf-agent
approved these changes
Oct 20, 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.
Interrupted native smooth travel could carry a resumed draft or a reversed thread jump offscreen after focus had already returned. Cancel outgoing placement at the common arrival boundary, wait for its final compositor update, then resolve and place the destination again. History shares that cancellation primitive, and hidden reading regions are excluded. Track motion before its first frame so idle arrivals remain immediate, and route passage-click thread opening through the same arrival owner.
Separate the focused or selected place from the viewport fallback used to start navigation. This removes page-wide reading scans from drawing-release control updates, including when a user to-do exists. Preserve approval and unanchored-thread queue positions even when those controls have no page target. Alignment resolves its destination when invoked.
Skip header geometry for code controls inside hidden content during resize. Previously shown sections now remain skipped until revealed, and their Copy controls still return correctly.
Closes #3118. Ref #2775, #2793, and #2262. The pre-capture scans and a current hidden-content layout defect are repaired; atomic screenshot reconstruction cost and the original historical margin-layout excess remain open.
Validation: 25 focused browser cases passed, covering held arrival/Back orderings, first-frame idle arrivals after a layout clamp, passage-click and datum takeovers, approval and unanchored-thread queue positions, drawing with a user to-do, and hidden-source Copy.
pnpm run checkand changed-file pre-commit checks passed. Regression controls reproduced the broken arrival, stale motion, idle delay, queue position, and layout work before their repairs. Generated kernel rebuilt. Opus reviewed the complete change and follow-up repairs; its final verdict is ready to land with no actionable defects.Thanks to @leaf-agent for reporting #3118.