Skip to content

feat(web): tool acts render in the transcript as collapsed receipts — #243 client half - #2274

Merged
joelteply merged 1 commit into
canaryfrom
feat/act-receipts-render
Aug 12, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/act-receipts-render

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The Claude-iOS pattern Joel referenced: a collapsed receipt line between speech ('Asha · Read 2 files, ran a command ›') expanding IN PLACE to one row per act (✓/✗ · tool · object · time). Consumes the persona:act wire PR #2273 deployed — real receipts are flowing from the live benchmark round as of this boot.

  • chatViewModel: transcript = messages + act receipts merge-sorted by timestamp; consecutive same-actor acts collapse into one ActGroupVM with a composed summary line (verb buckets) + anyFailed mark. Grouping lives in the ONE projection — web/tui/mobile collapse identically. Acts-less wire (older core) degenerates to a messages-only transcript.
  • render: chatContent draws the transcript; actGroupRow uses native <details> (browser owns the open bit — re-renders never fight the reader). Mobile's bottom-sheet variant is the remaining Neuroanatomy refactor + unified panel resizers #243 slice.
  • fixture: the default chat preview carries real-shaped receipts; render-proof shot delivered (expanded + collapsed states in one frame).

Spec pins interleave order, collapse count, summary-line composition, failure marking, acts-less degeneration. chat-view 68 + web 24 vitest green, tsc green both surfaces.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…243 client half

The Claude-iOS pattern Joel referenced: a collapsed receipt line between
speech ('Asha · Read 2 files, ran a command ›') expanding IN PLACE to one
row per act (✓/✗ · tool · object · time). Consumes the persona:act wire
PR #2273 deployed.

- chatViewModel: transcript = messages + act receipts merge-sorted by
  timestamp; consecutive same-actor acts collapse into ONE ActGroupVM with
  a composed summary line (verb buckets: read/searched/edited/ran) and an
  anyFailed mark. Grouping lives in the ONE projection so web/tui/mobile
  collapse identically. An acts-less wire (older core) folds to a
  messages-only transcript.
- render: chatContent draws the transcript; actGroupRow uses native
  <details> (browser owns open/closed — re-renders never fight the reader);
  quiet CSS (receipts never shout over the words). Mobile's sheet variant
  is the remaining slice on #243.
- fixture: the default chat preview carries real-shaped receipts (reads +
  failed pytest collapsed, a lone edit) — render-proof shot delivered.

Spec pins interleave order, collapse count, summary-line composition,
failure marking, and the acts-less degeneration. chat-view 68 + web 24
tests green, tsc green both.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit f7634d9 into canary Aug 12, 2026
@joelteply
joelteply deleted the feat/act-receipts-render branch August 12, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant