Repository navigation
feat(workbench): show that a run is at work, or waiting to retry, in ordinary Chat - #6881
Merged
Merged
Conversation
…ordinary Chat Bot Chat shows "Working…" until the running Turn has its own header. Ordinary Chat showed nothing, so a model slow to answer, or a run backing off after a rate limit, looked idle except for the stop button. Since #6847 removed the wait line above the composer, a retry wait had no sign at all. Ordinary Chat now shows the same row. It stays outside the cached Chat sections, which do not follow the run. Both Chats keep the row while the run waits on something nobody has to act on (a provider retry, a code cell, a child run) and name a retry wait "Waiting to retry". A run that waits for an approval or for access keeps its own card instead.
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.
Why
Since #6847 removed the wait line above the composer, an ordinary conversation whose run waits to retry the provider shows only the stop button. With a rate-limited provider this can be minutes of retries with nothing on screen. Bot Chat already has a "Working…" row at the end of Chat until the turn has a header of its own. As agreed in #6078, this brings the same row to ordinary Chat.
Change
chatDisplaySections, which only refreshes when a turn is expanded or collapsed. The row follows the run state, so it must not be cached with the entries.runWaits.tsholds the wait classification, with a node test.This is beside #6879, which records failed and retried requests in the trajectory view. This change only covers what Chat shows while the run is waiting.
AI use
Written with Claude Code (Claude Opus 5.5). It wrote the change and the test. I checked it on a local build with a scripted provider: the row reads "Working…" while the model is called, "Working… · Waiting to retry" during backoff, and goes away once the turn shows "Worked for …".