You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Early anchored send journey: margin marker moves 39px without input under load #6494
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.
On main (c5ccb11): uv run leaf-dev suite flake <node id> failed 1 of 18 copies with this message. The latest scheduled ci run (44289276069) passed both variants.
#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.
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.
Activity
leaf-agent commentedon Nov 19, 2026
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 flakecopies pass. The PR's CI and landing are with tend-land.