Repository navigation
Carry on works while the server carries a cut-off turn on - #2810
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 2, 2026 20:36
davidmckayv
force-pushed
the
fix/carry-on-while-server-carries
branch
2 times, most recently
from
December 2, 2026 23:09
ccf7869 to
b40521b
Compare
A turn cut off here ("OpenBot's backend stopped answering") kept its
stopped notice and Carry on while another server carried the turn on, and
Carry on, refused because the Bot still had the turn, was dropped: no
message, no run, nothing on screen.
While the server carries the turn on, a cut-off notice is put away and the
conversation reads as working, with no Carry on. It comes back only if the
last carried run did not finish. Carry on is now sent the way a typed
message is: pressed while a turn is in flight, or refused as still working,
it waits in the queue, drawn as queued, and goes once when the turn ends.
Any other failure puts it back in the queue rather than dropping it.
A browser test of the real conversation in the app's frame: a turn cut off here and then carried on by the server reads as working, with no notice or Carry on, and ends on its answer; and Carry on pressed while the server still has the turn waits as a queued message and goes once. The fixture stands in for the socket, putting the conversation's work on its roster row and reading the approvals again when the test's server says so.
…e clock no-fixed-settle-waits failed on the new browser test's four fixed waits. Three now wait for what they were standing in for: the stopped notice put away, the run-ending read answered, the queued row drawn. The fourth proves the queued Carry on goes once, and is listed with why.
Carry on was hidden while any send from this screen was going, so a typed turn that was cut off said it stopped with no Carry on until its stream had closed. WebKit in CI read the notice in that gap (stopped-turn-dismiss-browser). It is now held back only while the send a press of it started is going, which still keeps two presses from making two turns; pressed while a stream is closing, it waits as queued. A test holds a cut-off turn's stream open and checks Carry on is there.
davidmckayv
force-pushed
the
fix/carry-on-while-server-carries
branch
from
December 2, 2026 23:51
30ee64d to
4b6cedd
Compare
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Dec 3, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Dec 3, 2026
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.
What this changes
Found on OpenBot Cloud (Travis, dogfooding): after "The Bot stopped before it finished because OpenBot's backend stopped answering", pressing Carry on did nothing. No message, no run, nothing on screen.
What happened: the server running the turn went away, and another server took the turn up (
carried-turn-claimed). The conversation's work said the server was carrying the turn on, so the conversation was busy. But the stopped notice and its Carry on stayed up over it. Carry on sends a message as the person, a message is refused while the Bot has the turn, and the button dropped that refusal (.catch(() => undefined)).It works the same for any Bot, a stock AG-UI Bot included. The change is all in the browser and reads only the conversation's work, which the server reports for every Bot's turn.
No visual design change. Only components and states the app already has: the Thinking row, Stop, and the queued message row. No new text.
Where it runs
In the browser only (
app/src/components/channels/channel-chat.tsx,conversation-view.tsx).Boundary and audit
API and database
api/, no app's requests, no database change and norelease-policy.json.Changelog
Conversations.
Proof
Red on
99df719ec(main after #2811, #2813, #2814, #2815 and #2816), green with this change rebased on it:app/tests/carried-turn.test.tsx, "a turn cut off here that the server carries on reads as working, with no notice or Carry on, and ends on its answer". On main it fails: the notice and its Carry on are still up while the server carries the turn.app/tests/carry-on-while-busy.test.tsx, "Carry on pressed while the server still has the turn waits as a queued message, and is sent once when the turn ends". On main it fails: nothing is queued, and the press is not held for the turn.app/tests/carry-on-while-busy.test.tsx, "a typed turn cut off part way says so with its Carry on at once, while its stream is still closing". Found in CI on an earlier version of this change, which hid Carry on while any send from the screen was going: WebKit read the notice before Carry on was drawn (stopped-turn-dismiss-browser). Fails on that version, passes now.app/tests/carry-on-carried-turn-browser.test.tsx(new, in the CI browser job, waiting on the page rather than the clock, with its one wait that proves a single send listed inno-fixed-settle-waits): both scenes in Chromium and WebKit, light and dark, 1280px and 390px. 16 of 16 pass with the change and 16 of 16 fail on main. The fixture stands in for the socket: it puts the conversation's work on its roster row and reads the approvals again when the test's server says so.ChannelChat(53 files, 462 tests) pass.tscand Biome are clean.Screenshots, main and fix, compared pixel by pixel. The step before the change ("cut off", "interrupted") is identical in every Chromium shot and every WebKit shot but one or two. The WebKit outliers move between runs (a copy button settling a frame late), so they are timing, not this change. The steps after differ only where the state changed: