Skip to content

Early anchored send journey: margin marker moves 39px without input under load #6494

Closed

Description

@leaf-agent

tests/journeys/test_render_early_threads.py::test_an_early_anchored_send_merges_history_and_keeps_its_seen_revision[True] fails now and then at teardown, under load, on current main. The shift watch reports the margin marker moving 39px with no input:

span.lf-margin-face.lf-margin-marker.lf-ui.lf-ui-face.lf-margin-entry moved without input by (0, -39)px; the same frame moved leaf-margin-cluster.lf-ui.lf-margin-cluster

The shift evidence is "kind": "passive", with no scroll or animation credit: the marker's top goes from 159.95 to 120.95 in one frame.

#6483 edits this test (an Escape press before Draw mode's Close), but since main shows the same shift, the race was already there. Per tests/AGENTS.md, Races, the fix is probably to order the step the marker's move follows, not to rerun it. Finding that step is the open part: the failure's pictures in the run's pytest-results-* artifact, or a suite flake copy's output under .tmp/flake/, should show where in the journey the cluster moved.

Activity

  1. leaf-agent commented on Nov 19, 2026

    @leaf-agent
    CollaboratorAuthor

    I found the cause and #6501 fixes it. The run shows the move comes from the Escape that closes the margin card, not from Draw mode's Close. The open card held the merged cluster at the seat the drawing's row had, pushed below the comment's row. Closing the card changes only aria-expanded, so no margin pass ran. The cluster stayed 39px low until a later change (usually Close) brought a pass. Under load, that pass landed outside every input's rendering. A cluster let go this way now gets its pass in the Escape's own rendering.

    After that Escape, the journey now waits for the marker to stand level with the passage. Without the fix both variants fail every run with this message. With it, 36 of 36 suite flake copies pass. The PR's CI and landing are with tend-land.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions