Repository navigation
Studio: stop a reopened chat from saving every replayed event, and let Stop reach it - #12464
Merged
mahiatlinux merged 2 commits intoOct 1, 2026
Merged
Conversation
1 task
Member
Author
|
Reached Codex review convergence at oobabooga#324. |
mahiatlinux
approved these changes
Oct 1, 2026
mahiatlinux
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Ready to merge, all manually checked.
Contributor
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.
Refs #12435
Studio keeps generating a reply on the server after its tab is closed or reloaded. When the chat is opened again, the new tab catches up by replaying the run's stored events. This replay had two bugs, both reported in #12435:
server-managed generation messages cannot be edited, which is the loop in the report's log.Fix
The changes are in
scheduleGenerationRecovery(runtime-provider.tsx), with a newstopRecoveredRunhandle used by the composer's Stop.Tests
Live A/B against main on Linux with Chromium, using
unsloth/Qwen3-0.6B-GGUFQ4_K_M on CPU. Each run sent a long prompt, closed the tab 1.5 s later, and then reopened the chat. Replies were 2,400 to 3,700 events long.Pressing Stop 1 s after reopening also did nothing on main and worked with this PR. In all 13 replayed replies, the saved text matched the run's stored events.
Not covered
Duplicate key toolCallIdcrash ([Bug] "tapClientLookup: Index 1 out of bounds (length: 0)" & "MessagePartText can only be used inside text or reasoning message parts" & "Duplicate key toolCallId" #10288) is not addressed.