Skip to content

improve(chat): make child-session waits easier to follow - #2422

Merged
bkudiess merged 10 commits into
openclaw:mainfrom
bkudiess:bkudiess-subagent-status-parity
Dec 1, 2026
Merged

bkudiess merged 10 commits into
openclaw:mainfrom
bkudiess:bkudiess-subagent-status-parity

Conversation

@bkudiess

@bkudiess bkudiess commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 262a860288ffecf7f53ae7beb3389ab9527da016

Dimension Assessment Rationale
Change confidence 9.5/10 ↑ Local closeout on this head passed: build, Shared 6,188 passed and 0 failed, Tray 7,189 passed and 0 failed, UI test project compiled with 0 warnings.
↑ CI run 46580181857 passed every executed job on the merge with main 0d9aba1, including the chat layout shard, accessibility tests and the new-and-changed test soak.
↑ Native keyboard proof on a real Windows desktop passed 10 of 10 repeats, each executing all 6 selected tests; the same tests failed 10 of 10 before the tab-stop fix.
↑ Rendered roster captured at 480 and 1100 widths on this head.
↑ Independent review of the final delta found no issues.
↓ Main has since advanced to 416f678. Its one setup-autostart commit touches no file in this PR and merges cleanly, but CI has not run that merge.
↓ Screen-reader traversal and a live installed-Gateway handoff remain unverified.

What Problem This Solves

When a conversation yields to child sessions, Companion's generic waiting indicator does not explain which work is running or needs an answer. The Web interface makes that handoff easier to follow.

User Impact

User impact: the inline wait names known current child sessions, puts answer and approval requests first, and offers links to children that can still be opened. Keyboard users can Tab through those links in the order shown. Wait duration is separate from the parent's work and token totals. The Workspace sidebar and separate Subagents tab keep their existing behavior.

Not verified: screen-reader traversal and a live handoff against an installed Gateway.

Why This Change Was Made

The existing chat projection now identifies the current confirmed handoff using its run, call and timestamp provenance. It renders a Web-like roster from the current session snapshot without fetching a second child list or claiming an exhaustive count. Missing identity or timing leaves the generic wait instead of guessing. Navigation rechecks the current selection and child eligibility when activated.

The reconciliation with main preserves its activity facts, confirmed request-level usage aggregation and session-seeded working phrases. Handoff timing and child attention remain separate.

Native proof showed forward Tab stopping before the roster links. The decorative working animation was focusable by default and sat ahead of the links. It is now not a tab stop, and a non-focusable scope keeps the links' display-order tab indexes local to the roster.

Evidence

On a real Windows desktop, the roster rendered attention-first rows with working links, and keyboard Tab reached each link in visible order in 10 of 10 repeated runs. Before the tab-stop fix, the same proof failed 10 of 10 at two earlier heads.

Managed coverage includes handoff identity and history recovery, child status ordering, safe links, the interaction with main's activity and usage changes, and an assertion that the working animation is not a tab stop. The full Tray suite passed on this head, and CI's accessibility job executed that assertion.

The comparison follows the pinned Web handoff projection. It is source-contract evidence, not proof of the installed Gateway version. Windows still lacks Web's separate agentStatus.attention projection, and a partial child snapshot cannot establish that every child has finished.

Independent review

The earlier implementation received a Hanselman review and fixes. Two independent rubber-duck reviewers (claude-opus-5.5 and gpt-6-astra) then found no new source-level issues in the reconciliation with main at 2d1ec6a5. Both checked preservation of activity facts, handoff timing, stale-wait rejection, aggregate request usage, working-phrase identity and navigation guards.

A further rubber-duck review of the delta since 2d1ec6a5 (approval badge resources, tab scope and the working-animation tab-stop fix) found no P0–P3 issues. It suggested reusing the motion host for tab scoping; that was declined so keyboard order does not depend on a motion-owned type. Reviewers did not execute tests.

Required proof pools

  • windows-winui-interactive: inline chat status, child links, layout and keyboard order changed. Verified on the current head by native desktop proof (see Real behavior proof). Screen-reader traversal is not verified.

Validation

Candidate: 262a860288ffecf7f53ae7beb3389ab9527da016, tree 8fa72e5bf22062b61ec677c186e8a40e4a81f9ab, clean, merge-base with main ed710e048aef96d12879a56f50fbaebdc376fce9. Local commands ran on Windows x64 with isolated test data. No native UI test ran on the local desktop.

Command Result
.\build.ps1 Passed. Proof-pool validation checked 7 named pools; documentation validation checked 75 Markdown files.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore Passed: 6,188, failed: 0, skipped: 29, total: 6,217; 4 m 13 s.
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore Passed: 7,189, failed: 0, skipped: 0; 3 m 8 s.
dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-x64 Build succeeded: 0 warnings, 0 errors. Compilation only.
git diff --check Clean.
CI run 46580181857 Success on the merge with main 0d9aba1e. All executed jobs passed, including the chat layout shard (280 total, 261 passed, 19 skipped; native keyboard cases skip in CI by design) and UI, functional and accessibility tests, which executed the tab-stop assertion. Release and packaging jobs were skipped as usual for a PR.

