Repository navigation
A conversation turn is one line from the moment you send (approach A) - #3025
Draft
ataibarkai wants to merge 14 commits into
Draft
ataibarkai wants to merge 14 commits into
ataibarkai wants to merge 14 commits into
Conversation
A Google Calendar turn showed three steps three ways: finished steps read "List events Googlecalendar" (the app's key), while the step still running sat in a box of its own, app first: "Google Calendar · List events" with a spinner. The box (LiveConnectorStep) said nothing the row does not, so it goes: every step is one row, the action then the app, and a running row differs only by its shimmer and "In progress". Every step now names its app as it was added here (useAppName, from the apps the transcript already reads for logos), not from its key. A running line also tells a screen reader "In progress", as the box did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Three Google Calendar steps in a row drew three Google Calendar logos down one list. The first step of a run of steps with the same icon (the same app, or the same kind of step) draws it; the steps under it keep its room, empty, so their words stay lined up. Also in a subtask's list of steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A running ToolLine now also says "In progress" to a screen reader, so the line's text reads "Asked you…In progress" in the real-browser test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nder it
A run of steps on one app read "List events Google Calendar" on every row, the app's logo and
name repeated down the list while the action was what set the rows apart. Now the app is the
lead: its logo and name once, and each step under it says only what was done ("List events",
"Read the next part of an answer List events, part 2 of 3").
- A folded line that already names the app ("Used Google Calendar") opens to its steps with no
second lead.
- In a "Worked through" fold, a run the Bot's words had split goes on under the app named just
above it, so two "List events" sit under one "Google Calendar".
- An app's call on a line of its own has the app over it, the same way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…not its name
Replaces the nested "app leads its run" rows with what Atai settled on:
- While a step runs, a run of one app's steps is one line, "Using Google Calendar…", shimmering
and folded, as it already was once done ("Used Google Calendar"). Opened, it lists one row per
step. The open live list (`showLiveSteps`) and the `conversation` prop it needed are gone.
- A row says what was done, not the app's name after it. Under a line that already shows its one
app (`LineShowsApp`), rows draw no logo. Where the steps are on several apps, each row draws its
app's logo (`AppMark`), which shows the app's name on hover and is what a screen reader hears.
- In a "Worked through" line, a lone app call is drawn as a step row like the others, and app rows
the Bot's words had split sit 8px apart as one list's steps do.
- Rows line up: a step that doesn't open keeps the chevron's room where others open, a step row is
spaced as a line of its own is, and an opened list of steps is drawn at one size everywhere.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… on hover "Worked through 2 steps" beside Google Calendar's logo now reads "Worked through 2 steps Google Calendar", the name in gray as a step's detail is. A line whose logos are several apps' names none. The logos on folded lines (a turn's "Worked through", a run's "Used 2 apps") now name their app on hover and to a screen reader, as a step's logo already did (`AppMark`). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…p draw no logo "Worked through 2 steps Google Calendar" now reads "Google Calendar Worked through 2 steps": the app beside its logo, then what was done (`ToolLine`'s new `lead`). The line names its app and its rows leave out that app's logo by one rule (`onlyApp`): the one app among the steps that are on an app. A turn that looked for a tool, then listed events, named Google Calendar on its line and still drew the Google Calendar logo beside "List events", since the rows asked whether every step was on the app. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the rows that open draw none Under "Google Calendar Worked through 2 steps", "List events" is its chevron and its words, no logo. "Looked for a tool", which opens to nothing, kept the chevron's room and drew its wrench after it, so its words started 21px further in. Where the rows in a list that open draw no mark, a row that doesn't open now draws its mark where their chevron is, as wide, and its words start where theirs do (`markInChevron`). Where they draw marks, it keeps the chevron's room as before. step-rows-layout measures it in Chromium and WebKit: the wrench's centre on the chevron's, and both labels at one x. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The line is made when the person sends, under their message, and only its words and mark change: "Thinking…", "Looking for a tool…", "Using Google Calendar…", then "Google Calendar Worked through 2 steps". The Bot's words on the way fold into it; the answer is drawn under it. The separate "Thinking" element, the gray disc on a step's mark and the rebuild at the end are gone. Opened, every row keeps one grid, and several apps share one mark's room. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and says its progress A call drawn on its own (a picture, a card, a plan, Claude Code's edits and commands) is drawn for the person and stays in view under the line; only runs of steps and what the Bot said before its last step fold in. Inside the line, the app's own cards keep their look, and only calls it draws no card for become rows. Until the app knows which tools it draws, the Bot's words stay out, so they never fold for a render and arrive again. The rows' grid is the same object for the same columns, so a finished row no longer draws again on each word of a streaming reply. The line's words are the status a screen reader hears, as the "Thinking" line was. Tests that pinned the old shape (a line per step while running, a separate "Thinking", the plan folded at the end) now pin the one line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…renderers in Running and answered, the turn is one line with what the Bot said on the way inside it, seen once it is opened; the gap above a running step and a lone line's icon, which it measured, belong to a shape no longer drawn. Both browser fixtures mount the app's own renderers, as the app does, so the transcript knows which tools it draws. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e follows the app's name in lower case "Looked for a tool" stood 16px off the steps under it while rows of one run sat 8px apart, so it read as something other than one more row of the list. Inside a turn's line every row and every line said on the way is now 8px from the next: no run keeps room of its own, and nothing is drawn up. After the app's name, what was done goes on the sentence: "Google Calendar worked through 2 steps", in a task's line as in a conversation's. With no app named it still starts it: "Worked through 4 steps". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s look, shimmering across the line No sparkle beside it, and no last step's logo between steps: the mark's room is kept empty, so the words stay where a step's will be and nothing moves when one starts. The word is "Thinking", as under a message, and its shimmer sweeps the line the way main's paragraph does, not the one word. The browser test compares its look with main's paragraph at every moment the line thinks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-55be1a # Conflicts: # app/src/components/channels/chat-transcript.tsx
This branch has not been deployed
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.
An alternative to #2973 (approach A)
Before and after, at each moment of the real run: #2973 on the left, this approach on the right.
The two-app run with this approach: every distinct frame, in order (the contact sheet for
side-by-side-two.mp4).A conversation turn is one line under the person's message, made the moment they send it, and it never moves. Only its words and its icon change:
Thinking→🔧 Looking for a tool…→Thinking→📅 Using Google Calendar…→Thinking→📅 Google Calendar worked through 2 stepsThe answer streams in under it. Opened, the line lists every step and what the Bot said on the way, in order, on one grid.
Videos are in the notes folder for these sessions,
turn-replay/a-one-line/(videos can't be uploaded here, so a contact sheet is below):side-by-side-live.mp4: a real run ("what's on my calendar tomorrow?") replayed at its recorded pace through the real conversation screen. A Bot's steps on an app read one way, running or done #2973 is on the left, this approach on the right.side-by-side-two.mp4: a longer run with two apps, four steps, and the Bot talking between steps.talky-run.mp4: a Bot that talks before its first step and between steps for over a second each time. This is where the approach is weakest (see below).What changes
foldTurnWork's "conversation" scope builds the turn's line from the first frame. It's keyed by the person's message and drawn under it, never rebuilt when the turn ends. Runs of steps fold into it, and so does what the Bot said before its last step. What the Bot says after its last step (the answer, or what may yet be it) stays outside. Anything drawn for the person on its own (a card, a chart, a picture, a plan, Claude Code's edits and commands, an approval, a step that went wrong) stays where it is.Thinkinglook, with no icon and the same shimmer. The icon's room is kept empty, so nothing moves when a step starts. The separate "Thinking" paragraph only shows where no line says it.Where it isn't clean yet
Tests
app/tests/turn-line-layout.test.tsx(a real browser, Chromium and WebKit, light and dark, 400px and 1440px). It steps one turn through sent, looking for a tool, thinking, listing events, thinking, answering and done. At every moment there is one line, the first thing under the message, and the message, the line, its icon and its words never move. While the line says "Thinking", its words compute the same as main'sThinkingparagraph, with no icon and the shimmer across the line. On A Bot's steps on an app read one way, running or done #2973's head this test fails at the first moment.🤖 Generated with Claude Code