Skip to content

feat(studio): port the prototype's chat transcript and delegation views - #2254

Merged
kantord merged 14 commits into
mainfrom
feat/studio-chat-transcript-2207c
Oct 14, 2026
Merged

kantord merged 14 commits into
mainfrom
feat/studio-chat-transcript-2207c

Conversation

@peppescg

@peppescg peppescg commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This is the Transcript and Delegation step of the chat alignment (#2207, part of #2210): step 3 of 4, after the approvals (#2251) and the composer (#2253), and before the session dialogs. It's stacked on #2253, so review that first.

The chat transcript now comes from the prototype (stack-08): its message rows with avatars and row actions, the per-turn Activity line of tool calls with inline Edit diffs, the tool panel, the dark code panel, the scheduled-delivery card, the selection toolbar with Add to chat, the dashed minimap, and the steer-trace line. Delegated work takes the prototype's chips, its activity-panel look, and the header's fleet chip.

The prototype's UI runs on Studio's chat logic. These are unchanged:

  • run-stream.ts, use-chat-messages.ts, and the transcript's row memoisation
  • delegation-fleet.ts (the subagent, parallel, and team shapes and their observed facts) and delegation-placement.ts
  • the Show Tools rule, including an ask's exception, and where each ask, plan review, and authorization renders
  • the side thread's logic and its late-verdict guard (fix(studio): unify verdict ledger and guard late side-thread verdicts #2143)
  • markdown-message.tsx's safety: link, image, and URL handling
  • edit-diff.tsx's caps and labels
  • the delivery note's contract data, rendered as plain text
  • the minimap's navigation: its targets, its scroll to a row's top, and aria-current
  • the steer trace's stream-derived outcome

What changed

Message rows (message-bubble.tsx, new; chat-transcript.tsx)

  • Each turn is the prototype's row: an avatar for both speakers (the profile avatars when set), the name in bold, then the body in the prototype's type.
  • The row's actions, Copy to clipboard (new) and the side-thread action (Reply in side thread or Open side thread), sit at the end of the author line. They show on hover or keyboard focus, and stay visible on touch screens.
  • The side thread's messages use the same rows, so a thread reads like the chat.

Tool calls (tool-call-list.tsx, new; tool-summary.ts and lib/tool-names.ts, ported)

  • With Show Tools on, a turn's calls sit under one Activity: N tools line, which names the tools and says how many failed. It starts open or closed per Expand details, and opens and closes on a click.
  • Open, it lists one row per call: a status dot, a plug glyph (a server glyph for an MCP tool, named "GitHub · Issue write"), the clamped arguments, and the one-line result. A failed result is red.
  • A finished Edit or Write shows its diff under its row. A pending or failed one doesn't: a pending call's diff is on its ask card.
  • An ask, plan review, or authorization for a call still renders in that call's row, and holds the line open.
  • A closed line keeps its rows in the page, hidden, so a call stays findable by name.

Tool panel (content-preview-panel.tsx)

  • Selecting a row opens the prototype's tool panel in the side panel: the status, the input (an Edit or Write as its diff, with Raw back to the formatted arguments; anything else as formatted JSON), and the whole output. A running call says "(still running)", and an MCP tool shows its exact name.
  • The panel keeps Studio's frame, its "Tool result" title, and the "Failed output" label.

Markdown (markdown-message.tsx, code-highlight.tsx)

  • Fenced code takes the prototype's dark panel in both themes. Studio keeps its Shiki highlighting there, in the dark theme's colours.
  • Lists get their bullets and numbers back, paragraphs get the prototype's spacing, and inline code wraps only where it must.

Delivery notes (delivery-note-card.tsx, ported)

  • A scheduled task's note becomes the prototype's card: the schedule, the fire, and an outcome badge (started, completed, failed, or the daemon's stop word), with the stop reason on hover.
  • The body stays plain text and is clamped past eight lines behind Show more.

Delegation (delegation-card.tsx, delegation-panel.tsx, fleet-status-chip.tsx, new)

  • Each card becomes the prototype's chip: a state glyph (a pulsing dot while running, an alert once failed, else a branch) and one line of Studio's observed facts. A failed child is tinted and shows its cause under the chip. The line truncates with its full text on hover; on a phone, which has no hover, it wraps.
  • A subagent and a team member each get a chip, as before. A parallel group stays one chip, with a pill per branch.
  • The activity panel takes the prototype's tab strip, roster rows with state glyphs, uppercase section labels, and monospace trace rows. Its structure, text, and focus rules are unchanged.
  • The header gains the prototype's fleet chip: one count per family (running and done, or working members for a live team), each opening the activity panel on that family. It reads the header's width: full labels in a wide header, the compact glyphs below that, and no chip in a narrow one, so the title keeps its room.

Minimap, steer trace, and selection (message-minimap.tsx, steer-trace.tsx, text-selection-toolbar.tsx, new)

  • The minimap's numbered boxes become the prototype's dashes. Pointing at or focusing one widens it and its neighbours and previews the message and its author beside the rail; the mark a reader jumped to stays tinted. The labels, targets, and keyboard use are unchanged.
  • The developer steer trace moves from the top of the transcript to above the queued strip, in the prototype's dashed monospace line. It keeps Studio's lines and its "Outcome unknown" state. Like the chips, a line wraps on a phone.
  • The selection toolbar takes the prototype's look and gains Add to chat, which adds the selection to the composer's draft after a blank line (and so to its stored draft) and focuses the box. ChatComposer takes it as appendText.

Scroll follow (fix)

  • The transcript followed new messages only, so a card that grew in place (a delegation card, an ask, a highlighted code block, an image) left a reader at the bottom behind it. It now also follows the content's size while the reader is at the bottom. A reader who scrolled up, or jumped through the minimap, stays put.

Docs

  • user-docs/operating/studio.md describes the Activity line and the tool panel, delegation cards and the header's counts, the minimap's preview, the row actions, and the selection toolbar.

Differences from the prototype

  • Card wording: Studio's own ("Subagent child-a: goal · Running · Tools: 3 · Current tool: Grep"), not the prototype's ("subagent: goal · 3 tools · Grep"). The delegation suites assert these words, and they carry facts the prototype drops (stop reasons, history gaps).
  • Parallel group: one chip with a pill per branch, because Studio places and focuses a group, not a branch. The prototype gives each branch its own chip.
  • Fleet chip: compact glyphs except in a wide header, and hidden in a narrow one, because Studio's header also carries Activity, Canvas, the run badge, and Stop. On a phone, Activity opens the same panel.
  • Activity panel: keeps Studio's roster-plus-details layout, title, and focus rules; the prototype swaps the roster for a focus view with Back, and puts a team's tasks and findings behind a toggle.
  • Row actions: on the author line, and always visible on touch, instead of a right-hand column revealed by a hover or a swipe. That keeps a phone's text width, and keeps the actions clear of the minimap.
  • Minimap on a phone: the transcript keeps its right gutter, so the rail never covers a row's actions. The prototype's rail covers Reply in thread at 390 px.
  • User messages: still rendered as Markdown, as before; the prototype shows them as plain text with a quote block.
  • Delivery card: the schedule name isn't a link, because the card also renders outside the router (in tests, and later in the transcript dialog).
  • Code panel: keeps Shiki colours; the prototype drops highlighting in chat.
  • No timestamps or reply counts on rows: Studio's messages carry neither.
  • Not ported here: the prototype's line-numbered CodeBlock (a file-preview component) and transcript-actions.tsx (Select conversation and Copy conversation in the chat menu) belong to the file preview and the chat menu, which are step 4. tool-diff.tsx was already Studio's edit-diff.tsx.
  • Steer trace: keeps Studio's stream-derived lines and its empty state; the prototype shows [steer] id decision from the steer request's reply (Studio alignment: chat UI from the prototype on Studio's chat logic #2207's open decision stays on the stream-derived outcome).

Visible change

  • Message rows with avatars and hover actions, in the main transcript and the side thread.
  • The Activity line, tool rows, inline Edit diffs, and the tool panel.
  • Dark code panels, bulleted lists, and paragraph spacing in Markdown.
  • The delivery card.
  • Delegation chips, the activity panel's look, and the header's fleet chip.
  • The dashed minimap with its preview.
  • The steer trace above the composer.
  • Add to chat in the selection toolbar.
  • A transcript that follows a card growing at the bottom.

No regression

Pinning tests

a0a192320 was committed first, alone. It passes on the base (7ef2c69af) and on this branch, unchanged:

  • chat-transcript.pinning.test.tsx (21 tests):
    • tool calls: every call's name, order, arguments, and result; a failed call is marked and keeps its output; a running call has no result; Show Tools hides them unless an ask needs one, whose card stays in the call's row; a finished call opens in the side panel from its row; the panel shows the full input and output, and "Failed output"
    • delegation cards: a subagent running, done, failed, and of unknown outcome; a parallel group running, done (with its winner), and failed, with its branches; a team member running, done, stopped, and failed; a lead's own card. Each card's text, focus key, and open action.
    • delivery notes: a started fire's schedule and fire; a completed fire's outcome and plain-text body, with no thread action; a stop reason
  • chat-workspace.selection.pinning.test.tsx (3 tests): Copy copies the selection, Add to canvas quotes it into the canvas, and an empty selection offers nothing.

Before the implementation, one pin's open-action query gained { hidden: true }, so it finds the action whether or not the call's line is open. It passed on the base before and after that change.

New tests

  • transcript-alignment.test.tsx (17 tests): the Activity line's summary, its closed and open states under Expand details, its hold while an ask is pending, the finished-only diff, the friendly MCP name and its open action; the tool panel's diff, Raw, running state, and exact MCP name; the row actions, wired and not; the avatars; the delivery badge's mapping and its clamp; the fleet chip's counts, its empty state, its open action, and the panel's requested family; the minimap's preview and dash widths; the steer trace's lines.
  • chat-workspace.transcript-alignment.test.tsx (2 tests): Add to chat adds the selection to the draft and focuses the box; the transcript follows a card that grows at the bottom, and doesn't move a reader who scrolled up. Without the fix, the second test fails ("Nothing observes the transcript's content"); this was checked by removing the observer.
  • tool-summary.test.ts and lib/tool-names.test.ts, ported with the helpers.

Modified tests

None. These pass with their assertions unchanged: chat-workspace.integration.test.tsx, chat-workspace.transcript.integration.test.tsx, delegation-workspace.test.tsx, delegation-card.test.tsx, delegation-panel.test.tsx, approval-interactions.test.tsx, approval-shortcuts.test.tsx, authorization-review.test.tsx, message-minimap.test.tsx, steer-trace.test.tsx, chat-transcript.test.tsx, edit-diff.test.ts, truncated-text-tooltips.test.tsx, content-preview-panel.test.tsx, code-highlight.test.ts, the side-thread and side-panel suites, and every e2e chat journey (approvals, header Stop, delivery follow, message minimap, session activity, side panels, auth recovery).

Gate counts

Both columns ran through the shared gate lock on the same machine. Base is 7ef2c69af (#2253's head; its counts are that PR's own head run), and this branch is 57ea6b74d.

Gate Base (7ef2c69af) This branch (57ea6b74d)
Biome 453 files 466 files
Typecheck and generated-artifact check clean clean
Server 24 files, 195 tests 24 files, 195 tests
Web 144 files, 1,120 tests 150 files, 1,190 tests
Browser (task studio:browser) 66 66

The 70 new web tests are the 24 pins, the 19 alignment tests, and the 27 ported helper tests (tool-summary.test.ts, lib/tool-names.test.ts). The browser run includes the chat approval, header Stop, delivery-follow, message-minimap, session-activity, side-panel, and auth-recovery journeys on desktop and mobile Chromium.

task docs passed: matlatl --strict reported 185 documents and 0 broken links. It also rewraps one line of user-docs/reference/server-cli.md, because the default workspace path depends on the checkout's path length; that change isn't part of this PR.

Screenshots

Captured with a throwaway Playwright journey (Chromium, not committed), with offline BFF routes and a loopback activity stream that stays open for the running chats. The transcripts are the prototype harness's own fixtures (the flaky-scheduler chat, its side thread, the nightly digest), plus a failed call, a 40-message chat, a live and a finished delegation fleet, and a steered run. The clock is fixed at 2026-09-25 12:30 UTC, the time zone is Europe/Rome, and the locale is en-US. Every surface was shot at desktop 1280×800 and mobile 390×844, in light and dark.

Before is the base (7ef2c69af, #2253's head) and after is this branch's head (57ea6b74d). Each tree was captured twice. The after runs matched pixel for pixel apart from 6 px in one shot (the tool panel, mobile light); the before runs differed in three shots, by 1 to 74 px of anti-aliasing (the live delegation cards on a phone, the activity panel in desktop dark, and the scrolled long chat in desktop dark). Every pair was pixel-compared, and red boxes mark the regions that differ. Desktop composites are downscaled to 1600px wide.

The Prototype column comes from the prototype harness (stack-08): the gallery where it has the surface, and new captures for the selection toolbar, the tool panel, the minimap preview, and the parallel group's panel. Its chats differ where noted, so it's a visual reference, not the same content.

Transcript

Transcript with tool calls, collapsed

Intended change: the prototype's rows (avatar, bold name, body) and, with Show Tools on, one collapsed Activity: N tools line per turn naming the tools. Before listed every call's full input and result inline. Matches the prototype, except that Studio keeps its centred column, and the row actions sit on the author line (see the phone shots).

Transcript with tool calls, collapsed, desktop light

Dark and mobile

Desktop, dark:

Transcript with tool calls, collapsed, desktop dark

Mobile, light:

Transcript with tool calls, collapsed, mobile light

Mobile, dark:

Transcript with tool calls, collapsed, mobile dark

Transcript scrolled to the top

Intended change: the same rows from the top of the chat. Matches the prototype.

Transcript scrolled to the top, desktop light

Dark and mobile

Desktop, dark:

Transcript scrolled to the top, desktop dark

Mobile, light:

Transcript scrolled to the top, mobile light

Mobile, dark:

Transcript scrolled to the top, mobile dark

Tool calls expanded, with an Edit diff

Intended change: under Expand details, the Activity line opens to one row per call (status dot, plug glyph, name, clamped arguments, one-line result), and a finished Edit shows its diff under its row. Matches the prototype. The diff is Studio's edit-diff.tsx, with its caps and labels.

Tool calls expanded, with an Edit diff, desktop light

Dark and mobile

Desktop, dark:

Tool calls expanded, with an Edit diff, desktop dark

Mobile, light:

Tool calls expanded, with an Edit diff, mobile light

Mobile, dark:

Tool calls expanded, with an Edit diff, mobile dark

Markdown and a code block

Intended change: the prototype's dark code panel in both themes (Studio keeps its Shiki highlighting, in the dark theme's colours), bulleted lists, and paragraph spacing. Before, lists had no bullets. Matches the prototype, except the syntax colours, which the prototype drops.

Markdown and a code block, desktop light

Dark and mobile

Desktop, dark:

Markdown and a code block, desktop dark

Mobile, light:

Markdown and a code block, mobile light

Mobile, dark:

Markdown and a code block, mobile dark

A failed tool call

Intended change: the failed call's dot is red, its result is tinted, and the Activity line says 1 failed. Matches the prototype's treatment; the prototype harness has no failed-call fixture, so its column is the expanded transcript.

A failed tool call, desktop light

Dark and mobile

Desktop, dark:

A failed tool call, desktop dark

Mobile, light:

A failed tool call, mobile light

Mobile, dark:

A failed tool call, mobile dark

Tool panel

Intended change: selecting a call's row opens the prototype's tool panel: the status, Input — diff with Raw for an Edit or Write (else the formatted arguments), and the whole output. The panel keeps Studio's title and frame. Matches the prototype.

Tool panel, desktop light

Dark and mobile

Desktop, dark:

Tool panel, desktop dark

Mobile, light:

Tool panel, mobile light

Mobile, dark:

Tool panel, mobile dark

Selection toolbar

Intended change: the prototype's toolbar, with Add to chat (new: adds the selection to the composer's draft), Copy, and Add to canvas. Matches the prototype.

Selection toolbar, desktop light

Dark and mobile

Desktop, dark:

Selection toolbar, desktop dark

Mobile, light:

Selection toolbar, mobile light

Mobile, dark:

Selection toolbar, mobile dark

Scheduled delivery notes

Intended change: the prototype's card: calendar icon, "Scheduled task", the schedule, the fire, and an outcome badge (started, completed, failed, or the stop word), with the plain-text body clamped behind Show more. Matches the prototype, except that the schedule name isn't a link: the card also renders outside the router (the transcript dialog and tests).

Scheduled delivery notes, desktop light

Dark and mobile

Desktop, dark:

Scheduled delivery notes, desktop dark

Mobile, light:

Scheduled delivery notes, mobile light

Mobile, dark:

Scheduled delivery notes, mobile dark

Developer steer trace

Intended change: the trace moves from the top of the transcript to above the composer, in the prototype's dashed, muted, monospace line. It keeps Studio's stream-derived lines (run, message, event, outcome, promoted). The prototype harness can't reach its steer trace, so its column is a running chat.

Developer steer trace, desktop light

Dark and mobile

Desktop, dark:

Developer steer trace, desktop dark

Mobile, light:

Developer steer trace, mobile light

Mobile, dark:

Developer steer trace, mobile dark

A long transcript, scrolled

Intended change: the same rows over a long chat, after a jump through the minimap. Matches the prototype.

A long transcript, scrolled, desktop light

Dark and mobile

Desktop, dark:

A long transcript, scrolled, desktop dark

Mobile, light:

A long transcript, scrolled, mobile light

Mobile, dark:

A long transcript, scrolled, mobile dark

Minimap

Intended change: the numbered boxes become the prototype's dashes, which widen around the pointer and preview the message beside the rail. The mark a reader jumped to stays tinted. On a phone the transcript keeps its right gutter, so the rail never covers a row's actions. Matches the prototype, except the gutter: the prototype's rail covers Reply in thread on a phone.

Minimap, desktop light

Dark and mobile

Desktop, dark:

Minimap, desktop dark

Mobile, light:

Minimap, mobile light

Mobile, dark:

Minimap, mobile dark

Side thread

Intended change: the thread uses the same rows and tool line as the transcript (before: chat bubbles, with a "1 tool call" box). The panel itself is step 4. Matches the prototype's rows.

Side thread, desktop light

Dark and mobile

Desktop, dark:

Side thread, desktop dark

Mobile, light:

Side thread, mobile light

Mobile, dark:

Side thread, mobile dark

Delegation

Delegation cards, live

Intended change: the cards become the prototype's chips: a state glyph (pulsing dot, alert, or branch) and one line of Studio's observed facts. A failed child is tinted and shows its cause; a parallel group is one chip with a pill per branch; each team member has its own chip. The header gains the prototype's fleet chip, one count per family, which opens the activity panel on that family. Matches the prototype, except the wording, which stays Studio's ("Subagent child-a · Running · Tools: 3"), the parallel group's single chip, and the fleet chip's compact form (Studio's header also carries Activity, Canvas, the run badge, and Stop).

Delegation cards, live, desktop light

Dark and mobile

Desktop, dark:

Delegation cards, live, desktop dark

Mobile, light:

Delegation cards, live, mobile light

Mobile, dark:

Delegation cards, live, mobile dark

Delegation cards, finished

Intended change: the same chips once every child has settled: a finished subagent, a parallel group with its winner and a failed branch, and a team whose lead is done and whose second member stopped on its budget. The prototype harness has no finished fleet, so its column is the live one.

Delegation cards, finished, desktop light

Dark and mobile

Desktop, dark:

Delegation cards, finished, desktop dark

Mobile, light:

Delegation cards, finished, mobile light

Mobile, dark:

Delegation cards, finished, mobile dark

Activity panel, subagent

Intended change: the prototype's tab strip and roster rows (state glyph, compact text), uppercase section labels, and monospace trace rows. The structure stays Studio's: the roster above the focused child's details, under its "Session activity" title. Matches the prototype's look; the prototype replaces the roster with a focus view and a Back button.

Activity panel, subagent, desktop light

Dark and mobile

Desktop, dark:

Activity panel, subagent, desktop dark

Mobile, light:

Activity panel, subagent, mobile light

Mobile, dark:

Activity panel, subagent, mobile dark

Activity panel, parallel group

Intended change: the same look on a parallel group: its join, branch count, and the branches as roster rows. Matches the prototype's look.

Activity panel, parallel group, desktop light

Dark and mobile

Desktop, dark:

Activity panel, parallel group, desktop dark

Mobile, light:

Activity panel, parallel group, mobile light

Mobile, dark:

Activity panel, parallel group, mobile dark

Activity panel, team member

Intended change: the same look on a team: the member's details, its trace, then the roster, tasks, and findings. Matches the prototype's look; the prototype puts tasks and findings behind a toggle.

Activity panel, team member, desktop light

Dark and mobile

Desktop, dark:

Activity panel, team member, desktop dark

Mobile, light:

Activity panel, team member, mobile light

Mobile, dark:

Activity panel, team member, mobile dark

The prototype reference code is on stack-08, in apps/web/src/features/chat/: chat-view.tsx, message-bubble.tsx, tool-call-list.tsx, tool-call-panel.tsx, tool-diff.tsx, code-block.tsx, transcript-actions.tsx, text-selection-toolbar.tsx, delivery-note-card.tsx, steer-trace-line.tsx, message-minimap.tsx, delegation-card.tsx, delegation-panel.tsx, and fleet-status-chip.tsx.

Review fixes

Fixes from the final regression and security review of the stack (stack #2227). Each one comes with a test that fails without the fix.

Finding Fix Commit Test (fails on 57ea6b74d, passes now)
Major: an unlabelled fence rendered near-white on near-white in light mode Code inside a <pre> panel always renders as a dark-tone block, labelled or not (indented blocks too). The hast node no longer leaks onto the DOM as node="[object Object]". b5b479713 markdown-message.test.tsx (3 cases)
Minimap dashes were 12px tap targets On a coarse pointer each dash is a 44px button with the same 3px mark; a mouse keeps the 12px pitch. 841318042 e2e/message-minimap.spec.ts measures every dash on both projects
The tool panel stayed "(still running)" The panel resolves its call (run and id) from the transcript on each render, like the authorization review; the opened snapshot stays only when the row is gone. ddd2081d5 chat-workspace.integration.test.tsx "updates an open tool panel when its call finishes"
Row actions were 24px on touch On a coarse pointer, Copy and the side-thread action are 44px. A negative margin keeps the author line 24px, so the layout doesn't move. 6e7a36d8b, 8227583f8 e2e/message-minimap.spec.ts "a message row's actions are touch-size on a coarse pointer"
The fleet tally counted unknown as done A child with an unknown outcome gets its own count: "· N unknown" in the label, "N?" in the compact form, shown only when there are any. 622ee5229 transcript-alignment.test.tsx "counts a child whose outcome is unknown apart from the done ones"

Gates at 6272f8785:

Gate Before (57ea6b74d) After
Web 150 files, 1,190 tests 151 files, 1,195 tests
Server 195 tests 195 tests
Browser 66 passed 68 passed

No assertion was removed. The minimap journey's long-chat fixture moved into a helper, so the new touch test can share it.

Screenshots

Before 57ea6b74d | After 6272f8785 | Prototype stack-08. The prototype column shows the matching surface, not the same data.

Unlabelled fence. After matches the prototype's dark code panel.

Unlabelled fence, desktop light

More screenshots

Unlabelled fence, mobile light
Unlabelled fence, desktop dark
Unlabelled fence, mobile dark

Minimap and row actions on a phone. Deliberate deviation: the dashes and row actions are 44px touch targets, so the rail spaces its dashes further apart than the prototype. Desktop is pixel-identical to before.

Minimap, mobile light
Minimap, mobile dark
Minimap, desktop light (unchanged)

Fleet tally with an unknown outcome. Deliberate deviation: the prototype has no unknown state; the header reads "0◐ 1✓ 1?".

Fleet tally, desktop light
Fleet tally, desktop dark

Tool panel after the result arrives. After matches the prototype's completed panel.

Tool panel, desktop light
Tool panel, mobile dark

Re-verification (2026-10-11)

  • Ordered-list numbers and task lists (minor). The new list styles dropped react-markdown's attributes: a list split by a code block lost start (steps read 1, 1, 1), and a task list lost its classes, so each checkbox also got a bullet. The list elements now pass the attributes through, and task lists drop the bullet. (2249011fa) Tests: markdown-message.test.tsx "keeps an ordered list's start number", "renders a task list with its checkboxes and no bullets" (both fail without the fix).
  • The review-fix gate table's Before column now reads 150 files (the 151 was the After count).

Before and after the fix (the images are labelled with the pre-restack hashes):

Markdown lists, desktop light

More: mobile, dark

Markdown lists, mobile light
Markdown lists, desktop dark
Markdown lists, mobile dark

Gates on the restacked head 2249011fa: studio:check passes (web 1,329, server 210 tests). At the stack top (#2256): studio:browser 118 passed, 30 skipped; the mecated --mock integration suite 8 passed. The browser suite takes 5.3 minutes on a CI runner.

Commit hashes cited earlier in this body predate the restacks; the current commits keep the same subjects. Hashes in Review fixes are updated.

Refs #2207

🤖 Generated with Claude Code

@peppescg
peppescg added this pull request to stack #2227 October 10, 2026 12:48
@peppescg
peppescg force-pushed the feat/studio-chat-transcript-2207c branch from 57ea6b7 to b940dd7 Compare October 11, 2026 14:57
@peppescg
peppescg force-pushed the feat/studio-chat-transcript-2207c branch from b940dd7 to eca9547 Compare October 11, 2026 15:28
@peppescg
peppescg force-pushed the feat/studio-chat-transcript-2207c branch from eca9547 to e1e873c Compare October 11, 2026 15:48
@peppescg
peppescg force-pushed the feat/studio-chat-transcript-2207c branch from e1e873c to f6b0938 Compare October 11, 2026 16:13
@peppescg
peppescg force-pushed the feat/studio-chat-transcript-2207c branch 3 times, most recently from 9f7fd94 to 0077545 Compare October 13, 2026 15:02
@peppescg
peppescg force-pushed the feat/studio-chat-transcript-2207c branch from 0077545 to 2249011 Compare October 14, 2026 08:45
@kantord
kantord force-pushed the feat/studio-chat-transcript-2207c branch 8 times, most recently from f9fb24e to 34873fa Compare October 14, 2026 10:02
Base automatically changed from feat/studio-chat-composer-2207b to main October 14, 2026 10:23
peppescg and others added 3 commits October 14, 2026 13:23
… and delivery notes

Before the transcript takes the prototype's look, pin what a reader can
find in it: each tool call's name, arguments, result, and failure, the
Show Tools rule and an ask's exception, the row's open action and the
tool panel; the subagent, parallel, and team cards in their running,
done, failed, and unknown states; the selection toolbar's Copy and Add
to canvas; and a scheduled delivery note's schedule, fire, outcome, and
plain-text body.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…tion cards

The chat transcript takes the prototype's look (stack-08) on Studio's
chat logic:

- Rows: an avatar for both speakers, the name, the body, and a Copy and
  side-thread action column that shows on hover or focus (always on
  touch). The side thread uses the same rows.
- Tool calls: one "Activity: N tools" disclosure per turn that follows
  Expand details, with a status dot, the friendly MCP name, clamped
  arguments, and a one-line result per call. A finished Edit or Write
  shows its diff; the head opens the tool panel, which shows the status,
  the input as a diff with Raw, and the whole output. A call's ask or
  authorization still sits in its row and holds the disclosure open.
- Delivery notes: the prototype's card, with the schedule, the fire, an
  outcome badge, and the plain-text body clamped behind Show more.
- Markdown: the dark code panel, and list and paragraph spacing.
- Delegation: the prototype's chips (subagent, team member, and a parallel
  group with its branches as inner pills), its roster glyphs and tab
  look in the activity panel, and the header's fleet chip, which opens
  the panel on a family.
- The minimap becomes the prototype's dashes with a hover preview, the
  developer steer trace moves above the queued strip in the prototype's
  dashed line, and the selection toolbar gains Add to chat, which adds
  the selection to the composer's draft.

Studio's semantics stay: the fleet reducer and placement, the Show
Tools rule, the verdict and authorization flows, the delivery note's
contract data, markdown safety, the edit-diff caps, and the minimap's
navigation.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…at the bottom

The transcript followed new messages only, so a card that grew in place
(a delegation card, an ask, a highlighted code block, an image) left a
reader who sat at the bottom behind it. Observe the content's size as
well: while the reader is at the bottom, and not jumping through the
minimap, a resize scrolls to the end. A reader who scrolled up stays put.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
peppescg and others added 11 commits October 14, 2026 13:23
- The fleet chip reads the chat header's width: full labels only in a
  wide header, the compact glyphs below that, and no chip in a narrow
  one, so the title keeps its room beside Activity, Canvas, the run
  badge, and Stop.
- A row's Copy and side-thread actions sit on its author line instead
  of a column of their own, so a phone keeps the text width.
- The activity panel's family tabs let their count wrap under the label
  in a narrow panel, and roster rows fill the panel's width.
- Inline code wraps only where it must.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ds, and actions

The Activity line and its tool rows, the tool panel, delegation cards
and the header's family counts, the minimap's preview, the per-message
Copy and side-thread actions, and the selection toolbar's Add to chat.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A truncated line keeps its full text in its hover title, which a phone
can't show, so the outcome at the end of the line was lost there. Below
500px the lines wrap instead.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A chip truncates its line and keeps the whole line as its hover title,
which a phone can't show, so a child's state and facts were cut off
there. Below 500px a chip's line (and a failed child's cause) wraps and
the chip grows a line instead.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A fence with no language (and an indented code block) reached the code
renderer without a language class, so it took the inline chip's light
background inside the dark panel: near-white text on near-white in the
light theme. Code inside a panel now always renders as a block with the
panel's dark tone, labelled or not. The hast node no longer leaks onto
the DOM as a node="[object Object]" attribute.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Each dash was a 12px-tall button on every pointer, too small to hit
with a finger. On a coarse pointer a dash is now a 44px-tall button with
the same 3px mark inside; a mouse keeps the prototype's 12px pitch.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The tool panel kept the call it was opened on, so a panel opened while
the call ran said "(still running)" after the output arrived. The panel
now resolves its call (run and id) from the transcript on each render,
like the authorization review, and keeps the opened snapshot only when
the row is gone.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copy and the side-thread action were 24px buttons on every pointer. On
a coarse pointer they are now 44px; a mouse keeps the prototype's
compact actions. The browser journey's long-chat fixture moves into a
helper so the new touch check can share it.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The header's family tally counted every child that wasn't running as
done, so a child Studio stopped following before it reported an outcome
read as finished. Such children now get their own count: "· N unknown"
in the label and "N?" in the compact form, shown only when there are any.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The 44px row actions on a coarse pointer made each author line 44px
tall, so the name sat below its avatar and every turn grew. A negative
vertical margin keeps the 44px target while the author line keeps its
24px height. The touch check now also asserts the line's height.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The transcript's new list styles replaced react-markdown's list elements
with ones that dropped its attributes. An ordered list split by a code
block lost its start number, so steps read 1, 1, 1, and a GFM task list
lost its classes, so each checkbox also got a bullet.

The list elements now pass react-markdown's attributes through, and a
task list drops the bullet.

Refs #2207

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@kantord
kantord force-pushed the feat/studio-chat-transcript-2207c branch from 34873fa to 08ddeb1 Compare October 14, 2026 10:23
@kantord kantord mentioned this pull request Oct 14, 2026
41 tasks done

@kantord kantord left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. I reviewed the diff with an independent reviewer and a skeptic pass. No blockers found: markdown, link and image handling is unchanged, with no new clickable-link or external-image path; delegation and delivery cards can't be mistaken for another speaker; CI is green.

Non-blocking follow-ups are in #2303, section E: tool-row aria-label drops the status for screen readers, bounded tool-output summaries, hidden labels in copied selections, scroll-follow pulling the reader down when they expand something (needs a small design call). Not tracked, since checked and judged fine: collapsed tool rows still render diffs (cost is small and memoized), and the long-goal delegation chip (the glyph, tint and panel carry the state).

Fully or partially written by an AI agent.

@kantord
kantord merged commit 74ca875 into main Oct 14, 2026
31 checks passed
@kantord
kantord deleted the feat/studio-chat-transcript-2207c branch October 14, 2026 10:47
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 20, 2026
2 tasks
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.

2 participants