Skip to content

test_a_drawing_is_sent_and_replayed_as_an_ordinary_comment: ResizeObserver loop error since #5630 #5709

Closed

Description

@leaf-agent

tests/journeys/test_render_drawing.py::test_a_drawing_is_sent_and_replayed_as_an_ordinary_comment fails on teardown with window error: ResizeObserver loop completed with undelivered notifications. on its versions/v1.html page. It first failed in scheduled run 42365682113 (391c24622), and passed in 42205827418 (62cb54fc8).

Onset, run locally with --run-nightly: the journey fails twice at #5630 (f438a9e2a, "Offer each moment's next press at the panel field's end"). It passes at its parent 34195d260 and twice at 903e1d106. It also fails at d2abaa215 and on main fcad5fa09. #5630 changed browser/runtime/notifications.js, browser/runtime/thread/folding.js and browser/styles/floating-panel.css, and edited tests/browser/test_render_drawing.py but not this journey. The drawing page holds no chart.

The ResizeObserver errors on chart and corpus pages since #5617 have a separate issue. This journey passes at 84d918681 and through 34195d260, so the drawing case has a different onset. The two may still share a mechanism, such as a size write inside a resize delivery.

uv run pytest --run-nightly tests/journeys/test_render_drawing.py::test_a_drawing_is_sent_and_replayed_as_an_ordinary_comment

Cause of a failure tracked in #4225.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    #5736 is the fix, and it is open. The cause is a ResizeObserver delivery that writes something another observer hears, not the chart path from #5617. The floating panel's size callback (followBox) wrote the root's scroll-padding-bottom inside the delivery. The margin's page MutationObserver heard that write and ran a margin pass in the same delivery, and the pass re-placed the open thread card, widening #lf-margin-preview after Chrome had already delivered past its depth. The fix states the band to Leaf's own landings at once, as before, and writes the root's padding and the room announcement in the next rendering pass.

    #5630 only exposed it. At its parent, the panel observer's first round included a detached <svg> at depth 1, which let Chrome deliver the card's resize in a second round. #5630 keeps that svg connected, so the card's resize now goes undelivered.

    The journey fails on main 2f47830e4 and passes 3 of 3 runs on the branch. The band and landing tests, the runtime tests and the type check pass too. PR CI and review are still pending.

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