Skip to content

A conversation turn is one line from the moment you send (approach A) - #3025

Draft
ataibarkai wants to merge 14 commits into
mainfrom
claude/sad-chatterjee-55be1a
Draft

ataibarkai wants to merge 14 commits into
mainfrom
claude/sad-chatterjee-55be1a

Conversation

@ataibarkai

@ataibarkai ataibarkai commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

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.

Before and after, at each moment of the live run

The two-app run with this approach: every distinct frame, in order (the contact sheet for side-by-side-two.mp4).

Contact sheet of the two-app run with approach A

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 steps

The 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

  • One line per turn, from send. 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.
  • "Thinking" is a state of the line, as main draws it: the word alone, in main's Thinking look, 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.
  • While the Bot talks after a step, the line says what it has done so far, still shimmering. If the words turn out to be the answer, the end of the run only stops the shimmer. If a step follows, only the words change.
  • One row style, one gap. "Looked for a tool" is one more row of the list: a bare 16px wrench in the same text as the other rows. Every row and every line said on the way is 8px from the next. No icon sits in a gray circle. When the turn used several apps, their logos share one icon's square, so the words don't move when the turn ends.
  • After the app's name, what was done is lower case: "Google Calendar worked through 2 steps". With no app named it's "Worked through 4 steps".
  • App names and logos are looked up as soon as a turn starts, so the line never shows a raw app key or an empty icon square.

Where it isn't clean yet

  1. When the Bot talks before its first step, "Thinking" gives way to its words. When the step starts, the line comes back and the words go into it: two swaps in the same place.
  2. Words between steps stream under the line and vanish into it when the next step starts, with no animation.
  3. A step that fails, or one waiting on an approval, moves out of the line to its own place so it can be seen.
  4. In coding turns, reads and searches go into the line above, while Claude Code's edits and commands stay as cards below.

Tests

  • New 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's Thinking paragraph, 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.
  • 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. Two of them found real bugs, now fixed: finished rows re-rendered on every word of a streaming reply (12 renders against 2), and cards drawn on their own were folding out of sight.
  • The full app suite passes except 3 tests that time out under load and pass when run alone, here and on A Bot's steps on an app read one way, running or done #2973's head. Biome and tsc are clean.

🤖 Generated with Claude Code

ataibarkai and others added 14 commits December 4, 2026 15:41
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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant