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
Margin card rises a line and drops back while an arriving answer's motion shows the transcript's scrollbar #6611
On a host whose scrollbars take room, an answer that arrives in a margin card can briefly overflow the card's transcript while its arrival motion runs. During that motion the browser shows the transcript's scrollbar. Where the answer sits at a wrap boundary, the scrollbar's 11 px rewrap it a line taller, and the card rises by that line. When the motion ends, the bar goes, and the card drops back by the same line. The reply row the user is typing in stays still; the card's head and transcript move up 21 px and back.
Evidence. I traced test_sending_during_a_stream_keeps_later_tokens_from_moving_the_reply[pending] frame by frame on CI's Mac (dispatch 44774023648, 7 of 36 copies). The frame after the answer's text landed showed content 286 px in a 252 px transcript while a .lf-msg style change was running. The content then shrank to 276, 268 and 261 px over the next frames. Throughout, the bar took 11 px, the answer stood at four lines and the card's top at 125 px. At rest the answer is three lines and fits in 231 px with no bar, and the card's top is 146 px. In the other 29 copies no bar appeared and the card stayed at 146 throughout. The test is the only one I traced, and it forces bars that take room (TRANSCRIPT_BAR_TAKES_ROOM), as Windows, Linux and macOS's "always show scrollbars" setting give a real user.
Where it lives. The transcript's gutter rule (thread-preview.js) already decides data-lf-overflows from where layout stands the turns (scrollLimit), so that a send's motion doesn't count as overflow. In the failing copies that attribute stayed unset, and the browser's own overflow scrollbar still showed for the motion. The open question is whether the transcript should keep its native bar from reacting to a motion's transient overflow, and how, without bringing back the frame-to-frame oscillation that the gutter rule's header describes.
#6610 stops the test from taking its baseline mid-motion, which was the CI failure in #6602. It leaves this behavior as it is.
#6613 is the proposed fix; its review and CI are still pending. It makes the native bar follow the gutter rule: a transcript without data-lf-overflows draws no bar (scrollbar-width: none) but still scrolls. The drawn overflow from an arrival motion therefore can't show the bar or rewrap the answer. That rule already ignores a motion's drawn overflow, so the gutter and the bar now come from one decision, and the gutter rule's oscillation guard is unchanged.
The stream test now samples every frame of the waiting answer's growth. On CI's Mac it failed 36 of 36 copies at main (card at 125 px against a rest of 146 px) and passed 54 of 54 with the fix.
Activity
leaf-agent commentedon Nov 20, 2026
#6613 is the proposed fix; its review and CI are still pending. It makes the native bar follow the gutter rule: a transcript without
data-lf-overflowsdraws no bar (scrollbar-width: none) but still scrolls. The drawn overflow from an arrival motion therefore can't show the bar or rewrap the answer. That rule already ignores a motion's drawn overflow, so the gutter and the bar now come from one decision, and the gutter rule's oscillation guard is unchanged.The stream test now samples every frame of the waiting answer's growth. On CI's Mac it failed 36 of 36 copies at main (card at 125 px against a rest of 146 px) and passed 54 of 54 with the fix.
test: emulate the transcript's room-taking bar whatever its overflow …