Repository navigation
Description
Since #5361 ("Ask one question of whether the user sees a box, and land only what it says isn't shown"), seven tests fail on main. A sent message is left below the fold, a pointed comment's card lands about 1660px from its rows, the obligation walk loses its place, and the file tree's landing times out. A sample host view change also raises ResizeObserver loop completed with undelivered notifications at teardown.
Failing on main (b5f5c5d43, reproduced locally with uv run pytest --run-main):
tests/browser/threads/test_composing.py::test_a_seat_send_at_the_window_foot_shows_the_thread_it_started(1 of 2 cases fail locally)AssertionError: the sent message was left below the fold assert False + where False = clear_of_the_panel(<Page url='http://127.0.0.1:39569/versions/v1.html'>, <Locator frame=<Frame name= url='http://127.0.0.1:39569/versions/v1.html'> selector='#proposal .lf-page-thread .lf-msg >> nth=-1'>)tests/browser/test_render_aim.py::test_a_pointed_comment_keeps_the_rows_still_owed(1 of 2 cases fail locally)AssertionError: ({'x': 1088, 'y': 8, 'width': 344, 'height': 138}, -1651.859375) assert 1659.859375 <= 60 + where 1659.859375 = abs((8 - -1651.859375))tests/browser/projection/test_current_location.py::test_the_obligation_walk_keeps_its_place_when_a_version_landsAssertionError: {'earlierBottom': -78.734375, 'decisionTop': 80.015625, 'scrollTop': 599} assert 42 < -78.734375tests/browser/test_render_diff_controls.py::test_file_tree_lands_at_the_file_start_after_reading_downplaywright._impl._errors.TimeoutError: Page.wait_for_function: Timeout 120000ms exceeded.tests/browser/startup/test_thread_surfaces.py::test_required_page_failure_retains_composer_seat_focus_and_caretassert None == 'b' + where None = evaluate("document.querySelector('.lf-fab-bar').parentElement.dataset.seat") + where evaluate = <Page url='http://127.0.0.1:44913/versions/v1.html'>.evaluatetests/browser/test_render_options.py::test_a_thread_obligations_done_press_keeps_its_keys_and_one_workflowAssertionError: Locator expected to have text '4' Actual value: None Error: element(s) not found Call log: - Expect "to_have_text" locator(".lf-fp-view[data-lf-route=\"thread\"]:not([data-lf-leaving])[data-lf-thread=\"7b3e0a41\"]").locator("lf-options[choose]").first.locator(".lf-done").locator(".lf-key-badge[data-lf-binding-badge]") with timeout 120000ms - waiting for locator(".lf-fp-view[data-lf-route=\"thread\"]:ntests/browser/test_render_controls.py::test_sample_host_view_changes_leave_its_scroll_and_keyboard_positionteardown failed on teardown with "AssertionError: http://127.0.0.1:45805/versions/v1.html: window error: ResizeObserver loop completed with undelivered notifications. http://127.0.0.1:45805/versions/v1.html: window error: ResizeObserver loop completed with undelivered notifications. assert not ['http://127.0.0.1:45805/versions/v1.html: window error: ResizeObserver loop completed with undelivered notifications.', 'htt
Introducing change: #5361 (61afa30). Bisect over the b1c7255..febb3e4 range ran test_a_seat_send_at_the_window_foot_shows_the_thread_it_started at each step; the six bisected with the group pass on 61afa3016^ and fail on 61afa3016 (two fail only some parametrized cases). test_sample_host_view_changes_leave_its_scroll_and_keyboard_position was bisected on its own over b1c7255d2..febb3e462 and also lands on 61afa3016.
CI evidence: first failing push run 41894588739, and every push run since through 41954384375. Each run's pytest-results-* artifact has the tracebacks and screenshots.
No cause has been diagnosed past the bisect. Read #5361's description for what it meant to change, then decide per .claude/skills/running-tend/SKILL.md, Reading a red suite, whether each test expects behaviour #5361 replaced (update the test) or caught a regression (fix the code).
Cause of a failure tracked in #3985.
Activity
fix: start the margin layout's size watch when the first row registers (
fix: read the floating panel's cover to the window foot, and let its …
leaf-agent commentedon Nov 5, 2026
Six of the seven failures are repaired or about to land. One remains open here, with a diagnosis but no fix yet.
Fixed by #5551 (merged). Two readings of #5361's single panel cover were wrong.
seenRectcounted the strip between the panel card and the window's foot as seen.coveredread an empty box as covered, and key badge placement kept every chip off the panel's whole cover, including chips for controls inside the panel's own view. These three now pass onmainatc1a631829:test_a_seat_send_at_the_window_foot_shows_the_thread_it_startedtest_required_page_failure_retains_composer_seat_focus_and_caret, whose later step also expected the "1 new" hold that Draw news at once in the thread the user is in, and hold only threads already drawn on screen #5392 removed on purposetest_a_thread_obligations_done_press_keeps_its_keys_and_one_workflowFixed by #5560 (green at
4c12b6d; its review recorded that head for landing). Travel lands at a destination's start or centre. Since #5361 it decided whether to land by asking whether a nearest landing would move nothing, which is always true for a box taller than the window that already fills it.alreadyShownnow takes the landing's block. This fixes:test_a_pointed_comment_keeps_the_rows_still_owedtest_file_tree_lands_at_the_file_start_after_reading_downtest_the_obligation_walk_keeps_its_place_when_a_version_lands. This one only needed a 600px window. At 400px the decision was taller than its room and under the panel, which since Let a key go of focus the user can't see, and read where they are by one rule #5468 means a key lets go of it.Still open:
test_sample_host_view_changes_leave_its_scroll_and_keyboard_position. It still fails after #5544 and #5551. The ResizeObserver error comes from inside the sample's frame, while the margin preview card shows the thread. Logging eachsizeObserverdelivery and the sizes between them shows one loop:scrollbar-gutter.thread-preview.jsmarks this withdata-lf-overflows, andannotation-chrome.cssholds the gutter.The next step is to find which of the card's fit and the gutter decision undoes the other within one round. That is a margin-card layout question, separate from the cover and landing readings.
Delivery sequence before the error (child frame, ms)
fix: land a tall destination's opening when travel goes to it (#5560)
leaf-agent commentedon Nov 7, 2026
Another test now fails its teardown with this issue's
ResizeObserver loop completed with undelivered notificationswindow error:tests/browser/test_render_send_placement.py::test_a_wheel_return_attaches_the_comment_box_in_the_first_visible_frame[combined-selection]. It shows in scheduled run 42205827418 and locally on main903e1d106. In push runs it comes and goes: of the 16 completed push runs from 41954384375 through 42203695127, it has a failure entry in 10, including each of the last five. I read the message only in the scheduled run. I haven't established that it shares #5361's mechanism withtest_sample_host_view_changes_leave_its_scroll_and_keyboard_position. Only the teardown error is the same.leaf-agent commentedon Nov 16, 2026
Resolved on
main. All seven tests listed in this issue passed on both Linux and macOS in the latest scheduled run, 43706054091 (f20c08b73). The wheel-return teardown error added in the comment above has also stopped. I'm closing this issue.test_sample_host_view_changes_leave_its_scroll_and_keyboard_positionwas fixed by fix: decide a margin card's scrollbar gutter in its fit, outside the transcript's size delivery #5934 (a9e4d3e99). That PR moved the margin card's scrollbar-gutter decision into the card's fit, so it no longer runs inside reach's ResizeObserver delivery. That fixes the loop the earlier comment traced. The test last failed in scheduled run 43204020539 (e5559a2b6) and has passed in every scheduled run since fix: decide a margin card's scrollbar gutter in its fit, outside the transcript's size delivery #5934 merged (Nov 13, 14 and 15). It also passes locally ona09135969.test_a_wheel_return_attaches_the_comment_box_in_the_first_visible_frame[combined-selection]last failed at6cfc59a83, in push run 43577187510 and in that day's scheduled run. Before that it failed in about half of push runs. It then passed in all 17 completed push runs from35a922f56through29cc7036b, in the Nov 15 scheduled run on Linux and macOS, and in the five completed push runs since. It also passes locally ona09135969. I couldn't find which change stopped it. The only commit between the last failure and the first pass is fix: style message widgets in a thread seated in a widget's shadow tree #5945, which doesn't touch this path. The failure didn't reproduce locally at6cfc59a83either (0 of 8 runs), so I couldn't bisect it here. If the error comes back, a new CI report will bring it to triage. A size observer that redraws a scrolling box's content raises no ResizeObserver loop error #5751 and The browser tests' swap watch sees every row a swap resizes and causes no ResizeObserver loop errors #5754 track the wider ResizeObserver-loop sources that the browser tests can hit.