Skip to content

feat(session)!: the session transcript, as one composition both apps render - #39

Merged
uzayer merged 1 commit into
mainfrom
uzayermasud/session-transcript
Nov 13, 2026
Merged

uzayer merged 1 commit into
mainfrom
uzayermasud/session-transcript

Conversation

@uzayer

@uzayer uzayer commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Desktop's transcript rows move into ./session as props-only components, so desktop and the web draw a session with the same code (ATL-1012).

 src/components/session/
-├── session-timeline.tsx      # SessionTimeline
-├── turn-row.tsx              # TurnRow
-├── tool-call-card.tsx        # ToolCallCard
+├── transcript/
+│   ├── model.ts              # Row / RowKind: its own model, no tie to either app's wire
+│   ├── *-row.tsx, marker-rows.tsx, turn-rows.tsx
+│   │                         # prompt, response, thought, tool line, folded block, work
+│   │                         # header, subagent, turn footer, pause, injected, interruption
+│   ├── transcript-view.tsx   # the frame; + working indicator, loading state, jump pill
+│   ├── labels.ts, parse-shell-command.ts, thought-headline.ts
+│   ├── projection.ts         # turn rules: markerBlock, markLiveBlocks, foldWork, gapSeparator
+│   └── context.tsx           # TranscriptProvider: markdown, footers, comment pills,
+│                             # changed-files card, what a tool line opens
 └── session-view.ts           # stays
 src/styles/
+└── transcript.css            # imported by both stylesheets; --transcript-column

Evidence

  • format:check, typecheck, test (66 files, 647 tests) and build pass.
  • Overlaid this build into both consumers' branches: desktop (lint, typecheck, chat and contract suites: 155 files pass) and web (lint, typecheck, 137 files / 1333 tests pass).
  • Desktop's transcript scenarios on the mock backend are pixel-identical before and after, dark and light.

Merge Danger

Door: two-way

Blast Radius: consumers

SessionTimeline, TurnRow and ToolCallCard are removed (breaking). Only the pinned tag matters to consumers, and both are adapted on their own branches.

…render

Desktop's transcript views move into `./session` as props-only rows, so the
web's reader and remote-control room draw a session the way desktop does:

- a row model of its own (`Row`, `RowKind`), with no tie to either app's wire;
- the rows (prompt, response, thought, tool line, folded block, work header,
  subagent, turn footer, pause, injected prompt, interruption), the frame
  (`TranscriptView`), the working indicator, the loading state and the
  jump-to-bottom pill;
- the label helpers an app's projection needs (`toolDisplayName`,
  `summarizeMarkers`, `parseShellCommand`, `thoughtHeadline`, …) and the turn
  rules (`markerBlock`, `markLiveBlocks`, `foldWork`, `gapSeparator`);
- `TranscriptProvider`, through which an app supplies what only it can do:
  markdown, the actions under a message, comment pills, the changed-files
  card, and what a tool line opens;
- `transcript.css`, imported by both stylesheets, with the rows' classes and
  animations and `--transcript-column`.

BREAKING CHANGE: `SessionTimeline`, `TurnRow` and `ToolCallCard` are removed
from `./session`; render the transcript rows instead. `SessionView`, its
helpers and `SessionPipeline` stay.
@uzayer
uzayer merged commit a383445 into main Nov 13, 2026
1 check passed
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