Skip to content

A conversation's turn is one line from send to done: open while the Bot works, folded in place once it's done - #3023

Draft
ataibarkai wants to merge 16 commits into
mainfrom
claude/turn-line-live-list-folds
Draft

ataibarkai wants to merge 16 commits into
mainfrom
claude/turn-line-live-list-folds

Conversation

@ataibarkai

@ataibarkai ataibarkai commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

An alternative to #2973 (approach B)

Your recorded run, replayed through the real conversation screen at its own pace: every frame that changes visibly. Before is this branch's base (5bad4f4, #2973 as it stands); after is this PR.

Before After
before-live-run after-live-run

A longer run: two apps, four steps, the Bot talking between them, a streamed answer.

Before After
before-two-app after-two-app

Opened again, one list: "Looked for a tool" is one more row, with a bare 16px wrench, on the same grid as the app rows.

after-opened-list

"Thinking" as main draws it (main left, this PR right): the same word, face, size and shimmer, with no mark beside it.

thinking-main-vs-b

Videos: live-run.mp4 and two-app.mp4 in the shared notes folder, turn-replay/b-live-then-fold/, with notes.md. Videos can't be uploaded here, so the contact sheets above stand in for them.

What it does

Filmed on a real run, a conversation turn was drawn one way while the Bot worked and rebuilt another way when it finished:

  • a "Thinking" line that came and went between steps;
  • each step a line of its own, styled by where it came from;
  • a chevron that appeared and pushed a row right;
  • at the end, a "Worked through" line that took the first step's place and moved above what the Bot had said.

Now:

  • One line per turn, made when you send, never moved. It says what's happening: "Thinking", "Working…", "Using Google Calendar…", "Writing…".
  • Open while the Bot works. Each step appears under it in order, with the Bot's words on the way between them, muted.
    • Every row is on one grid, with the chevron's slot kept and a bare 16px mark from the first frame.
    • An app's logo shows its initial until the picture loads.
  • The Bot's newest words stay just below, since they may be the answer. When a next step starts they join the line exactly where they were.
  • When the run ends, the line folds up in place in one motion and says what was done: "Google Calendar worked through 2 steps", lower case after the app's name. The answer is what's left under it.
    • A turn with no steps folds its line away.
    • A turn with a failed or blocked step stays open, its issues counted on the line.
    • A card for the person (a file, a chart, an approval) stays in view outside the line.
  • Folding happens at the end of the run, not when answer text starts. Text that's still streaming may be followed by another step. Your two-app run does that twice, so folding on text would fold and unfold.

notes.md lists the transitions that still aren't clean.

Built on #2973

This branch is cut from #2973's branch at 5bad4f4, so its diff against main includes #2973's commits. The changes for this approach are the commits after 5bad4f4, plus a merge of main.

The merge keeps main's new pieces:

  • Drawn answers: the way to keep a drawn answer as an artifact still sits under its row.
  • Mended sends: a send that sent nothing but was made good by the file a moment later is a row of the turn's line. It's counted as an issue, as main's quiet line counts it, but doesn't hold the line open, since what came of it is the file in view under the line.

The films were taken on 4b16cb526, just before the merge, which doesn't change anything they show.

Checks

  • app/tests/turn-line-layout.test.tsx (new, real browser, Chromium and WebKit, light and dark, phone and laptop widths) walks your run stage by stage. It checks that:
    • the line's position never changes from send to done;
    • the Bot's words don't move when they join the line;
    • "Looked for a tool" matches "List events" in words, size, colour, mark and row height, live and reopened;
    • "Thinking" matches main's paragraph;
    • the fold leaves the answer under the line.
  • Unit and browser tests that pinned the old Thinking line, the "Worked for" line or the group lines now read the turn line.
  • Every test file this touches passes locally: 251 unit tests across 28 files, plus the transcript browser tests (step-rows, work-folded, approval-answered, first-message-thinking, reconnecting, run-ended, failed-send, long-turn-reopen, and others).
  • A local full-suite run, made under heavy load while the code was still changing, left two failures elsewhere. Both are filesystem-scan tests that timed out, and both pass when given more time.
  • Biome and tsc are clean.

🤖 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>
…ot works, folded in place once it is done

Filmed on a real run replayed at its own pace, a turn was drawn one way while the Bot worked (a
"Thinking" line that came and went, each step a line of its own styled by where it came from, a
chevron that pushed a row right) and rebuilt another way when it finished: a "Worked through" line
that took the first step's place and moved above what the Bot had said.

Now the turn's line is made when the person sends and never moves. It says what is happening
("Thinking…", "Using Google Calendar…", "Writing…"), and while the Bot works it is open: each step
and each thing the Bot says on the way is added under it in order, every step on one grid, its mark
there from the first frame. The Bot's newest words stay just below, since they may be the answer, and
join the line where they already were when a next step starts. When the run ends the line folds up
over its rows in one motion and says what was done ("Google Calendar  Worked through 2 steps"); the
answer is what is left under it. A turn with no steps folds its line away; one with a failed step
stays open.

Approach B of three, for comparison. Not pushed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… counts only Thinking lines of their own

Folded once its turn is done, the line kept every row it had drawn while open, out of sight: a long
turn's thousands of rows stayed on the page, and a page reading for a step found it there, hidden.
Folded, it now draws nothing beneath it, as every folded line doesn't, and draws them again, at rest,
if the person opens it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ords after a card are its answer

"Google Calendar  worked through 2 steps": after the app's name, what was done goes on in lower case,
as Atai asked; with no app named it stays "Worked through 4 steps".

A turn that went steps, a file the Bot sent, then "Here it is" had no line once it was over: only
words just before the card counted as its answer. Words after what stays in view count too, so its
line folds over the work and leaves the file and the words in view.

"Looked for a tool" is one more row of the turn's list, live and opened again: the turn-line layout
test now pins its words, size, ink, 16px bare mark and row height against "List events". The
browser tests that drew the old Thinking line, "Worked for" line and group lines read the turn line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…row of it, the file under it

A turn whose steps include misses keeps its line open once it is done, its issues counted on it, and
the file that arrived stays in view under it. The test read the old group line; it reads that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eside it and its shimmer across the line

Atai disliked the spark beside "Thinking" and its new look. The line now says "Thinking", the one
word, in main's face: small, muted, shimmering across the whole width of the line, as the
conversation's own "Thinking" line did. Shimmered across the word alone, the band never left it, and
it read as a different face. No mark beside it; the mark's room is kept empty, so the words don't
move when a step's mark comes. The turn-line layout test checks the look against main's paragraph.

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

Every turn of a conversation now has its line, so the test's work line matched two; the allowance
was given in the first turn, and the second, holding the denial, stays open with its issue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ction and mended sends

main drew a mended send (one that sent nothing, made good by the file a moment later) as a quiet line
of work, and added a way to keep a drawn answer as an artifact under its row. Both stay: the row
that offers the action is the one the turn line is drawn after, and a mended send is a row of the
turn's line, counted on it as an issue as its quiet line counts it, but not holding the line open,
since what came of it is the file, in view under the line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… of it, folded, the deck under it

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