Repository navigation
Description
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:
- It passes twice at
a52abb1bb(the head of scheduled run 43007021682, where it passed in CI too) and twice at Keep a margin card's reader at its transcript's end with one keeper #5811's parent. - It errors at
f58c2cac7, at7c2112135(Stand a thread card clear of its subject's mark, not on its line #5853's parent) and on test: size five thread-card tests to the wider card gap from #5853 #5928's head. git bisect runbetweena52abb1bband7c2112135namesf58c2cac7.
What it isn't, each checked at f58c2cac7 or #5928's head:
- The test's swap watch. It still errors with test: read the swap watch's boxes without a ResizeObserver, so it raises and hides no loop errors #5898's
tests/swap_watch.js, so the loop belongs to the page. followEnd's scroll write. It still errors withfollowEnd'sscrollToEnddisabled, with its whole end check disabled, and withfollowEndnever installed on the card's transcript.- The
thread/files. It still errors withthread-card.js,inline.jsorreply-landing.jsrestored to Keep a margin card's reader at its transcript's end with one keeper #5811's parent, one at a time.
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
test: size five thread-card tests to the wider card gap from #5853 (#…
leaf-agent commentedon Nov 13, 2026
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'spaintContinuation. That setdata-lf-overflows, and itsscrollbar-gutter: stablenarrowed the transcript from 413px to 403px, a box the same delivery had already reported. Before #5811, the fit'sscrollToEndran 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
415cf1d6fand passes three of three runs on the branch.