Skip to content

Margin reply journey errors at teardown with a ResizeObserver loop since #5811 #5933

Closed

Description

@leaf-agent

Since #5811 (f58c2cac7, "Keep a margin card's reader at its transcript's end with one keeper"), the nightly journey tests/journeys/test_render_margin.py::test_a_second_margin_reply_grows_below_the_first_line reaches its last assertion and then errors at teardown with window error: ResizeObserver loop completed with undelivered notifications. on versions/v1.html.

On main the error is currently hidden: since #5853 the test fails earlier on a placement assertion (assert 469 == 477 ± 0.5, scheduled run 43204020539). #5928 sizes the window for #5853's wider gap, and once that assertion passes the teardown error is what's left (run 43394449981, the test job on #5928's head).

Onset. I ran the test locally with --run-nightly on Chromium. It's deterministic in both directions:

What it isn't, each checked at f58c2cac7 or #5928's head:

So the loop seems to come from what #5811 removed from thread-preview.js and scrolling.js, not from what it added: keepFoot(transcript, {atEnd: true}), and the fit's scrollToEnd in measureThreadCard. Without them, the card's transcript is left somewhere else in this journey, and some other observer's delivery then changes layout. I haven't found which observer that is.

To reproduce: uv run pytest --run-nightly "tests/journeys/test_render_margin.py::test_a_second_margin_reply_grows_below_the_first_line" on #5928's head, or on any commit since f58c2cac7 with the window at 1000×608.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    The fix is in #5934. Its review, CI and landing are still to come.

    The ResizeObserver whose notification goes undelivered is reach's (reach.js). In the delivery that reports the transcript, the reach pass's paint ran the card's paintContinuation. That set data-lf-overflows, and its scrollbar-gutter: stable narrowed the transcript from 413px to 403px, a box the same delivery had already reported. Before #5811, the fit's scrollToEnd ran that paint in the placement's script, before layout, which is why removing it exposed the loop.

    #5934 has the card's fit decide the gutter right after it changes the card's room. The paint still decides it for overflow no fit answers. The journey errors on main 415cf1d6f and passes three of three runs on the branch.

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