Repository navigation
Show messages between agents as cards with the other agent's status - #34824
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 9

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
4b286fce-3b27-41d6-b510-32d33e284453
Files selected for processing: 26-
src/main/runtime/orchestration/agent-message-relation.tssrc/main/runtime/orchestration/dispatch-task-source.tssrc/main/runtime/orchestration/preamble.test.tssrc/main/runtime/orchestration/preamble.tssrc/main/runtime/orchestration/structured-mail-source.test.tssrc/main/runtime/orchestration/structured-mail-source.tssrc/main/runtime/rpc/methods/orchestration-structured-worker-start-deadline.test.tssrc/main/runtime/rpc/methods/orchestration-structured-worker-start-failure.test.tssrc/main/runtime/rpc/methods/orchestration/runs/dispatch-methods.tssrc/main/runtime/rpc/methods/orchestration/worker/deliver-worker-dispatch-preamble.tssrc/renderer/src/components/native-chat/NativeChatAgentMessageCard.test.tsxsrc/renderer/src/components/native-chat/NativeChatAgentMessageCard.tsxsrc/renderer/src/components/native-chat/NativeChatAgentMessageSenders.test.tsxsrc/renderer/src/components/native-chat/NativeChatAgentMessageSenders.tsxsrc/renderer/src/components/native-chat/NativeChatUserMessageRow.tsxsrc/renderer/src/components/native-chat/native-chat-agent-message-sender-identity.test.tsxsrc/renderer/src/components/native-chat/native-chat-agent-message-sender-label.tssrc/renderer/src/components/native-chat/native-chat-agent-message-sender-view.tssrc/renderer/src/components/native-chat/native-chat-message-copy-text.tssrc/shared/agent-session/agent-message-display-text.tssrc/shared/agent-session/agent-session-message-source.test.tssrc/shared/agent-session/agent-session-message-source.tssrc/shared/structured-agent-session-latest-request.test.tssrc/shared/structured-agent-session-latest-request.tssrc/shared/structured-agent-session-projection.tssrc/shared/structured-agent-session-queued-cards.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
-
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
Run configuration-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1dd5b3ec-2109-4a33-970f-fe6da2486242
Files selected for processing: 30-
mobile/src/session/mobile-agent-message-attribution.test.tsmobile/src/session/mobile-structured-queued-message-cards.test.tsmobile/src/session/use-mobile-structured-queued-edit.test.tsxsrc/main/native-chat/agent-session-wire/structured-agent-session-queued-message-rig.test-fixture.tssrc/main/runtime/orchestration/agent-message-relation.tssrc/main/runtime/orchestration/dispatch-task-source.tssrc/main/runtime/orchestration/preamble.test.tssrc/main/runtime/orchestration/structured-mail-source.test.tssrc/main/runtime/orchestration/structured-mail-source.tssrc/main/runtime/orchestration/structured-mailbox-pointer-delivery.test.tssrc/main/runtime/rpc/methods/orchestration/agent-message-command-contract.test.tssrc/renderer/src/components/native-chat/NativeChatAgentMessageCard.fixture.tsxsrc/renderer/src/components/native-chat/NativeChatAgentMessageCard.test.tsxsrc/renderer/src/components/native-chat/NativeChatAgentMessageCard.tsxsrc/renderer/src/components/native-chat/NativeChatAgentMessageRow.test.tsxsrc/renderer/src/components/native-chat/NativeChatAgentMessageSenders.test.tsxsrc/renderer/src/components/native-chat/NativeChatAgentMessageSenders.tsxsrc/renderer/src/components/native-chat/NativeChatQueuedMessageEditor.test.tsxsrc/renderer/src/components/native-chat/native-chat-agent-message-sender-label.tssrc/renderer/src/components/native-chat/native-chat-agent-message-sender-source.test.tsxsrc/renderer/src/components/native-chat/native-chat-agent-message-sender-source.tssrc/renderer/src/components/native-chat/native-chat-agent-message-sender-view.tssrc/renderer/src/components/native-chat/native-chat-message-copy-text.tssrc/shared/agent-session/agent-message-display-text.test.tssrc/shared/agent-session/agent-message-display-text.tssrc/shared/agent-session/agent-message-presentation.tssrc/shared/agent-session/agent-session-message-source.test.tssrc/shared/agent-session/agent-session-message-source.tssrc/shared/orca-dispatch-status-prompt.tssrc/shared/structured-agent-session-queued-cards.ts
Files skipped from review as they are similar to previous changes: 1-
- src/shared/agent-session/agent-session-message-source.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
-
[Medium impact] The PR appears safe to merge, with two non-blocking card issues still open from the previous review. FindingsSummaryAdds desktop cards for messages between agents, with sender names, live status, arrival time, and expandable previews.
Reviews (7) · Last reviewed commit: "Reuse active copy control in card workfl..." · Reviewed by Greptile |
|
Agent tasks exposed provider instructions in chat, and agent mail used the old attributed row. The new cards show task text, sender identity and live status, arrival time, and a three-line preview with Show more/less. Sender names keep their existing navigation. Stored text, provider input and queued editors retain the full original message. A changed Save keeps the existing user-authorship behavior; a no-op Save retains attribution. Six review rounds repaired task/status identity, coordinator/worker attribution, accessible sender controls, complete progress indicators, bounded observation, Markdown/Copy behavior and collapsed-preview focus restoration. This desktop change works independently. Worker-start cards and the phone card view remain later cuts; mail-wrapper trimming follows #28567. Reviewed head: The mobile cases, six scene comparisons, 12 focus captures and 50 browser-fixture assertions passed at production head The late-image concern is deferred after one bounded investigation. Twelve genuine delayed-image inputs all gained or retained “Show more”; none reached the exact already-capped/no-overflow starting geometry in the claim. This does not prove the concern impossible. No production workaround was added. The probe's separate exported process, listener and configuration cleanup receipts were independently verified. The unchanged configured hook passed over all 33 PR files in For Brennan’s review: Additional focus proof: wide restored preview, narrow restored preview.
|
…tablyai#34824) * Snapshot agent message relations and verify task display prefixes * Show native chat agent messages in navigable cards * Keep agent message cards derived from canonical input and sidebar state * test: correct agent card contracts and cover raw queue editing * test: repair agent card runtime and operation contracts * fix: preserve queued image previews and typed test measurements * fix: use checked worker fixture and owned sender button typography * fix: complete agent card fixtures and native presentation * test: preserve queued edit exports and current authorship * test: use namespace type imports in queued edit fixture * Preserve sender progress and consolidate card contracts * Simplify sender and notice contract instrumentation * Remove duplicate sender and notice measurement mirrors * Use a template literal for the dispatch boundary fixture * Correct sender and notice verification phase accounting * Consolidate agent message tests around user contracts * Restore folded agent message preview on focus exit * Consolidate agent message regression coverage * Consolidate agent message fixture data * Fix display text test lint diagnostics * Use conversation view type for mail test records * Reuse active copy control in card workflow test (cherry picked from commit 7321b06) BrzA: the card also draws a Claude Code peer (PLN-001/P63). Its heading reads "Hand-back from" for a subagent report and its sender name stays plain text; mobile reads the same. The queue keeps BrzA's older projection with the task display text ported onto it, and the agent-message-display-text import follows native-chat-prose where it lives here. Left out, as they need the newer queue editing: the raw-task composer test, its queued-edit fixture, the agent-message command contract test and the queued-edit cases in the mobile test and the main rig fixture. The card's scale case counts two enumerations, not three: BrzA has no visible-authority acquisition. Brought in: native-chat-tooltip-test-harness. Co-Authored-By: Claude Opus 5.5 <[email protected]>
v1.4.246 takes Chat UI out of Experimental (stablyai#36110). 1554 upstream commits over the fork's last sync (c98a2d6); 404 files conflicted. Resolution - Rebrand-only hunks (1393 in 195 files): upstream's text with the same Orca -> BrzA Studio rewrite the fork had applied there. - Locale catalogs: merged key by key; where both sides changed a key, upstream's text. The repo-wide rebrand of new upstream copy follows in its own commit. - Upstream-deleted files the fork had only rebranded: deleted. The coexistence cases of the deleted identity tests move to brza/ tests; the account-switch notice cases to native-chat/brza/. - stablyai#34824 (agent message card), cherry-picked earlier: upstream's version; the fork's Claude Code peer reader, hand-back heading and sender click ride on top of it. Fork features against new upstream - Continue in another account (P40) gives way to upstream's NativeChatUsageLimitActions (stablyai#31241); Resume automatically stays. - The per-chat account switch (P36) stays beside upstream's global switch (stablyai#30955): a pinned chat launches, and lists models, on its pinned account, and the switch drops the old account's acquisition receipt. - Match Terminal follows what the terminal shows, the chat theme when the terminal follows it; plugin terminal themes are offered as chat themes. - Islands Dark becomes useMonacoTheme's fallback for every surface. - New Orca identity copies: Windows protocol registration uses the brand scheme; brza-studio://plugins links are accepted beside orca://. - The Windows uninstaller no longer removes agent hooks: BrzA's app GUID hides an installed upstream Orca from ORCA_OTHER_INSTALL_STATE, and the hooks under ~/.orca are shared with it. - Files pushed past max-lines split into brza/ or sibling modules. Committed without the pre-commit hook: lint-staged over the merge's 18k files is killed. The lint and rebrand fixes follow in their own commits. Co-Authored-By: Claude Opus 5.5 <[email protected]>






Agent tasks currently put Orca's instructions before the actual task, while messages from other agents use a plain attributed row. This change gives those messages a readable card with the sender's current sidebar icon and status, name, arrival time, and a measured three-line preview with Show more/less.
The heading distinguishes “Task from your coordinator”, “Message from your coordinator”, and “Update from your worker”. Missing, mixed or unrelated relationship evidence uses “Message from”. Sender names keep the existing navigation behavior, including when live status is unavailable.
Task cards derive the exact current task suffix using the existing dispatch grammar. The full original input remains in provider requests, stored messages, status identity, queued editors, and raw readers. Unrecognized or unsupported content keeps its existing fallback; paragraph spacing and attachments remain intact. Copy on the card uses the displayed text and stays available while folded, with the normal hover, keyboard-focus and touch behavior.
Sender relationships are optional delivery-time evidence of the immediate creator, so historical mail does not guess from current lineage or Run depth. Missing or malformed evidence stays generic and never gates delivery. Live glyphs use the existing sidebar authority through shared workspace observation with selected equality and subscription-owned cleanup.
Compatibility and scope
There is no saved body copy, prefix fingerprint, new capability requirement or minimum server version. Older readers can ignore the optional relationship metadata. Current clients can recognize existing task provenance and dispatch grammar from older hosts; otherwise they preserve the existing text fallback. Shared desktop and phone queue/edit contracts retain canonical input.
This PR ships usable desktop cards alone. Worker-start cards and the phone card view are later planned changes. Trimming the existing mail wrapper follows #28567.
Validation
Full review path completed through finding-specific source, reference, performance and readiness checks. CI 40879716513 passed on reviewed head
38b4c3b18980a39d3b2644e1f570efb78d885a3d. Applicable named results total 19 root files / 236 completed passes (including all five shared-fixture importers, the full composer and real CLI contracts), plus 3 mobile files / 32 completed passes.Six card scenes, 12 focus captures and 50 browser assertions passed at production head
4072e02772c1f322c8325d825a1115bacd90568f. The subsequent commit changes only the Card Copy-state test, so the appearance and interaction evidence carries. The bounded delayed-image investigation found no failing input; its remaining conditional concern is deferred, without a claim of universal refutation.The normal configured changed-file hook passed over all 33 PR files in
a0969d59e5646da184b9bae26eb1121f8eb0f1db..38b4c3b18980a39d3b2644e1f570efb78d885a3d, including every task and applying modifications. All 14 execution receipts were byte/hash verified.