Repository navigation
Coming back to a conversation whose run failed says so, with Carry on - #2931
Merged
Merged
Conversation
A person who left a conversation while its Bot worked, and came back after the run failed, saw the Bot's last line with no notice and no Carry on: the kept agent had heard the RUN_ERROR, but a failure was said again only from a join that finished inside its 1.5 s deadline. Now a join that didn't finish asks the server about the last run the kept agent heard, and says its failure again when no run is going and that run didn't finish. The kept story's failure code goes with it. Browser test in Chromium and WebKit: red without the fix, green with it.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 4, 2026 11:15
9 tasks done
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 and why
Found on OpenBot Cloud, 2026-12-04, on a phone. A person asked a Bot to check his calendar and draft two messages, then went to start another conversation while it worked. Two minutes in, the Bot's model connection dropped and the run ended with an error. When he came back, the conversation ended on the Bot's last line ("I'll check options for both days so the drafts are clear.") with no notice, no Carry on and nothing working. It looked as if the Bot had promised more work and stopped.
The error is not in the conversation's stored messages, only in the run's events. The agent the app keeps for the conversation had heard it. But the app only says a failure again after a join that finished, and the join that resumed the thread on his return took longer than its 1.5 second deadline. So the failure was dropped.
Now, when that join doesn't finish and hears no run of its own, the app takes the last run the kept agent heard. If the server says no run is going and that run didn't finish, the app says the failure again, with Carry on where the failure offers it. This runs after the history is in, so opening the conversation never waits for it. The same applies to every Bot, built-in or connected over AG-UI: the kept agent is the app's proxy to the runtime, not anything of the Bot's own.
It also fixes a small slip beside it: a failure said again from the kept agent's record kept its code (
BOT_KEY_REFUSEDdraws the way to the key). It used to take the code from the replay's record, which had none.How the leaders do it
--continueand/resume. Source: https://code.claude.com/docs/en/errors and https://code.claude.com/docs/en/sessionsMost of them keep the work and show the error on the turn with one way on, and it is still there when you come back. OpenBot already did this live and after a full reload. This makes coming back to the conversation in the same page do the same.
Tests
app/tests/stopped-turn-return-browser.test.tsx, new, in a real browser (added to CI's real-browser list):Red/green, locally:
The notice and Carry on are the existing ones and their design is unchanged. They are now also drawn in this case.
Not covered here: a full reload whose replay is slower than the deadline still can't say how the last run ended. Nothing the app has names that run, so it needs the server to tell it the conversation's last run. That is a follow-up.
Changelog
Web app and OpenBot Desktop.