Repository navigation
fix(platform): snap an arena send to the top of each column - #3473
Merged
Merged
Conversation
An arena send never scrolled: the columns rendered the transcript without the send-snap intent or the generating flag, so the scroll machine had nothing to act on and the response slack stayed at zero. The reply streamed below the fold, and nothing showed at all until the turn opened server-side, where the streaming row appeared under the previous reply before the prompt popped in above it. The surface now records the fanned-out round until the pair's turn resolves. Each column turns it into its own optimistic send (bubble and thinking shell, adopted in place by the real rows) and arms its send-snap with it, so the prompt glides to the top with the reply streaming beneath it, as in a normal chat. The verdict bar counts the round as in flight, so the one-sided hint does not flash over the thinking shell. Adds a real-Chromium test for the arena column and manual box CHAT-F43.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
In Arena Mode a send never scrolled. The new prompt stayed wherever the column happened to be, the reply streamed below the fold, and you had to drag each column's scrollbar to read it.
Root cause
ArenaColumnrenderedMessageThreadwithoutscrollIntentRefand withoutisGenerating:use-chat-scrollonly snaps on a send intent, so the columns never scrolled.This regressed in the 0.5 rewrite (#2857). The old split view had its own pending bubble and scrolled when a new user message arrived.
Fix
chat-surface.tsx: the arena branch ofhandleSendrecords the fanned-out round ({ text, sentAt, threadId }) untilstartTurnresolves, with either outcome. The round is passed down only while it belongs to the pair on screen. The verdict bar counts it as in flight, so the one-sided hint does not flash over the thinking shell before the generation row exists.arena-column.tsx: each column turns the round into its own optimistic send:createPendingSend, with the baseline taken from the rows on screen when it was sent. It goes throughuseThreadView, so it gets the same overlay and adoption as a normal send. The column arms its own send-snap intent in the same render. It passesisGenerating(generation live, or overlay not yet consumed) and the intent toMessageThread.arena-split-view.tsx: passes the round to both columns.No new strings. The docs don't describe scroll behaviour.
Tests
arena-column.browser.test.tsx(real Chromium), fails onmainand passes on this branch:tsc,oxlint --type-aware,oxfmt, knip,lint:manual,check-guideall pass.CHAT-F43and anautomation.mdrow.Live check (dev stack, partial)
In a fresh arena pair, both columns showed the prompt and thinking shell right away, and the real rows adopted the
pending-*keys. Column B's model failed on the dev stack, so the verdict stayed unavailable with the one-sided hint, which is the intended behaviour. The multi-round scroll check was left for manual testing.