Repository navigation
feat(ui): show yield acknowledgments as agent text and list waited-on sessions - #185585
Conversation
A sessions_yield acknowledgment is the agent speaking, but webchat showed it as a centered runtime notice and dropped it once the run resumed. It now renders as assistant text in the run that handed off and stays after resume. A message wait without an acknowledgment keeps the "Waiting for a message" notice. While a handoff waits on child sessions, the working line names them: one child reads "Waiting on <name> · <elapsed>"; several get a disclosure with each child's status in words, attention first. After resume, a "Resumed · <duration> later · N sessions" rule under the acknowledgment expands to the same list. "Needs your input" is the child's existing agent attention status; no Gateway fields were added. The sessions_yield acknowledgment description now asks for a brief waiting status and keeps answers in normal assistant text. Co-authored-by: jalehman <[email protected]>
Child names on a handoff's waiting line, its session list, and the Resumed list are now links to each child's session, built with the shared sessionNavigationTarget route owner. Plain clicks open the session in place through the pane's session opener; Cmd/Ctrl/middle-click keep native link behavior for a new tab. Children missing from the pane's access-scoped child rows, or panes that cannot open sessions, show the name as plain text. The single-child name previously opened the Subagents panel; it now opens the child session. The panel stays reachable from the running count and the layout menu. Both session lists share one width so status chips align. Co-authored-by: jalehman <[email protected]>
The Resumed rule now waits, like the waiting line, until the pane's own child query has answered with no covering read outstanding. Rows seeded from the sidebar can be a partial set, so naming or linking one could point at the wrong session; until then the rule shows the wait time alone. The roster render key now changes on the partial-to-complete transition so settled rows pick up the list. Co-authored-by: jalehman <[email protected]>
Co-authored-by: jalehman <[email protected]>
… sessions Worked on by: - @jalehman Co-authored-by: jalehman <[email protected]> OpenClaw-Publication: 3327ebbe-0d27-44ac-8a07-15c3df193f7a
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
…/yield-ack-session-list # Conflicts: # test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/discord-group-codex-message-tool.md.diff # test/fixtures/agents/prompt-snapshots/codex-runtime-happy-path/telegram-direct-codex-message-tool.md
Worked on by: - @jalehman Co-authored-by: jalehman <[email protected]> OpenClaw-Publication: fa8c61d0-5810-46d7-a77f-21f629a4ab7d
|
Codex review: needs maintainer review before merge. What this changesThis PR retains yield acknowledgments as assistant messages and adds linked child-session lists while waiting and after resuming. Example: An agent delegates dependency updates to three child sessions.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it delivers an approved chat presentation improvement that current main lacks, and the five earlier findings are resolved without a new blocking defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI projects confirmed yield results and access-scoped child-session rows into chat messages, waiting indicators, and links through the existing session-navigation owner. flowchart TD
A[Confirmed yield result] --> B[Transcript projection]
C[Access scoped child roster] --> D[Handoff session projection]
B --> E[Assistant acknowledgment]
D --> F[Waiting and resumed lists]
E --> F
F --> G[Existing session navigation]
Technical reviewBest possible solution: Retain the existing transcript, child-roster, and navigation owners while coordinating deduplication if the separate persistence PR lands. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the temporary-notice behavior, and inspected before/after screenshots demonstrate the changed waiting presentation; no target code was executed during this review. Is this the best way to solve the issue? The change uses the existing yield projection and scoped roster rather than adding persisted state or another lifecycle owner, and its shared list component serves both waiting and resumed views. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a4a8f632da0a. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +566, Tests +632, Docs +15. Total +1213 across 22 files. Added test files: 1. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 27, 2026, 9:02 AM ET / 13:02 UTC (Revision 2). |
- Move handoff list styles into the chat working-indicator sheet and reuse existing status/chevron classes, so chat boot keeps three CSS requests. Status dots are gone; status stays in words. - Drop the class-only cursor rule; the names are anchors already. - Update the pane run-status tests for named handoff waits. - List a resumed handoff's children by their current run start, so a child restarted after the resume is not credited with the handoff. - Re-render resumed lists when a listed child's name or attention changes. Co-authored-by: jalehman <[email protected]>
Worked on by: - @jalehman Co-authored-by: jalehman <[email protected]> OpenClaw-Publication: be3691d4-6f16-4d3b-9273-8161b8bb86b3
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Related: #164190, #165378, #173938, #162272
What Problem This Solves
A
sessions_yieldacknowledgment shows in Control UI chat as a centered, muted system notice (other channels deliver it as a normal reply), disappears once the agent resumes, and the waiting line does not say which sessions the agent is waiting on.User Impact
User impact: the agent's acknowledgment reads as its own message and stays in the conversation after it resumes; while it waits, the line names the child session (or lists several, with status in words and attention first, each linked to its session); a "Resumed · 9m 32s later · 3 sessions" rule marks where it picked up. A message wait with no acknowledgment keeps the "Waiting for a message" notice. No Gateway, protocol or config change.
Known limitation: a child paused by its own
sessions_yield(awaiting a continuation) reads Done, because session rows don't carry that paused state; Needs your input comes from the child's own attention status, the same signal the sidebar shows. A paused field is tracked separately.Why This Change Was Made
The acknowledgment already exists only as the confirmed
sessions_yieldresult, so the yield projection now adds it as assistant text in the run that handed off, instead of a notice that is dropped on resume. Only the public acknowledgment the result echoes is used; the private continuationmessagestays hidden. Webchat stores no separate assistant copy for agent runs, so nothing renders twice.The waiting line and resume rule read children from the pane's own access-scoped child query and name nobody until that query is complete (rows seeded from the sidebar can be a partial set). Names link through the shared session route helper; children the pane can't open, or panes without a session opener, show plain text.
This partly undoes #165378. That PR removed the "Handed off"/"Resumed" markers and named only subagents. This change brings back a "Resumed" rule, but only beneath a spoken acknowledgment, inline in that reply, carrying the wait duration and an expandable child list; and it names visible non-subagent child sessions, only once the roster is hydrated. The reason: an acknowledgment is the agent speaking, and once it is kept after resume, the reader needs to see where the wait ended and which sessions did the work. @shakkernerd, since #165378 was your deliberate call, a review of that tradeoff would be appreciated.
Interaction with #162272: that open PR persists the acknowledgment as a separate assistant transcript row. If both land as written, the acknowledgment would show twice; whichever lands second needs to drop the persisted copy or dedupe against it.
The
sessions_yieldacknowledgmentparameter now describes a brief waiting status shown to the user and asks for answers in normal assistant text (prompt snapshots regenerated).Contributor credit: @jalehman requested and approved this design.
Work sessions
Evidence
Real Control UI production build with a mocked Gateway and synthetic content, light theme, 1280 wide.
Short acknowledgment, one child waiting
Before:

After:

Long acknowledgment, three children waiting (one needs input, one done)
Before:

After:

Resumed (list expanded)
Before:

After:

ui/src/e2e/chat-yield-acknowledgment.e2e.test.ts(3 scenarios) fails onmainand passes here; it also clicks a listed child and asserts navigation to its session.chat-empty-assistant,chat-subagent-waitingpass.tsgo:ui,tsgo:test:ui,tsgo:core, oxlint, stylelint, oxfmt,check:control-ui-controllers,ui:i18n:verify,prompt:snapshots:check,sessions-yield-tooltests,git diff --checkpass. AutoReview (P1) scoped-clean on each commit.control-ui-performancepasses on this head without a budget change: run 40467006497 measures 307,160 B gzip / 1,591,165 B raw against the 307,769 B / 1,597,581 B ceilings, becausemainhas since reduced total CSS.Worked on by