Skip to content

A conversation's turn never folds: each step is a row from its first frame, and nothing is redrawn when it ends - #3024

Draft
ataibarkai wants to merge 16 commits into
mainfrom
claude/turn-flat-timeline
Draft

ataibarkai wants to merge 16 commits into
mainfrom
claude/turn-flat-timeline

Conversation

@ataibarkai

@ataibarkai ataibarkai commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

An alternative to #2973 (approach C).

Before (main) and after (this PR), the same real run ("what's on my calendar tomorrow?") replayed at its recorded pace through the real conversation screen:

Before and after: four moments of one run, main above, approach C below

Videos (GitHub won't take them here; they're in the shared notes folder, turn-replay/c-flat/):

  • live-run.mp4: the real run, on this branch
  • two-app.mp4: a longer run, with two apps, four steps and the Bot talking between them
  • main-live-run.mp4: the real run on main, for comparison

Every visibly different frame of the real run, in order:

Contact sheet of the real run on this branch

The two-app run, frame by frame

Contact sheet of the two-app run on this branch

What changes

On main, a conversation's turn is drawn one way while the Bot works and rebuilt when it finishes. The steps fold into one "Worked through 2 steps" line where the first step was, and a step the Bot took after speaking jumps above its words. Every frame looks fine; the turn reads as two drawings of one answer.

Here, a conversation's turn never folds. What you watched while it ran is what stays:

  • Every step is one row from its first frame, in the order it happened, with the Bot's words between the rows. A second step on an app is added below the first, and no row ever changes shape.
  • One row for every step: the chevron's space is kept on every row, then a 16 px mark (the app's logo, or a wrench for "Looked for a tool"), then the action. When a step finishes and can be opened, its chevron appears in that space and the words don't move. The tool search is one more entry in the list, with no gray circle.
  • A run on one app names the app once, on its first row: "Google Calendar List events".
  • "Thinking" is the same line as on main (same word, size, color and shimmer, and no icon). It is set in so its word sits where the next step's words will be: when a step takes its place, the word stays and only the step's icon appears. After a step's answer comes in, "Thinking" is the next entry in that step's list.
  • What the Bot said on the way turns muted once a later step shows it wasn't the answer. It changes color only and stays where it was said. The answer stays in full color.
  • "In progress" is said to screen readers only; the shimmer shows it to everybody else.
  • App names are looked up as soon as the Bot is working, so a first app step no longer flashes as "Googlecalendar" with a "G" for a logo.

What stays as it was:

  • Task threads still fold into "Worked for…".
  • Commands, files, pages, subtasks and web searches keep their own cards and lines.
  • A refused or failed call keeps its own line, in its own words, and a refusal keeps the card that fixes it.

This branch is built on #2973's branch (5bad4f4), so its diff against main includes #2973's commits.

Checks

  • A new test, flat-turn.test.tsx, checks that a finished turn keeps the same rows, the same DOM nodes and the same order when its run ends, with no "Worked…" line. It also checks that in-between words are muted, and that "Thinking" is main's line with no icon, sitting in the run's list.
  • Tests that assumed a conversation folds were rewritten for flat rows: app-step-rows, work-folded (one test), running-step-shimmer, tool-result-parts and plan-turns.
  • All 110 test files that draw the transcript or its steps pass (854 tests). tsc and biome pass on the changed files. The full suite hasn't been run end to end locally; CI runs it.

Rough edges, as filmed

  • App logo pop-in. The first time an app's logo loads, its 16 px space is blank for a moment and the logo then appears. The words don't move.
  • In-between words go gray late. They turn gray about 100 ms after they arrive, when the next step appears.
  • Answer after "Thinking". When the Bot answers with words instead of another step, the "Thinking" line goes away and the answer starts at the column's edge, left of where "Thinking" stood.
  • Long turns get long. Nothing collapses: that is the trade for never rebuilding.
  • Mixed runs fall back. A run that mixes an app step with a command, or one where a step fails, falls back to one folded line.

🤖 Generated with Claude Code

ataibarkai and others added 16 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>
…t frame, and stay put

Filmed through a real run, a conversation's turn was drawn one way while the Bot worked and rebuilt
when it finished: its steps folded into one "Worked through 2 steps" line where the first step was,
and a step taken after the Bot spoke jumped above its words. Now what the turn shows while it runs
is what it keeps.

- Only a task's thread folds (`foldTurnWork` loses its "conversation" scope).
- A run of app steps, or OpenBot's own tools, is listed open from its first step, one row each, the
  chevron's room kept on every row; a run on one app names the app on its first row.
- "Thinking" is a row shaped like a step's, where the next step goes, inside the run when its steps
  are all answered.
- What the Bot said before a step it went on to take is muted; its answer is not.
- A running step says "In progress" to a screen reader only; the shimmer says it to everybody.
- Commands, files, pages, subtasks, and refused or failed calls keep the card or line they had.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nned

Its row is in the same list as the app step after it, drawn with the same line, and its wrench is a
bare 16px icon in that line, not set in a tile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…orked" follows an app's name in lower case

Opened, "Worked through 4 steps" listed "Looked for a tool" as a muted line of its own, its wrench
in a gray circle and a gap under it, above rows of app steps drawn bare. A lone call the server ran
is now a step row in the same list (ToolActivity), with its own mark, the chevron's room kept, and
the same spacing; a tool search opens to the tools it found, as its line of its own does. Calls the
app draws itself (a command and its terminal) keep their own cards. Every row draws its own mark,
the app's logo included where the line names the app, and a single mark is drawn bare everywhere.

Where the line names its one app, what was done carries on from the name in lower case:
"Google Calendar  worked through 2 steps".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r case

A line on one app names it first, and "worked" carries on from the name in lower case:
"Google Calendar  worked through 1 step". The test's locator read only "Worked through", so it
waited for a line that now reads otherwise.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ude/consistent-tool-rows-25bc36

# Conflicts:
#	app/src/components/channels/chat-transcript.tsx
…l be; apps looked up early

Atai: "I really hate that icon we put next to Thinking, and I really dislike the new Thinking font…
I like the shimmer." So "Thinking" is the line it is on main and in a task (the same words, size,
tone, and the shimmer swept across the whole line), with no mark beside it. Set in by the chevron's
room and a mark's, its word stands where a step's words start: when a step takes its place, the word
stays and only the step's mark appears (filmed both ways; flush left, every swap jumped ~30px).

The apps added here are looked up as soon as the Bot is on it, not once an app's step is there: a
turn's first app step was drawn for a beat as "Googlecalendar" with a letter for its logo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts kept both sides: #2973's simpler step row and main's mended sends (workAlone), with
approach C's flat runs, app-name lead and Thinking row. Tests about the folded conversation line keep
approach C's versions, since a conversation's turn no longer folds here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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