Repository navigation
feat(chat): live working line at the end of a run, done steps as one grey line - #2476
Merged
Merged
Conversation
… line
While Chat works, a grey live line now sits at the very end of the answer
(under the steps and under the streaming text): a pulsing dot, the words
with a soft shimmer ("Thinking…", "Reading Citations…", "Writing the
answer…") and, from 2 s, the seconds spent on those words, counted afresh
when they change. Motion is motion-safe only; the counter is aria-hidden
and a separate polite live region says only the words, then how the run
ended. The line goes once the run is done, failed, stopped or waiting on
the person; a split step's parts show under it.
The ✓ pills and the RunSteps header/list in RunAnswer are merged into one
grey, collapsible steps line above the answer ("✓ Read 3 sources",
"✓ Read Citations · checked facts", "✓ 4 steps", "Waiting for your OK",
"Stopped after 41s · 4 steps"). It opens a grey list of the steps; a done
step's detail is a click away, failed and skipped steps say why, and the
list ends with "Worked for …" once done. Data used shows once the run
stops working. RunSteps itself is unchanged for its other users.
The Chat page and the side panel (and the editor's chat panel) render runs
through the same RunAnswer, so both get it. Help updated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
The steps line is listed through run-answer.tsx already; leaving the line alone keeps it from clashing with the open Chat branches that add to it. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
gkhngyk
previously approved these changes
Nov 17, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good. Minor: stepsSummary (run-view.ts) gives 'Opened 0 pages · checked facts' when every done step is a fact check.
Contributor
|
Approved, but it now conflicts with main after today's merges. Please merge main in and I'll merge it. |
Conflict in help/chat/chat.md: kept this branch's blank line after the front matter and main's opening paragraph (Prompts as home). approved-articles.json taken from main and regenerated with the help tests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
When every finished step is a check, the line read "Opened 0 pages · checked facts". A count of 0 is now left out, so that case reads "Checked facts"; sources without pages and pages without sources say only the count that isn't 0, as before. Tests for checks alone (done, waiting, with a failed step) and the mixed cases. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
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.
Summary
While Chat reads data, pauses before the answer and then writes, nothing moved on screen, so people thought it had frozen. Now a grey live line sits at the very end of the answer while Chat works. It has a pulsing dot, a soft shimmer across the words ("Thinking…", "Reading Citations…", "Writing the answer…") and, from 2 s, a counter for how long Chat has been on those words ("Thinking… · 6s"). The finished steps become one grey line above the answer ("✓ Read 3 sources ›") that opens the list of steps. Both lines are grey, so they stay apart from the white answer text.
It works the same in both places runs show: the Chat page and the side panel on other pages, including the editor's chat panel. All of them render runs through the same
RunAnswer(ChatThreadView→Answer→RunAnswer).Changes
Live line (
run/run-live-line.tsx): reuses the app'sagent-sweepkeyframes for the shimmer and the menu'smenu-dot-pulsefor the dot, both behindmotion-safe:. With reduced motion the line is plain grey text. The counter starts again each time the words change. It isaria-hidden, and a separate polite live region announces only the words, then how the run ended (never every second). The line shows while the run is queued or running, or while the stream reconnects ("Reconnecting…"). It goes when the run is done, failed or stopped, or is waiting on the person. A split step's parts show under it.Steps line (
run/run-steps-line.tsx): replaces both the ✓ pills and theRunStepsheader and list insideRunAnswer, so each step shows only once. The wording comes from the step kinds:It is a
buttonwitharia-expanded. The list it opens is grey. A done step's detail is a click away, failed and skipped steps say why, and the list ends with "Worked for 23s" once the run is done. Row counts never show; memory items and parts are still counted.Order in
RunAnswer: steps line → "Thought for N s" → answer text → error box → cards → Data used → stamp → live line (while working) → footer. While Chat works, the steps line already says what it read, so "Data used" now shows once the run stops working.RunStepsitself is unchanged for its other users (preview cards, result card).New strings in
en.jsonunderchatRun.liveandchatRun.stepsLine.Help: updated "Watch the work", "Big requests in parts" and "When something goes wrong" in
help/chat/chat.md. Added a short "Data used and action links" section to keep each section under 150 words, and regeneratedapproved-articles.json.No server, migration, dependency or lockfile change.
chat-thread-view.tsx,page-pane.tsx,page-open.tsand the editor folder are untouched (onlychat-thread-view.test.tsxchanged: two assertions now look at the live line instead of the old steps header).How to test
Checks
npx tsc --noEmit -p .: cleansrc/components/chat,src/components/agentic,src/lib/chat,src/lib/help,src/i18n,src/lib/use-server-exports.test.tsand the Chat preview page: 270 files, 3947 passed, 1 skippedaria-hiddenmotion-safe:RunStepsvariant="panel") shows the same steps line and live linegit merge-treeagainst the open Chat branches (fix(chat): read over the page's dates and filters in the side panel #2459, fix(chat): rank and count as the pages do #2462, fix(chat): read the page's view: tab, sort, search and the rows on screen #2463, fix(chat): read what the MCP Server already reads, and keep the two in step #2464, fix(chat): read Today, your agents and their runs, History over a range, and the Signals summary #2465, feat(chat): give Chat the page context on every page, the pages of one item included #2470): no conflictsGenerated by Claude Code