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 }}
test_sending_during_a_stream_keeps_later_tokens_from_moving_the_reply[pending]: the card's reply moves 21 px as the waiting answer streams in on macOS #6602
tests/browser/margin/test_card_reply.py::test_sending_during_a_stream_keeps_later_tokens_from_moving_the_reply[pending] fails on macOS only, at test_card_reply.py:2372: assert 146.140625 == 125.140625 ± 0.5. The reply the user is writing in the card stands 21 px lower after the agent's waiting answer streams in than it stood before.
It reproduces on current main (d714c2e60): 3 of 18 copies failed with that exact reading in dispatch 44762687613 on CI's Mac (--workers 1 --load 4). It first failed in scheduled run 44722728605 and passes on Linux.
The assertion guards a product promise (incoming words don't move the reply the user is typing), and the reading is identical across copies, so this looks like a real displacement that only a starved runner's frame timing exposes, rather than a read taken mid-motion. Not yet established: which stream write moves the reply, and the introducing change. The Nov 19 macOS run (8512ab218) passed it, but at a 1-in-6 rate that pass is weak evidence. The pytest-results-test-macos-* artifacts of both runs hold the failing pages' pictures.
Fixed by #6610, now merged. The 21 px gap came from the test's baseline, not from Send. The test read the card before Send while the waiting answer's arrival motion was still running. Partway through that motion the answer can overflow the transcript, and the scrollbar the test makes take room then rewraps it a line taller, lifting the card to 125 px. When the motion ends the card settles back at 146 px. Frame traces on CI's Mac put that drop before the click. The test now waits for the card at rest before its baseline. With the change, 54 of 54 copies passed on CI's Mac (dispatch 44776968020); without it, 7 of 36 failed (dispatch 44774023648).
The scrollbar showing mid-motion is also visible to users on hosts whose bars take room: the card's head moves up a line and back while the reply row stays still. #6611 tracks that.
Activity
diag: record the transcript's gutter through the stream for #6602 (no…
leaf-agent commentedon Nov 20, 2026
Fixed by #6610, now merged. The 21 px gap came from the test's baseline, not from Send. The test read the card before Send while the waiting answer's arrival motion was still running. Partway through that motion the answer can overflow the transcript, and the scrollbar the test makes take room then rewraps it a line taller, lifting the card to 125 px. When the motion ends the card settles back at 146 px. Frame traces on CI's Mac put that drop before the click. The test now waits for the card at rest before its baseline. With the change, 54 of 54 copies passed on CI's Mac (dispatch 44776968020); without it, 7 of 36 failed (dispatch 44774023648).
The scrollbar showing mid-motion is also visible to users on hosts whose bars take room: the card's head moves up a line and back while the reply row stays still. #6611 tracks that.