Repository navigation
feat(chat): tool acts reach the transcript as receipt rows — the #243 wire - #2273
Merged
Merged
Conversation
…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
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
ActReceiptView(neutral — actor/tool/summary/ok/timestamp) +ChatViewState.acts, a boundedserde(default)ring besidemessages. ts-rs exported, vendored, SDK barrel.apply_act— the ONE choke point every hand action passes (live turns, directed turns, agent/solve) — radiates onepersona:actper executed Observation. Summary = first extracted path, else shell-command head; never raw JSON args.persona:actjoins the real-time passthrough — the coalescer would silently drop back-to-back receipts from one batch.apply_actfold with focus-pin, room-switch clear,act_iddedup, 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