Repository navigation
Measure a thread-list heading's room before the panel's first landing - #1112
Merged
Merged
Conversation
The run headings pinned in the Threads list reserve their height through `--lf-head-room`, which a ResizeObserver writes. Headings first declared while the panel was shut measured nothing, so for the frame after the panel's first opening the list's scroll-padding read no room. A landing in that frame put the thread under the pinned heading: on macOS, test_pressing_a_page_mark_stands_in_the_thread_it_opens[long] clicked a page mark inside that frame and landed 25px short of the band. It was hidden until #1045 made the composer 2px taller, because the list had been reaching its scroll limit, the one case the check excuses. `landingInsets` now measures any cover that is shown but has not yet been measured shown, so every landing reads the room before the observer's first report. That replaces the one-off measurement a host's first declaration made. Two browser tests read chrome the repaint after a key press paints with a one-shot evaluate, and lost the race under load or on a warm browser: the Ask binding shortcuts in test_ask_actions_replace_unusable_package_binding_badge_faces and the walk position in test_the_thread_walk_stays_inline_until_threads_is_opened. Both now wait for that frame. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
test_an_ask_under_the_open_panel_is_shown_beside_it_or_by_clearing_it counted the Ask's binding badges and then read each box, while the repaint after `a` was still replacing them; a replaced badge answered no box. It failed 6 of 24 runs at six concurrent copies on main. The test now waits for one reading in which every shown badge stands left of the panel. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 24, 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.
The run headings pinned in the Threads list reserve their height through
--lf-head-room, which a ResizeObserver writes. A heading first declared while the panel was shut had measured nothing, so for the frame after the panel's first opening the list'sscroll-paddingheld no room for it. A landing in that frame put the thread under the pinned heading. On macOS,test_pressing_a_page_mark_stands_in_the_thread_it_opens[long]clicked a page mark inside that frame and landed 25px short of the band. The defect predates #1045, which exposed it: #1045 made the composer 2px taller, and the list stopped reaching its scroll limit, the one case the check excuses.landingInsetsnow measures any cover that is shown but has not yet been measured while shown, so every landing reads the room before the observer's first report. This replaces the one-off measurement a host's first declaration made (geometry.js,declareCoverRoom).Three browser tests read chrome with a one-shot evaluate that raced the repaint following a key press. Each now waits for that frame:
test_ask_actions_replace_unusable_package_binding_badge_faces: the Ask's binding shortcuts. It failed whenever the browser was already warm.test_the_thread_walk_stays_inline_until_threads_is_opened: the walk position taking the notice's place.test_an_ask_under_the_open_panel_is_shown_beside_it_or_by_clearing_it[1280-False]: badges replaced between the count and the box read.Evidence, macOS, paired runs of this branch and main (85e1030) at six concurrent copies:
Serially on main,
[long]fails every run and badge-faces fails whenever another test runs first. Every one of these cases now passes. Run on this branch, the navigation, widgets, conversations, margin, anchors and chrome-contract files had one failure, the open-panel Ask flake above, which this PR fixes.npm run test:runtimepasses.🤖 Generated with Claude Code