Main has since advanced to 416f678aff517ed46d81107f645730dedcaa3121 with #1963 (fix(setup): autostart from setup opens the window at logon). It changes four setup and startup files outside this diff, and git merge-tree reports no conflict. CI has not run that merge.

Earlier attempts and environment corrections

Native keyboard proof failed 0 of 10 at c72354193ba6d24ca498fb908c10a0f9a1cdbc96 and again at e1a95eeed37bc49cf200de3b4e11c2c0e2c3a526 after adding the tab scope alone, each time with "Timed out waiting for keyboard traversal to question". The working-animation tab-stop fix in 262a8602 changed that to 10 of 10.

At the earlier 2d1ec6a5 candidate, the first merged-tree UI compile failed with unresolved Win2D types because the no-restore build used assets from before main added Microsoft.Graphics.Win2D 1.4.0; a targeted restore fixed it. An initial Shared invocation with a slash-normalized OPENCLAW_REPO_ROOT had 45 failures; the canonical Windows path passed without source changes. Those attempts are not counted as passes.

Real behavior proof

Native proof ran on 262a860288ffecf7f53ae7beb3389ab9527da016 (clean) on the Crabbox static SSH host DESKTOP-RTDGBVO: Windows ARM64, 200% scale, interactive desktop, ARM64 Debug UI test build, using the shared desktop lock C:\oc-native\native-desktop.lock. Provider ssh; static hosts have no lease ID.

Runner: skill-scripts\Invoke-NativeUiTest.ps1 with filter FullyQualifiedName~ReactorChatLayoutProofTests.SubagentWait_|FullyQualifiedName~ReactorChatLayoutProofTests.ProductionRoot_ProjectsProviderHistoryAndChildQuestionIntoInlineWait|FullyQualifiedName~ReactorChatLayoutProofTests.ToolRowSubagentLink_RechecksEligibilityWhenActivated (6 tests).

Lane Arguments Result
Keyboard Repeat = 10; KeyboardProof = $true; NoFixture = $true SUMMARY: 10/10 passed (HEAD=262a860288ffecf7f53ae7beb3389ab9527da016 dirty=0). Every run: 6 executed, 6 passed, 0 failed, 0 not executed. SubagentWait_NativeTabTraversalFollowsVisibleOrder(width: 480) passed in all 10.
Visual Repeat = 1; KeyboardProof = $true; NoFixture = $true; OPENCLAW_VISUAL_TEST = 1 1 of 1 passed; 6 of 6 tests executed and passed; 3 captures.

The roster below uses test fixture children. Answer and approval requests are listed first with accent status text, running and background work follow, and finished children are not links.

Inline handoff roster at 480 width

Inline handoff roster at 1100 width

Capture SHA256: 480 width 224c4016a338db36affbbb73b51c572c1ab406903230c92ca3855062efdc3a67, 1100 width c9dfe6eb2aa6e702c8a2b84c1d37ea639c1343c0d0c361cc0f257e24ec29de10. The images are hosted on fork commit 7fc1787b52d5f566db1f88a404d5a10f52e0a48f, which also records their source.

The production-root test asserts through UI Automation that the wait reads "Waiting for subagents" and the child link reports "Waiting for your answer". Its capture is taken after activating that link, so it shows the selected worker's pending question rather than the roster.

Not verified: screen-reader traversal, a live handoff against an installed Gateway, and native proof on the merge with main.

bkudiess and others added 5 commits November 30, 2026 10:43
Show handoff wait and child progress states consistently with web.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Retain activity facts, request usage, and session-seeded working phrases alongside the reviewed inline handoff roster. Add focused merge-interaction regression coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@clawsweeper

clawsweeper Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

🦞👀
Pull request received.

ClawSweeper review complete

ClawSweeper finished reviewing this revision.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Dec 1, 2026
@clawsweeper

clawsweeper Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codex review: passed.

What this changes

This PR adds an inline roster of known child sessions, prioritizes requests needing attention, and separates handoff wait duration from parent work totals.

Example: A parent conversation yields while “Choose the review scope” needs an answer and “Prepare the report” runs in the background.

  • Before: Chat shows a generic waiting indicator.
  • After: The inline roster names both children, places the answer request first, and provides links to eligible sessions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A coherent enhancement with substantial owner-level coverage and no definite source finding; executed native behavior and the failed CI lane remain unconfirmed.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is exempt from the contributor proof gate; its managed test receipts support timing and reconciliation, while the body explicitly leaves native rendering, accessibility traversal, and installed-Gateway behavior unverified.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users cannot tell which child work a yielded conversation is waiting for or which child needs their answer.
Reason: The maintainer-authored direction provides useful task visibility through existing owners, with documented limits rather than a claim of exhaustive Web parity.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored draft open: it adds useful child-handoff visibility absent from main, and source review found no definite introduced defect.

Reviewed head: 2d1ec6a5fc15d3ffb62e341ed0691d49310e0fee

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway session rows, tool events, transcript history, questions, and approvals enter the existing chat state and projection owners; Reactor renders the resulting handoff status and guarded session links.

flowchart LR
  A[Gateway sessions and events] --> B[Gateway client]
  B --> C[Chat state and history]
  D[Questions and approvals] --> C
  C --> E[Handoff projection]
  E --> F[Reactor inline roster]
  F --> G[Session selection]
Loading

Technical review

Best possible solution:

Show known children only for a confirmed current handoff, preserve generic waiting when facts are missing, and retain the existing session and history owners.

Do we have a high-confidence way to reproduce the issue?

This is a presentation enhancement: main's source establishes the generic waiting behavior, while the added fixtures exercise the proposed roster without demonstrating a live installed-Gateway run.

Is this the best way to solve the issue?

The approach fits the existing architecture: it derives the roster from current snapshots, preserves exact call/run reconciliation, avoids separate discovery, and keeps incomplete information explicit.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against caa94d52ad23.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Introduced change inspected: The pinned merge-base-to-head diff adds the handoff projection, timing provenance, renderer, localized labels, and focused coverage. The verified test merge preserves main's separate GatewayService changes. (src/OpenClaw.Tray.WinUI/Chat/ChatSubagentPresentation.cs:50, 2d1ec6a5fc15)
  • Main retains the generic wait: Current main has the Subagents pill/tab classifier but lacks ProjectWait and its inline child roster, so the central enhancement is not already implemented. (src/OpenClaw.Tray.WinUI/Chat/ChatSubagentPresentation.cs:38, caa94d52ad23)
  • Existing-state compatibility: Handoff timing properties are JsonIgnore runtime metadata; the existing tool-cache and LastChatState storage shapes are unchanged. New session fields are optional observations, with omission handling and a generic-wait fallback. (src/OpenClaw.Tray.WinUI/Chat/ChatEntryMetadata.cs:116, 2d1ec6a5fc15)
  • Validation receipts and limits: The full supplied PR body reports a successful Windows build, Shared tests with 6,188 passed and 29 skipped, Tray tests with 7,187 passed, and 1,128 focused passes. Native UI tests were compiled rather than executed locally. No builds or tests were run during this read-only review. (2d1ec6a5fc15)
  • Failed CI remains unattributed: The UI, functional, and accessibility job failed in Run Tray UI Tests and Run Accessibility Tests. Annotations contain only exit-code failures; downloading detailed logs was blocked at the Azure Blob redirect, so neither diff causation nor an external cause is established. (2d1ec6a5fc15)
  • Policy and inspection boundaries: Read the complete root, documentation, and WinUI AGENTS files and applied the relevant handoff, test-audit, proof, documentation, and simplification guidance. Maintainer notes are absent, the shared autoreview installation is missing, and winapp is unavailable. No helper or second reviewer ran, as requested; the checkout remained clean. (AGENTS.md:1, 2d1ec6a5fc15)

Likely related people:

  • Scott Hanselman: Raw commit 203740b adds src/OpenClaw.Tray.WinUI/Chat/ChatHistoryState.cs:392 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 203740b0f1fb; files: src/OpenClaw.Tray.WinUI/Chat/ChatHistoryState.cs)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 30, 2026, 8:45 PM ET / December 1, 2026, 01:45 UTC.

bkudiess and others added 5 commits November 30, 2026 18:05
…lipsis

Main changed Chat_Run_Approval to the run-progress phrase 'Waiting for approval...'. The subagent status badge reused that key, so the inline roster and Subagents tab showed a stray ellipsis next to 'Waiting for your answer'. Give the badge its own Chat_Subagents_AwaitingApproval key in every locale.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
WinUI scopes TabIndex only within a Control. A Panel's TabFocusNavigation
leaves its descendants' indices compared with neighboring default-index
controls, so Tab skipped the roster links (RTX 1 native proof, 10/10 runs).
Wrap the rows in a non-tab-stop, UIA-raw ContentControl and assert that
structure in the always-on test.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The run-progress claw and pulse indicators derive from Control and kept the
default IsTabStop, so forward Tab from the control before a handoff wait
stopped on the invisible decorative glyph instead of the first child link.
Mark them as non-tab-stops and assert that the roster's only tab stops are
its session links.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@bkudiess
bkudiess marked this pull request as ready for review December 1, 2026 07:08
@bkudiess
bkudiess merged commit 9f802c6 into openclaw:main Dec 1, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal priority bug or improvement with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant