Skip to content

Chat refresh 3/5: transcript rows, receipts and turn status - #529

Draft
BunsDev wants to merge 3 commits into
chat-refresh-menusfrom
chat-refresh-transcript
Draft

BunsDev wants to merge 3 commits into
chat-refresh-menusfrom
chat-refresh-transcript

Conversation

@BunsDev

@BunsDev BunsDev commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

PR 3 of 5 for the chat and prompts refresh. Stacked on #528 (menus), which is stacked on #527 (foundation). Draft: nothing here should merge before Val has looked at it.

Design: docs/superpowers/specs/2026-11-15-chat-prompts-refresh-design.md, section "3. Transcript". Plan: docs/superpowers/plans/2026-11-16-chat-refresh-transcript.md.

What changes

  • A turn is one element. TurnContent wraps the message, status line, work and reply actions in one .turn, so spacing, hover and focus can be scoped to a turn. The column rule moves to the wrapper's children at the same place in the stylesheet, so the cascade is unchanged.
  • Status line. "Worked for 38s" loses its rule and becomes a small inline line, a toggle when the turn has work. A live turn leads with a dot: pulsing while the agent works, steady and amber while it waits on the person. The text is unchanged.
  • Work rows. Thinking, tool, route and receipt rows share one 34 px row with a 22 px icon tile. Tool glyph characters (›_, ✎, ◫, ✓, ✕) are icons by kind. A command line reads "Ran" or "Running" before it.
  • Receipts. An approval a person answered, or one that closed unanswered, is a receipt row that opens to the request. It says "by you" only when main recorded the answer as given in this window; a phone or paired-desktop answer keeps its note under the row.
  • Reply actions fade out on older turns until the turn is hovered or holds focus; the newest turn always shows them. They stay in the layout and the tab order.
  • A streaming reply ends in a pulsing dot. Jump to latest is a 32 px square icon button with the same accessible name.

Calls for Val to check

  1. The reading column stays 938 px here. The design narrows it to 760 px for the transcript and the composer together, so it moves with the composer in PR 5.
  2. The waiting approval and the question card keep today's card. The request panel in PR 4 replaces both; the answered question card becomes a row there too.
  3. Focus after an answer does not move yet. It still lands on the answer word, which now sits in the receipt row beside its toggle. PR 4 moves it to the message box, as designed.
  4. Only commands get a verb. Other tools' summaries come from the CLI's own title and already read as a phrase ("edit CONTRIBUTING.md").

What does not change

Every existing data-testid, role, accessible name and decision word. Folding, the focus hand-off to the turn's toggle, scroll following and the jump logic. The tool row's aria-label.

Tests

  • Unit: toolKind, toolVerb and answeredApproval in src/shared (two new tests).
  • New e2e/transcript-rows.spec.ts (4 tests): saved rows and receipts including an uncertain delivery after a restart; reply actions on hover and keyboard focus; the jump button; a live turn through an approval.
  • layout.spec.ts: the column is measured on the turn header's content box; the label is 13 px with no bottom border.
  • keyboard-answers.spec.ts: the keyboard jump test adds turns until the transcript overflows, because a finished turn is shorter now.
  • scripts/test/radius-scale.test.mjs: two more dots in styles.css (the status dot and the streaming dot).

Verification

This session cannot install dependencies, so pnpm build, the unit suite and the Electron specs first run here in CI. Run in the session: the two new unit tests through a type-stripped build (8 of 8 pass in those two files), the repository script tests (232 of 234; one needs the npm registry and fails the same way on main, one is skipped), a type check of the changed renderer files against stand-in React declarations, and a rendered check of the new markup against the real stylesheets in Chrome for the jev, graphite and coven themes.


Generated by Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Ya6qvLmxrim1dK1KjEpJ7
Pure helpers for the transcript rows: what a tool row is (for its icon),
"Ran" or "Running" for a command line, and the one-line receipt for an
approval a person answered or that closed unanswered. "by you" is claimed
only when main recorded the answer as given in this window.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Ya6qvLmxrim1dK1KjEpJ7
Each turn is one element. Its status is a small inline line with no rule,
a toggle when the turn has work, with a dot while the turn is live (steady
and amber while it waits on the person). Thinking, tool, route and receipt
rows share one 34 px row with a 22 px icon tile; tool glyph characters are
icons by kind, and a command line reads Ran or Running.

An approval a person answered, or one that closed unanswered, is a receipt
row that opens to the request. The waiting approval and the question card
keep their card until the request panel. Focus after an answer still lands
on the answer word, which now sits in the row beside its toggle.

Reply actions fade out on older turns until the turn is hovered or holds
focus. A streaming reply ends in a pulsing dot. Jump to latest is a square
icon button with the same accessible name.

Existing test ids, roles, names and decision words are unchanged. The
938 px column stays until the composer PR.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Ya6qvLmxrim1dK1KjEpJ7
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Nov 16, 2026 7:46am UTC
modex-app Ready Ready Preview Nov 16, 2026 7:46am UTC

Request Review

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

chat-refresh-menus 538d357 chat-refresh-transcr... c5c03c9 +/-
66% 66% 0%
View coverage of the 8 most impacted files.
File chat-refresh-menus 538d357 chat-refresh-transcr... c5c03c9 +/-
apps/desktop/sr...TurnContent.tsx 43% 42% -1%
apps/desktop/sr...nts/ui/Menu.tsx 36% 36% 0%
apps/desktop/sr...nts/ui/Icon.tsx 99% 99% 0%
apps/desktop/sr...nfirmDialog.tsx 0% 0% 0%
apps/desktop/sr...oval-receipt.ts 100% 100% 0%
apps/desktop/sr...tool-summary.ts 100% 100% 0%
apps/desktop/sr...asoningItem.tsx 94% 97% +3%
apps/desktop/sr...erer/confirm.ts 0% 100% +100%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

This branch was successfully deployed

1 active deployment
Preview – modex — c5c03c9b Deployed Nov 16, 2026 by vercel[bot]
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