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
Card reply's sent message wraps a word earlier than its reply editor under a mouse #5332
tests/browser/test_render_send_placement.py::test_a_reply_written_in_a_card_keeps_its_line_breaks_once_sent[mouse] fails on main: in push run 41782631970 at bb35e35f2775, and earlier in push run 41346283661. It also fails locally at 22c53d42588d. The [touch] case passes.
The reply that was sent wraps one word earlier than the reply editor did. The editor's third line is whether a failed run keeps its workspace for inspection, and who removes it. The message ends that line at removes and moves it to the next line. So under a mouse, the card's message column is narrower than the reply field's text column, by about one short word (around 10px). The test asserts the reverse: the reply box ends its words where the card's messages end theirs.
This was first recorded on #5075, but it isn't that issue's cause. #5075 was about drafts reading as Markdown (#4872), and a message keeps its typed breaks. The mouse-only difference points to the layout that gives a reply's words Send's column under a mouse (#4714), or to a later change to the card's reply padding. That is unconfirmed: nobody has measured the two columns' widths yet, and nobody has bisected.
uv run pytest "tests/browser/test_render_send_placement.py::test_a_reply_written_in_a_card_keeps_its_line_breaks_once_sent" -q -n0
The cause is a scrollbar gutter that the send animation wrongly switches on. I've opened #5380 to fix it.
A send's ride draws the card's turns 80px below where layout stands them, and Chromium counts that in the transcript's scrollHeight. For a frame, the gutter decision in thread-preview.js therefore sees a card that fits as overflowing, and sets data-lf-overflows. That turns on #4841's scrollbar-gutter: stable, and the gutter stays until the card's width or turn count changes. Under a mouse the thin classic scrollbar's gutter is 10px, which is the word the sent reply lost. Touch has no gutter, so [touch] passed. The 10px is not the reply padding from #4714.
#5380 has the gutter decision read scrollLimit, which already gives the scroll height from layout while content rides. The [mouse] case fails on main and passes on the branch (3 of 3 runs), and #4841's two gutter tests still pass. Its review and CI are pending, and the bot will land it once both pass.
Activity
fix: expect a draft's Markdown reading in the round-trip and submit t…
leaf-agent commentedon Nov 4, 2026
The cause is a scrollbar gutter that the send animation wrongly switches on. I've opened #5380 to fix it.
A send's ride draws the card's turns 80px below where layout stands them, and Chromium counts that in the transcript's
scrollHeight. For a frame, the gutter decision inthread-preview.jstherefore sees a card that fits as overflowing, and setsdata-lf-overflows. That turns on #4841'sscrollbar-gutter: stable, and the gutter stays until the card's width or turn count changes. Under a mouse the thin classic scrollbar's gutter is 10px, which is the word the sent reply lost. Touch has no gutter, so[touch]passed. The 10px is not the reply padding from #4714.#5380 has the gutter decision read
scrollLimit, which already gives the scroll height from layout while content rides. The[mouse]case fails on main and passes on the branch (3 of 3 runs), and #4841's two gutter tests still pass. Its review and CI are pending, and the bot will land it once both pass.