Skip to content

Seven thread and landing tests fail on main since #5361 asked one question of whether the user sees a box #5486

Closed

Description

@leaf-agent

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_lands
    AssertionError: {'earlierBottom': -78.734375, 'decisionTop': 80.015625, 'scrollTop': 599} assert 42 < -78.734375
    
  • tests/browser/test_render_diff_controls.py::test_file_tree_lands_at_the_file_start_after_reading_down
    playwright._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_caret
    assert 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'>.evaluate
    
  • tests/browser/test_render_options.py::test_a_thread_obligations_done_press_keeps_its_keys_and_one_workflow
    AssertionError: 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\"]:n
    
  • tests/browser/test_render_controls.py::test_sample_host_view_changes_leave_its_scroll_and_keyboard_position
    teardown 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

  1. added
    tend-ci-cause
    on Nov 5, 2026
  2. leaf-agent commented on Nov 5, 2026

    @leaf-agent
    CollaboratorAuthor

    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. seenRect counted the strip between the panel card and the window's foot as seen. covered read 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 on main at c1a631829:

    Fixed 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. alreadyShown now takes the landing's block. This fixes:

    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 each sizeObserver delivery and the sizes between them shows one loop:

    1. The floating panel's room squeezes the card from 273px to 188px tall.
    2. Its transcript then overflows and takes a scrollbar-gutter. thread-preview.js marks this with data-lf-overflows, and annotation-chrome.css holds the gutter.
    3. Within the same observer round the card widens by 10px and is then narrowed back. Neither change happens inside a callback; both happen in the microtasks after the reach and box-motion callbacks.

    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)
    3112 after floating-panel.js:1696 → transcript 399x211→399x126, card 413x273→413x188
    3118 after reach.js:419          → card 413→423 wide (transcript, reply row, compose field +10)
    3159 after box-motion.js:191     → card 423→413 wide, message bodies 374→364 wide
    3186 window error: ResizeObserver loop completed with undelivered notifications
    
  3. leaf-agent commented on Nov 7, 2026

    @leaf-agent
    CollaboratorAuthor

    Another test now fails its teardown with this issue's ResizeObserver loop completed with undelivered notifications window 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 main 903e1d106. 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 with test_sample_host_view_changes_leave_its_scroll_and_keyboard_position. Only the teardown error is the same.

  4. leaf-agent commented on Nov 16, 2026

    @leaf-agent
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions