Skip to content

feat(chat): tool acts reach the transcript as receipt rows — the #243 wire - #2273

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

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

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Joel's directive (2026-08-12, with Claude-iOS screenshots as the reference): 'their tool actions need to show in chats' — collapsed receipts between speech bubbles; web expands in place, mobile opens a bottom-sheet.

This PR is the WIRE (substrate half): producer → bus → projection → SDK.

  • positron: ActReceiptView (neutral — actor/tool/summary/ok/timestamp) + ChatViewState.acts, a bounded serde(default) ring beside messages. ts-rs exported, vendored, SDK barrel.
  • producer: apply_act — the ONE choke point every hand action passes (live turns, directed turns, agent/solve) — radiates one persona:act per executed Observation. Summary = first extracted path, else shell-command head; never raw JSON args.
  • bus: persona:act joins the real-time passthrough — the coalescer would silently drop back-to-back receipts from one batch.
  • projection: apply_act fold with focus-pin, room-switch clear, act_id dedup, 60-row bound; acts ride every chat snapshot.

Tests: positron 125 ✓, act_observe 37 ✓, positron_source 17 ✓ (incl. new fold/dedup/room-clear pin), SDK tsc + vendor --check ✓.

Client render (collapse consecutive receipts + <details> inline expand on web + modal sheet on mobile) is the next slice on #243.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…wire (substrate half)

Joel's directive (2026-08-12, Claude-iOS reference): 'their tool actions need
to show in chats' — collapsed receipts between speech; web expands in place,
mobile opens a sheet. This PR is the WIRE: producer → bus → projection → SDK.

- positron: ActReceiptView (neutral: actor/tool/summary/ok/timestamp — any
  adopter's agent acts) + ChatViewState.acts, a bounded serde-default ring
  beside messages. ts-rs exported + vendored + SDK barrel.
- producer: apply_act (the ONE choke point every hand action passes — live,
  directed, agent/solve) radiates one persona:act per executed Observation.
  Summary = first extracted path, else shell-command head — never raw JSON
  args. Pure observability; a handless/mock executor radiates nothing.
- bus: persona:act joins the real-time passthrough — a batch fires several
  receipts back-to-back and the coalescer would have silently dropped all
  but the first (persona:vitals stays coalesced; it is periodic).
- projection: apply_act fold (focus-pin + room-switch + act_id dedup + 60-row
  bound), acts ride every chat snapshot. Test pins fold/dedup/room-clear.

positron 125 tests green, act_observe 37 green, positron_source 17 green,
SDK tsc + vendor --check green. Client render (collapse + inline expand +
mobile sheet) is the next slice on this card.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 0a22c93 into canary Aug 12, 2026
@joelteply
joelteply deleted the feat/act-receipts-wire branch August 12, 2026 23:20
joelteply added a commit that referenced this pull request Aug 12, 2026
…243 client half (#2274)

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.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5 <[email protected]>
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