Repository navigation
Agent message cards find their sender's agent and status in the same store as the sidebar - #36660
Conversation
…'t be found A card names its sender by a snapshot written with the message, but drew the icon only from a live lookup, so a sender the lookup missed (a worker on another host, a terminal after restart, a closed agent) showed "?". Every writer (worker start, mail, task, federated start) now saves the sender's agent kind beside its name, and the card draws it when no live row names the agent. Live rows stay the source of icon and status whenever they match.
- A worktree removal frame drops only its own scope; a host stays publishing once any frame carried the field. - Identity history rebuilds follow writes to the facts it reads (connection-local triggers), not heartbeats, read marks or receipts; new mail is read incrementally. - One principal per paired peer replaces every federated route ever made. - Unchanged worktrees keep their scope object; a refresh republishes only worktrees whose scope changed. Chat records key on the store's state generation instead of serialising every record. - The publication rides client frames only, and phone frames drop it. - A failed history read keeps the last good publication and is not marked indexed; malformed rows are skipped; opening the database for display never throws. - A located chat keeps its tab's agent icon for cards saved without one.
Orca now records who sent each agent message and created each task when it accepts them, and the chat card resolves that saved identity against what each host says runs now. The avatar dot, label and click all read that one answer: a located terminal opens through the sidebar's own activation path, a closed chat reopens through its lineage, and a sender no host can prove shows its saved icon and says it is no longer available instead of opening whichever agent now holds the old pane. Publication now has the host's pairing key from the RPC server, so it no longer fails on every build.
A card's sender is now the terminal its saved handle names, the worker lineage its Dispatch continued into, or its chat session. That survives a normal restart, works with hooks off, from a plain shell and for replies, and needs no newly saved sender data, so the hook-conversation records, their table and the saved identity key are gone. The avatar, link and click read one answer. A terminal that now runs a different kind of agent than the card saved, or a sender two places claim, shows the saved icon as a plain name. A terminal that exited or was respawned keeps the host's own lookup on click without a status dot, behind one switch. Chat senders rebuild only when a chat appears, moves, clears or closes, and each live pane's worker reads go through the existing partial indexes.
The host's sender publication now carries an in-memory epoch and content revision that move only when what clients read changes. A window's graph sync sends the revision it applied and gets "unchanged" instead of the rows; each session-tab stream sends a worktree's scope once per revision. The window keeps the whole-host publication as its baseline and a newer worktree scope over it, by revision, so a delayed reply never undoes a newer scope and repeated deliveries cost nothing. An older paired host's cards now go through the same resolution as everyone else's: a terminal that runs a known different agent shows the saved icon as a plain name, and what the host's lookup returns is judged by the same row. Pi and OMP, and Claude and its teams wrapper, count as one agent. Failure text names the agent and says what to do. WSL chats are published, closed chat history no longer counts as open before the tab table exists, and paired principals are read again only after a pairing changes.
… fix its types The cross-process delivery test moves to tests/e2e, where tests that span main and renderer live, so the web typecheck no longer pulls main files in. It now drives the stream encoder main uses. The worker lineage walk takes a reader type without a this binding, the stream delta composes with the proof delta's own frame type, alias buckets accept terminal and chat tab arrays, and the publication test builds fully typed fixtures.
|
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:
Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
Actionable comments posted: 4
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

Major · Add the required agent field to the three… · worker-start-card-operations.test.ts:215-267
src/main/runtime/rpc/methods/orchestration/worker-start-card-operations.test.ts:215-267
Major · Functional Correctness · Quick win Add the required
agentfield to the threerecordStartargument objects. Typecheck fails with TS2741.
prepareWorkerStartCardnow requiresagent: AgentType | nullin its callback arguments (worker-start-card.ts, lines 10-16). The pipeline log reports three test objects at lines 215-267 that lackagent. This blocks the typecheck step.Add
agent: null, or a concrete agent where the test checks the recorded worker, to each object. Also add one assertion that a non-nullagentreaches the recordedworker. That assertion covers the new{ ...worker, agent: args.agent }branch. No test covers this branch.This range is outside the changed lines in this diff. Line 182 only switches the spy to
snapshotOf.Source: Pipeline failures

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:
75e3e65c-5f1b-4c9c-837d-f46b7b7d8c4a
Files selected for processing: 82-
src/main/native-chat/agent-session-journal/journal-storage-schema.tssrc/main/orcad/orcad-entry.tssrc/main/runtime/agent-session-record-store.tssrc/main/runtime/agent-session-sender-identity-revision.tssrc/main/runtime/agent-session-store-transactions.tssrc/main/runtime/construction/runtime-agent-projections.tssrc/main/runtime/construction/runtime-construction-services.tssrc/main/runtime/construction/runtime-service-state.tssrc/main/runtime/orchestration/agent-facing-parity.test.tssrc/main/runtime/orchestration/agent-message-sender.tssrc/main/runtime/orchestration/db/dispatch-context/worker-follow-up-lineage.tssrc/main/runtime/orchestration/dispatch-task-source.tssrc/main/runtime/orchestration/environment-transport.tssrc/main/runtime/orchestration/orchestration-sender-name.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/orchestration/structured-mailbox-pointer-delivery.tssrc/main/runtime/orchestration/structured-session-lineage.tssrc/main/runtime/orchestration/worker-start-card.tssrc/main/runtime/rpc/agent-sender-refresh.test.tssrc/main/runtime/rpc/dispatcher.tssrc/main/runtime/rpc/methods/orchestration-structured-worker-retry.test.tssrc/main/runtime/rpc/methods/orchestration/federation/federated-worker-start.tssrc/main/runtime/rpc/methods/orchestration/runs/dispatch-methods.tssrc/main/runtime/rpc/methods/orchestration/worker-start-card-operations.test.tssrc/main/runtime/rpc/methods/orchestration/worker/deliver-worker-dispatch-preamble.tssrc/main/runtime/rpc/methods/orchestration/worker/local-worker-start.tssrc/main/runtime/rpc/methods/session-tabs-inventory.tssrc/main/runtime/rpc/methods/session-tabs-sender-delta.tssrc/main/runtime/rpc/methods/session-tabs.tssrc/main/runtime/runtime-agent-sender-associations.test.tssrc/main/runtime/runtime-agent-sender-associations.tssrc/main/runtime/runtime-agent-sender-history.tssrc/main/runtime/runtime-agent-sender-publication.tssrc/main/runtime/runtime-orchestration-sender-names.test.tssrc/main/runtime/runtime-orchestration-sender-names.tssrc/main/runtime/session-graph/session-window-graph.tssrc/main/runtime/session-lifecycle/projection/build-headless-mobile-session-browser-tabs.tssrc/main/runtime/session-lifecycle/projection/perform-mobile-session-pty-records-refresh.tssrc/main/runtime/session-tabs/mobile-session-membership.tssrc/main/runtime/session-tabs/session-tabs-change-publication.tssrc/main/runtime/session-tabs/session-tabs-inventory.tssrc/main/runtime/terminal/launch/mobile-terminal-owned-create.tssrc/main/startup/main-process-runtime-launch.tssrc/main/startup/main-process-runtime-service.tssrc/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/native-chat-agent-message-sender-compatibility.tssrc/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-open.test.tsxsrc/renderer/src/components/native-chat/native-chat-agent-message-sender-publication.test.tsxsrc/renderer/src/components/native-chat/native-chat-agent-message-sender-source.tssrc/renderer/src/components/native-chat/native-chat-agent-message-sender-target.tssrc/renderer/src/components/native-chat/native-chat-agent-message-sender-view.tssrc/renderer/src/components/sidebar/use-worktree-agent-activation.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/lib/open-agent-message-sender.test.tssrc/renderer/src/lib/open-agent-message-sender.tssrc/renderer/src/runtime/agent-sender-alias-projection.tssrc/renderer/src/runtime/agent-sender-associations.tssrc/renderer/src/runtime/agent-sender-delivery.test.tsxsrc/renderer/src/runtime/agent-sender-publication-patch.tssrc/renderer/src/runtime/sync-runtime-graph/graph-publication.tssrc/renderer/src/runtime/web-session-tabs-sync/apply-snapshot.tssrc/renderer/src/runtime/web-session-tabs-sync/frame-drawn-server-workspaces.test.tssrc/renderer/src/runtime/web-session-tabs-sync/state.tssrc/renderer/src/store/slices/agent-status/agent-status-slice-contract.tssrc/renderer/src/store/slices/agent-status/agent-status.tssrc/shared/agent-sender-associations.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/agent-title-owner.tssrc/shared/native-chat-types.tssrc/shared/runtime-environment-store-file.tssrc/shared/runtime-session-contracts.tssrc/shared/structured-agent-start-projection.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
-
…st with saved-kind icons The base's worker command contract test reads the shared rule that a dispatch: address is never a link; the card's link check now calls that shared rule instead of repeating it. The base's sender view test expected a different agent's live row to replace the saved icon; this branch shows the saved kind without that row's status, so the test asserts that.
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:
09b223a1-0676-4f87-b27e-dccc17f28d12
Files selected for processing: 24-
src/main/native-chat/agent-session-journal/journal-storage-admission.test.tssrc/main/native-chat/agent-session-wire/structured-agent-session-queued-message-rig-provider.test-fixture.tssrc/main/runtime/orchestration/agent-facing-parity.test.tssrc/main/runtime/orchestration/db/dispatch-context/worker-follow-up-lineage.tssrc/main/runtime/orchestration/db/worker-dispatch/worker-dispatch-outcome.tssrc/main/runtime/orchestration/orchestration-sender-name.tssrc/main/runtime/orchestration/structured-mailbox-held-worker-report.test-fixture.tssrc/main/runtime/orchestration/structured-mailbox-pointer-delivery.test.tssrc/main/runtime/orchestration/worker-launch-observation.tssrc/main/runtime/rpc/methods/orchestration/agent-message-command-contract.test.tssrc/main/runtime/rpc/methods/orchestration/federation/federated-worker-start.tssrc/main/runtime/rpc/methods/orchestration/rpc-test-harness.tssrc/main/runtime/rpc/methods/orchestration/worker-start-card-operations.test.tssrc/main/runtime/rpc/methods/orchestration/worker-start-card-population.test-fixture.tssrc/main/runtime/rpc/methods/orchestration/worker-start-card.test.tssrc/main/runtime/rpc/methods/session-tabs-sender-delta.tssrc/main/runtime/runtime-orchestration-sender-names.test.tssrc/main/runtime/runtime-orchestration-sender-names.tssrc/renderer/src/components/native-chat/NativeChatAgentMessageRow.test.tsxsrc/renderer/src/components/native-chat/native-chat-agent-message-sender-publication.test.tsxsrc/renderer/src/components/native-chat/native-chat-agent-message-sender-view.test.tsxsrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/runtime/agent-sender-alias-projection.tstests/e2e/agent-sender-delivery.unit.test.ts
Files skipped from review as they are similar to previous changes: 2-
- src/main/runtime/orchestration/agent-facing-parity.test.ts
- src/renderer/src/i18n/locales/en.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
-
…its replaced check A hooks-off agent whose last status came from a terminal report without an app id saves the kind "unknown". That kind proved nothing, yet it vetoed the live agent in its own terminal: the card showed "?" with no dot as a plain name, and a raced click said another agent was running there. One shared read now treats it as no saved kind for the veto and the icon, on every path.
… each scope's own revision A stream counts a sender scope as sent once a frame carries it, but the window applied it only inside the tab apply, behind the tab version, resume census, receipt recovery and frames-draw checks. A frame those checks dropped could hold the only copy, so a paired host's cards stayed on stale rows (no dot while the sidebar showed the agent) until that worktree's senders changed again. Each receipt path now folds the frame's sender scopes in right after its connection, pairing and runtime checks; the tab apply keeps only a worktree's removal. A scope now also yields to that scope's own newer delivery, not only to a newer whole-host baseline, so a delayed list reply can't put back older rows. Every publishing host stamps a revision, so the content-comparison path for unrevisioned publications is gone.
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:
21168761-222f-4327-83ef-cac6baff57c5
Files selected for processing: 18-
src/renderer/src/components/native-chat/native-chat-agent-message-sender-identity.test.tsxsrc/renderer/src/components/native-chat/native-chat-agent-message-sender-open.test.tsxsrc/renderer/src/components/native-chat/native-chat-agent-message-sender-publication.test.tsxsrc/renderer/src/components/native-chat/native-chat-agent-message-sender-target.tssrc/renderer/src/components/native-chat/native-chat-agent-message-sender-view.tssrc/renderer/src/runtime/agent-sender-publication-patch.tssrc/renderer/src/runtime/local-structured-session-tabs-sync/snapshot-apply.tssrc/renderer/src/runtime/web-runtime-session-snapshot.tssrc/renderer/src/runtime/web-session-tabs-sync/active-session-subscription.tssrc/renderer/src/runtime/web-session-tabs-sync/apply-snapshot.tssrc/renderer/src/runtime/web-session-tabs-sync/frame-drawn-server-workspaces.test.tssrc/renderer/src/runtime/web-session-tabs-sync/global-session-events.tssrc/renderer/src/runtime/web-session-tabs-sync/global-session-inventory-event.tssrc/renderer/src/runtime/web-session-tabs-sync/load-initial.tssrc/renderer/src/runtime/web-session-tabs-sync/received-agent-sender-publications.tssrc/shared/agent-sender-associations.tssrc/shared/agent-session/agent-message-presentation.tstests/e2e/agent-sender-delivery.unit.test.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
-
…every saved chat Each chat tab opened or closed, chat created or moved, or /clear committed rebuilt the chat senders by listing every saved chat (42 ms at 10,000 on the main thread) only to keep the open ones. The record store now keeps an in-memory reverse of the saved /clear pointer, built at load and updated for the rows each commit writes; nothing new is saved. The sender read starts from the open chats and follows that index to their predecessors, so its work no longer grows with closed history.
…once per worktree A one-shot inventory or a broadcast built every worktree's frame through its own sender refresh, and each refresh walks every live terminal: 20,000 visits for 1,000 terminals over 20 worktrees. Both passes now build their frames from one refresh. The publisher counts its leaf and terminal visits, and a test drives the real inventory and broadcast methods at 100 and 1,000 terminals.
The window's sender aliases were recomputed for every open tab whenever any workspace-owner input changed, such as switching workspaces or writing a setting, though a bucket reads those inputs only through one host per worktree. Each bucket now keeps the host values it read and, when owner inputs move, checks just those before reusing its aliases. The delivery contract test counts alias work through workspace switches, settings writes and a title-only change.
…ontent without its revision R4 swapped the inventory's abstract single-frame declaration for the batch one, but the headless browser-tab emit and the runtime-owned terminal create still build one worktree's frame through it; both keep the per-frame sender scope. The publisher's content comparison now takes publications without their revision stamp, which R4 made required.
…s are plain strings
…w test type assertions for typed fixtures
… as the lookup did before
…rkers and keys no live pane reaches
…sidebar body in the delivery test
The sender publication walked every live terminal through the runtime's handle-issuing functions, so each display build could mint, adopt or rebind terminal handles. During a renderer reload or a split close that changed which handle a terminal held and what retirement frames published. Sender rows now read only the handles terminals already hold; a terminal with no issued handle has no row, and no card can name it.
…s no tab for it When a card's sender was found in a pane this window had not loaded yet, the click asked the host about the card's saved terminal instead. For a worker reopened by a follow-up, that opened its first terminal, or said the pane was gone, while the card showed the reopened worker running. The click now opens that same pane: by the handle its status row holds on that host, else by asking the host for that pane in the host's own coordinates. It checks the card again after the host answers, and a closed pane says the agent is no longer running. The saved-address lookup stays only for senders no host has located.
…w graph exists When the window graph went away, the host cleared its handle records but kept each terminal's start-time handle, which its agent's mail cards save as the sender. The read-only handle lookup required a record, so the running terminal lost its sender row and its cards showed no dot until a window came back. It now returns the handle issuing would reuse, record or not, and still changes nothing.
…-host case typechecks
…r does A sender name drawn without an avatar (queued mail, a card's later senders) checked for a different agent through a source nothing leased, so every store write rebuilt that worktree's sidebar rows. The name's link now holds the same lease the avatar does, and a card with no saved agent kind skips the row read entirely.
… per terminal The read-only handle lookup fell back to a scan of every handle record for each leafless terminal holding no handle, on every sender build. A build now gets one reader that indexes the records on its first miss and answers each terminal from that index, with the same handles issuing reuses.
…e the kind check A card whose terminal now runs a different agent resolved no location, so it leased no row source and rebuilt its worktree's rows on every store write. Both the avatar and the link now lease from the candidate location the kind check reads; their answers are unchanged.
… of NativeChatAgentMessageSenders.test.tsx
…irrors the whole tab A paired host names a pane <tab>:<leaf>; this window mirrors that tab whole as web-terminal-<tab> with the leaf ids kept, and its status rows use that key. The alias projection mapped only per-pane mirrors, so the card located the host's key and found no row to draw a dot from. The terminal bucket now also maps a whole-tab mirror's host tab, and a host pane takes this window's name from either form; two names for one pane still locate neither.
|
Review finished on current head; CI, functional QA and the bounded performance review completed (2026-11-02). The latest reviewed main integration is pushed as Fresh Codex and Claude worker messages displayed known identities and opened the correct worker terminals on desktop The final controlled saved-history comparison completed with exact output equality at start, end and ten seconds afterward: 172 saved chats, 208 messages, 129 mounted roots and four sender cards. In one 30-second window per pinned build, branch renderer task CPU rate fell 9.14%; sampled RSS peak was 28.08 MiB higher from a 35.33 MiB higher start. Frame p95 stayed 18.5 ms; maximum frame gap rose 18.7 ms, long-task total rose 6 ms, workspace switches were 42–56 ms faster and draft entry was 7 ms slower. The earlier unmatched CPU increase and 203 MiB peak gap did not reproduce at that magnitude. The RSS difference is unattributed. Source counters were unavailable; this measures saved-history navigation/draft entry in a development build, not active sender updates, streaming or universal performance. Independent verification recomputed the raw CPU/frame/action results and compared every mounted root at each checkpoint. It found no concrete production performance defect requiring another patch or run. Equality excludes per-copy identity/timestamps and measurement/memory fields; actual rendered content, controls and geometry match. The bounded performance review is complete. Earlier failed fixture/output gates are retained as failures. They were repaired with original nonsecret sender handles, ordinary model/notice UI actions and matched saved startup routes; no production patch or output normalization was used. All owned QA copies, drivers and samplers stopped gracefully, config hashes were unchanged, and both QA slots were released. The broad local changed check did not complete its related-unit selection within 30 minutes; subsequent bounded attempts also remained incomplete. Scoped regression tests, static checks and the 1,591-test runtime integration passed, and the previous-head CI was green; all 61 current-head CI checks passed. The final before-push check passed 40 checks and timed out only its broad unit selection at the disclosed two-minute limit. An unchanged profile-transfer timeout remains an unresolved main/rig candidate; no separate product defect has been proven or included in this PR. The repeated unknown-sender screenshots were separately traced to a local wake helper stripping its caller identity. That helper is repaired: bounded CLI tests and authenticated live delivery/readback confirm the originating Codex identity is retained. Tracked separately in STA-13515. Retained functional review on 35e6c55 (full path; real-app QA on 0d2eff6)The problem. Agent message cards in a native chat ("Started worker", "Update from worker", replies) show who sent them: an agent icon, a live status dot, and the sender's name as a "Go to agent" link. Coordinators saw a "?" icon and no dot for workers the sidebar showed fine. Each card found its sender with its own lookup, which missed title/process-only terminals, unloaded chats, chats after What changes for users. Each card's sender is worked out once, from the same agent rows the sidebar shows, and the icon, dot, link and click all use that answer. Terminal senders are found by their saved terminal handle (with or without status hooks, plain shells too), survive a normal restart, follow a reopened worker, and show their live dot when they run on a paired computer. When a different kind of agent now runs in a sender's terminal, the old card keeps its own icon, shows no dot and becomes plain text. What was fixed in review. Six review rounds and five design-panel rulings settled the design. The host publishes, next to the sidebar rows, which agent each saved sender identity points at now, sends it only when it changes, and rebuilds only what a write touches. The window reads one index of those publications. Late fixes:
Verified.
Not verified. Windows/WSL chat senders (optional flow E): no Windows+WSL slot, so tests cover them. Deferred follow-ups.
For Brennan's review
Fresh real-agent proof (desktop
|
| Claude sender card | Codex sender card |
|---|---|
![]() |
![]() |
| Claude click destination | Codex click destination |
|---|---|
![]() |
![]() |
Main comparison: Claude card, Codex card.
Final review and evidence carry. The original six review rounds and corrected whole-mechanism comparison, plus independent affected-mechanism checks of the Nov2 ownership, delivery and lineage repairs, cover the final diff. Intended and temporary differences above remain labelled. The late main merge 781bfff320dd4fd75ca425408e5aeb09c187a64b preserves incoming main behavior and the sender regression contract; an independent review agreed, 55 targeted tests passed and all 61 current-head CI checks passed. Desktop real-agent QA is on 37abb7c91efc69b68772604864664d0023365410; mobile-only commit 01a65baf30e5f1f3c72d6eb850026e9a63838e36 changes a tests-row callback-capability flow and passed production/test typechecks plus provider/navigation/rendered coverage in CI. The later main merge does not stale this desktop evidence. The earlier unavailable-Claude seats were substituted under Brennan's explicit task instruction; the tooling's newer ruling-check schema was not claimed green. No independent seat or tool pass was invented.
…refresh fails The chat rows and their key were stored before the terminal read; when that read threw, nothing was published, and the next build saw both keys as handled, so the chat change waited for an unrelated identity change. The refresh now publishes whatever changed beside the last good terminal rows, and the read's error still reaches the build's warning.














Builds on merged #36653, which saves each card's sender agent kind. This PR targets main. Tracked in STA-13124.
Problem
Agent message cards in a native chat ("Started worker", "Update from worker", "Task from coordinator", "Message from coordinator") show who sent them: an agent icon, a live status dot, and the sender's name as a "Go to agent" link. A teammate saw coordinator cards with a "?" icon and no dot for workers the left sidebar showed fine, with their icon and live status.
Why: each card worked out its sender with its own lookup (the chat's tab by session id, or a status row that happened to carry the terminal's handle) instead of the agent rows the sidebar uses. That lookup missed terminal agents the sidebar knows only by title or process, chats whose tab wasn't loaded yet, chats after
/clear, workers reopened in a new terminal, and workers on another paired computer. Clicking the name used yet another lookup, so after a worker was reopened elsewhere the avatar and the click could disagree: one agent shown, another opened, or "Agent's pane is no longer available" while the agent was running.What changes for users
Each card's sender is worked out once, and the avatar, the name, whether the name is a link, and the click all use that one answer, from the same agent rows the sidebar shows:
orca orchestration send), and replies./clearinto the new session. A closed chat still reopens from its card.How
/clearlineage, paired-computer attachments), and publishes that next to the agent rows the sidebar already gets: in the local window graph and in each host's session-tab updates, the same path paired computers already use for sidebar status. Only public row keys are published, never worker credential handles.Differences and limits
GONE_TERMINAL_SENDER_CLICKinnative-chat-agent-message-sender-target.ts, turns these into plain names.Tests
/clearsuccessors, reopened-worker lineage, paired-computer routes, credential handles excluded; handles are read, never issued; incremental history equals a full rebuild across follow-ups, transfers, respawns, deletes and rollbacks; cost contracts at N and 10N live workers, terminals and saved chats.Final validation (2026-11-02)
Current reviewed head
781bfff320dd4fd75ca425408e5aeb09c187a64b: all 61 CI checks passed, with no pending checks or merge conflicts. Independent review verified the latest main integration; 55 targeted integration tests passed. The mobile callback-capability repair passed production/test typechecks and relevant renderer/navigation tests in CI. The broad local related-unit selection exceeded its limit; scoped regression tests, typechecks and static checks passed. No full local unit pass is claimed.Real Claude and Codex questions, follow-ups and completions showed the correct sender identities and opened the correct worker terminals on desktop
37abb7c91efc69b68772604864664d0023365410. Existing restart, replaced-agent and paired-host evidence carries for unchanged flows. Later commits change the mobile caller and merge main; they do not invalidate that desktop evidence.The controlled warm comparison used the same 172 saved chats and 208 message bodies on main
aab098fb307and desktop37abb7c91ef, with 129 naturally mounted chat roots and four mounted sender cards. Full content, sender controls, footer, DOM and scroll projections matched before capture and at the end and ten seconds afterward. In one 30-second window per build, renderer task CPU rate fell 9.14%; sampled renderer RSS peak rose 28.08 MiB from a 35.33 MiB higher starting value. Frame p95 was 18.5 ms on both; maximum frame gap rose 18.7 ms, long-task total rose 6 ms, workspace switches were 42–56 ms faster and draft entry was 7 ms slower. The earlier unmatched CPU increase and 203 MiB peak gap did not reproduce at that magnitude. These measurements cover saved-history navigation and draft entry in a development build, not active sender updates, streaming, 172 mounted cards or universal performance. The RSS difference is unattributed; source counters were unavailable. No leak or zero-work claim is made. Independent verification recomputed the raw CPU/frame/action results and compared every mounted root at each checkpoint. It found no concrete production performance defect requiring another patch or run. Equality excludes per-copy identity/timestamps and measurement/memory fields; actual rendered content, controls and geometry match. The bounded performance review is complete.The separate repeated unknown-sender wake was traced to a local helper stripping its caller identity. Its authenticated identity preservation is repaired and tracked separately in STA-13515; this PR alone is not presented as fixing that helper.
Click destinations: Claude worker terminal, Codex worker terminal. Main comparison: Claude, Codex.