You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0bd5c6a
Browse filesBrowse the repository at this point in the historyBrowse files
feat(ui): render cross-session messages as linked speech bubbles (#132054)
* feat(ui): render cross-session messages as linked speech bubbles
Messages delivered by sessions_send now render in the Control UI as
left-aligned speech bubbles with a forward glyph, a clickable titled
source-session chip (existing session-link titler, hovercard, and
navigation attach by selector), and a stable per-source-session tint.
The gateway display projection emits a structured senderSession
{sessionKey, agentId} from the same derivation that builds the legacy
senderLabel, with a prompt-prefix fallback for legacy transcripts.
Provenance repairs in the same change:
- sessions_send active-run steering now persists the structured
inter_session provenance via the user-turn transcript recorder
(previously only the text envelope survived), and the Codex
app-server steering path commits recorder-bearing internal items.
- worker.sessions.send now records the source channel.
- assistant replies after a forwarded turn no longer show a stale
'Replying to' attribution naming the last human participant.
Forwarded groups split and cache by source session; dedup signatures
include the source so distinct senders never collapse.
* test: drop duplicate temp-dir tracker introduced by rebase
* style: format merged class list
* test: teach sibling projection and contrast suites the forwarded surface
server-methods projection fixtures now expect the structured senderSession
field, and the WCAG contrast reader follows the tint rule's :is(.user,
.chat-group--forwarded) selector, covering the forwarded bubble surface.
* fix(copilot): persist inter-session provenance through active steering
Copilot's ordinary steering branch dropped the sessions_send transcript
recorder: the SDK event bridge persisted its own user row without
provenance, so steered cross-session messages could not render as
forwarded bubbles. session.send now routes through the journal's
sendSdkUser seam, which gates SDK user events behind the messageId
binding (safe when the event beats the send response), stamps the
recorder's provenance onto the SDK-built row, and satisfies the
recorder via runtime-persisted marks instead of a duplicate write.
Suppressed writes mark the recorder blocked so waitForTranscriptCommit
receipts stay honest. Sibling sweep: Codex app-server already persists
recorder-bearing items; no other runtime persists an SDK-built user row
on an active-steering path.
* perf(ui): keep forwarded-chip render inside the startup JS budget
The keyed directive pulled lit/directives/keyed into the boot graph for a
remount that cannot occur: messages are immutable and grouping splits on
senderSession, so a changed source always produces a new group key and a
fresh anchor. Render the chip directly and narrow the test to the real
protected behavior (titled chip survives re-renders). Startup JS returns
to 346,695 B, inside the committed baseline's growth allowance.
* fix(ui): keep non-navigable legacy source keys as plain text
The titler, hovercard, and click handlers all reject keys without the
agent: prefix, so rendering one as a focusable session chip produced a
link that cannot open, title, or hover anything. Only parseable agent
session keys become chips; other persisted source keys stay readable
plain text in the attribution row.
* style: format merged dedup signature
* refactor: split capacity-limit test files, duplicate collapse, and ui shards
PR additions landed on surfaces parked exactly at their caps. Split the
forwarded/tool-details projection suites and sender-label/sender-session
normalizer suites out of their 1000-line test files, extract the
sequential-duplicate-collapse concept from chat-thread-items (706>700)
into chat-thread-duplicates, and give ui/src/e2e its own tsgo shard so
ui-pages-e2e returns under the 720-root memory bound. Pure moves; no
caps or baselines changed.
* fix: drop duplicate ui-e2e shard after main landed the same split
* refactor: split worker-session-tool executor suites and near-cap prod modules
Cap sweep for the branch: worker-session-tool-executor.test.ts (1007>1000)
splits into a send-delivery suite plus shared test-support scaffolding;
the executor's send path and outcome-unknown error move to their concept
owners; the Copilot transcript journal sheds its replay bookkeeping into
attempt-transcript-replay. Pure moves, no caps or baselines changed.
* perf(ui): fit forwarded styling into the boot CSS budget
The boot CSS chunk sat at 99.94% of its flat 53.0 KiB cap on main, so
the forwarded-bubble styles tripped it. Consolidate the attribution row
onto the existing chat-reply-attribution class (the two rows never
coexist in a group), drop redundant declarations the base bubble already
carries, delete two verified-dead selectors, and keep the per-session
tint dark-only. The exhausted cap moves to 53.5 KiB with operator
approval (2026-08-29).
* style: format dead-css deletion sites
* test: drop projection tool-detail suite duplicated by main's tool-result split
Copy file name to clipboardExpand all lines: docs/web/control-ui.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -809,6 +809,8 @@ Absolute external `http(s)` embed URLs stay blocked by default. To let `[embed u
809
809
810
810
The chat transcript uses a centered readable frame aligned with the composer. Assistant and tool output stay left-aligned while your own messages stay right-aligned inside that frame. In multi-user sessions (for example a group chat relayed from a channel plugin), messages from other attributed participants render left-aligned with the author's avatar, name, and a stable per-identity color, so only the signed-in viewer's messages read as "mine". When two or more attributed participants are present, assistant replies carry a small "Replying to name" marker naming the participant whose message triggered the turn. System entries such as local slash-command output render as centered notice rows without an avatar.
811
811
812
+
Messages forwarded by `sessions_send` render as left-aligned speech bubbles with a forward icon and a source-session chip above the message. Select the chip to open the source session; hover it to see session progress. Each source session has a stable bubble tint. Forwarded messages without a known source session show the source agent when available, or a generic forwarded-message label. The receiving agent's own replies remain flat text.
813
+
812
814
## Chat message width
813
815
814
816
Wide-monitor users can override the transcript width under **Settings → Chat →
0 commit comments