Skip to content

Measure a thread-list heading's room before the panel's first landing - #1112

Merged
max-sixty merged 3 commits into
mainfrom
fix-ci-corpus-flakes
Sep 24, 2026
Merged

max-sixty merged 3 commits into
mainfrom
fix-ci-corpus-flakes

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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's scroll-padding held 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.

landingInsets now 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:

  • The thread-walk, badge-faces and page-mark tests together: main 4/30 runs failed, this branch 0/30.
  • The open-panel Ask test: main 6/24 failed, this branch 0/24.

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:runtime passes.

🤖 Generated with Claude Code

max-sixty and others added 3 commits September 24, 2026 07:40
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]>
@max-sixty
max-sixty merged commit ca5ee14 into main Sep 24, 2026
5 checks passed
@max-sixty
max-sixty deleted the fix-ci-corpus-flakes branch September 24, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants