Repository navigation
Show agent message cards in phone chats - #36162
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
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:
d89b60a7-fa7f-424a-856b-83fd08c89a94
Files selected for processing: 11-
mobile/src/i18n/locales/en.jsonmobile/src/session/MobileSessionActiveContent.tsxmobile/src/session/native-chat/transcript/MobileAgentMessageProvider.tsxmobile/src/session/native-chat/transcript/MobileNativeChatAgentMessageCard.tsxmobile/src/session/native-chat/transcript/MobileNativeChatMessage.test.tsmobile/src/session/native-chat/transcript/MobileNativeChatMessage.tsxmobile/src/session/native-chat/transcript/mobile-agent-message-context.tsmobile/src/session/use-mobile-agent-message-navigation.test.tsmobile/src/session/use-mobile-agent-message-navigation.tssrc/main/runtime/mobile-rpc-allowlist.test.tssrc/main/runtime/runtime-rpc/runtime-rpc-mobile-method-routing.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.
-
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:
780d6a16-c832-4f81-acd0-754fc2ff80a8
Files ignored due to path filters: 1-
src/shared/rpc-contract/rpc-params-catalog.generated.tsis excluded by!**/*.generated.*
Files selected for processing: 36-
mobile/src/i18n/locales/en.jsonmobile/src/session/MobileSessionActiveContent.tsxmobile/src/session/mobile-agent-message-navigation-rpc.tsmobile/src/session/mobile-agent-message-open-outcome.tsmobile/src/session/mobile-file-preview-lifecycle.test.tsmobile/src/session/mobile-markdown-document-lifetime.test.tsmobile/src/session/mobile-session-terminal-frame-layout.test.tsxmobile/src/session/native-chat/transcript/MobileAgentMessageProvider.test.tsxmobile/src/session/native-chat/transcript/MobileAgentMessageProvider.tsxmobile/src/session/native-chat/transcript/MobileNativeChatAgentMessageCard.tsxmobile/src/session/native-chat/transcript/MobileNativeChatMessage.test.tsmobile/src/session/native-chat/transcript/MobileNativeChatMessageActionsSheet.test.tsxmobile/src/session/native-chat/transcript/MobileNativeChatMessageActionsSheet.tsxmobile/src/session/native-chat/transcript/mobile-agent-message-context.tsmobile/src/session/native-chat/transcript/mobile-agent-message-renderer.test-fixture.tsmobile/src/session/native-chat/transcript/mobile-native-chat-display-copy.tsmobile/src/session/notification-pane-tab.tsmobile/src/session/use-mobile-agent-message-navigation.test.tsmobile/src/session/use-mobile-agent-message-navigation.tsmobile/src/session/use-mobile-session-close-actions.test.tsxmobile/src/session/use-mobile-session-close-actions.tsmobile/src/session/use-mobile-session-tab-switching.tsmobile/src/session/use-notification-pane-navigation.test.tsxmobile/src/session/use-notification-pane-navigation.tsmobile/src/test-support/mobile-agent-icon-assets-node.tsmobile/vitest.config.tssrc/main/runtime/client-session-tab-selection.test.tssrc/main/runtime/client-session-tab-selection.tssrc/main/runtime/mobile-desktop-relay/mobile-desktop-relay.integration.test.tssrc/main/runtime/rpc/methods/structured-agent-session-reveal.test.tssrc/main/runtime/rpc/methods/structured-agent-session-reveal.tssrc/main/runtime/rpc/methods/structured-agent-session-schemas.tssrc/main/runtime/rpc/methods/structured-agent-session.test.tssrc/main/runtime/rpc/methods/structured-chat-tab-table.test.tssrc/main/runtime/session-lifecycle/projection/apply-mobile-session-tab-navigation.tssrc/shared/rpc-contract/structured-agent-session-params.ts
Files with no reviewable changes: 1-
- src/main/runtime/rpc/methods/structured-agent-session.test.ts
Files skipped from review as they are similar to previous changes: 1-
- mobile/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
-
…2025/phone-open-chats # Conflicts: # src/main/runtime/orchestration/orchestration-party-location.test.ts # src/main/runtime/rpc/methods/orchestration-structured-worker-start-failure.test.ts # src/main/runtime/structured-agent-session-startup-reconcile.test.ts
|
Agent messages on the phone previously appeared as plain attribution rows. They now use the desktop card presentation: sender and arrow, available status, relation heading, header Copy and timestamp, and a body folded after three rendered lines. A sender arrow uses the shared opener so a saved chat can reopen on the phone while desktop keeps its current workspace and tab. The review repaired natural body measurement, empty-body spacing, displayed Copy/Select text, scoped sender updates, older-host failure feedback, and the faded fold edge. Five correctness rounds are complete, the last with zero new findings. The whole-mechanism reference comparison, performance review and readiness checklist are complete. CI on On the shipping iPhone simulator screen, short, long, exactly-three-line and image-only cards render correctly; expansion/refolding, portrait/landscape, full-body Copy, selection through the fade, and light/dark backgrounds passed. Actual closed Claude and Codex sender arrows reopened the correct saved chats and returned real follow-up replies. Desktop stayed on its selected workspace and tab; sender tabs were appended without selecting them there. The real arrow runs were on Intended: desktop card rules and sender-opening policy are shared. The phone glyph uses known current-workspace status, which never gates the arrow. A proven missing terminal gets desktop's pane-unavailable notice through the existing phone translation mapper. Temporary: the legacy phone sender index and its restart/clear/reopened-worker/dispatch identity gaps are tracked in STA-13207; other-computer senders are tracked in STA-12948. Lifecycle findings moved to #36315 per PO-CUT; this PR does not claim to fix them. The shipping phone chat is a host-served page inside the phone app's WebView. Android WebView was not exercised. New strings use the configured English fallback until the usual translation pass; Spanish fallback was observed. The existing human-message fold also has a hard-cut edge; that separate main behavior was left out of this PR. For Brennan's review: Final phone cards: short, folded, expanded, refolded, image-only, landscape and darkShort cards, with no reserved footer: Folded paragraph and exactly-three-line card: Expanded paragraph, with all text at full contrast: Landscape collapsed and refolded: Image-only card: Dark mode: Real closed sender arrows: Claude and Codex replies, desktop before/afterClaude phone reply: Codex phone reply: Desktop before and after both arrows, with the selected workspace/tab retained: Code judgment spots: natural measurement and fold edge, scoped sender source, shared opener adapter. merges only after #36315; needs retarget to main |











Agent messages on the phone currently appear as plain attribution rows. This PR gives them the cards already used on desktop: sender name and arrow, agent icon and available live status, relation heading, timestamp, Copy, and a body folded after three rendered lines. It includes Started worker cards as well as tasks and messages from other agents.
Tapping a sender uses the same opening policy as desktop. Saved native chats open on the phone, including closed Claude and Codex chats, while the desktop keeps its current view. Terminal senders open their terminal on the phone. The phone uses the existing compatibility path on older paired hosts and shows one translated notice when a target cannot open.
This is the phone follow-up tracked in #34824 and #35263. It is stacked on #36315 and can merge only after that foundation. Plan: agent-message-cards, PR 3 — phone. The shared card presentation rules stay unchanged; this PR adds the native phone view and its sender-arrow adapter. No saved field or wire shape is added here.
Intended: the phone shows a live glyph only for a sender its current workspace's session tabs know. Missing status does not prevent opening the sender. Header Copy and the fold-only footer match desktop; a short card reserves no footer. Messages without sender provenance keep their current presentation. A proven missing terminal uses desktop's existing pane-unavailable notice, translated through the phone's message mapper.
Temporary: the phone still uses its legacy sender index. Restart, /clear, reopened workers and dispatch senders can miss live identity until the phone consumes the host-published associations from #36660. That integration, including phone publication delivery and the saved-kind icon fallback from #36653 if it has not landed by final sync, is tracked in STA-13207. Opening senders on another computer remains tracked in STA-12948.
Review used the full path for phone/server compatibility and asynchronous navigation. The final source review and reference comparison are complete. CI is green on 52c5d56. The mobile tests cover fold measurement and the image-only case, the faded fold edge and queue extraction, Copy/Select, sender routing and older-host failures, Started cards and answered receipts, and scoped updates at 10 and 100 consumers.
On an iPhone simulator, both closed Claude and Codex senders reopened from their actual card arrows, preserved their conversations, and returned real follow-up replies while desktop stayed on its selected workspace and tab. Those senders had closed when Orca released the finished workers; user-close uses the same reopening path and has dispatcher tests. This evidence is from b0a130a and carries across the appearance-only fade repair. Final screenshots on 52c5d56 verify the folded edge in portrait, landscape and dark mode, expansion/refolding, full-body Copy and selection, and short, exactly-three-line and image-only cards.
The phone chat screen ships as a host-served page inside the phone app's WebView. Android WebView was not run. New phone strings use the configured English fallback until the usual translation pass; Spanish fallback was observed in the simulator.