Repository navigation
improve(chat): make child-session waits easier to follow - #2422
Conversation
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 review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThis 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
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 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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 30, 2026, 8:45 PM ET / December 1, 2026, 01:45 UTC. |
…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>
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
262a860288ffecf7f53ae7beb3389ab9527da016↑ 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.attentionprojection, 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.5andgpt-6-astra) then found no new source-level issues in the reconciliation with main at2d1ec6a5. 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, tree8fa72e5bf22062b61ec677c186e8a40e4a81f9ab, clean, merge-base with mained710e048aef96d12879a56f50fbaebdc376fce9. Local commands ran on Windows x64 with isolated test data. No native UI test ran on the local desktop..\build.ps1dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restoredotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-x64git diff --check0d9aba1e. 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
416f678aff517ed46d81107f645730dedcaa3121with #1963 (fix(setup): autostart from setup opens the window at logon). It changes four setup and startup files outside this diff, andgit merge-treereports no conflict. CI has not run that merge.Earlier attempts and environment corrections
Native keyboard proof failed 0 of 10 at
c72354193ba6d24ca498fb908c10a0f9a1cdbc96and again ate1a95eeed37bc49cf200de3b4e11c2c0e2c3a526after adding the tab scope alone, each time with "Timed out waiting for keyboard traversal to question". The working-animation tab-stop fix in262a8602changed that to 10 of 10.At the earlier
2d1ec6a5candidate, 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-normalizedOPENCLAW_REPO_ROOThad 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 lockC:\oc-native\native-desktop.lock. Providerssh; static hosts have no lease ID.Runner:
skill-scripts\Invoke-NativeUiTest.ps1with filterFullyQualifiedName~ReactorChatLayoutProofTests.SubagentWait_|FullyQualifiedName~ReactorChatLayoutProofTests.ProductionRoot_ProjectsProviderHistoryAndChildQuestionIntoInlineWait|FullyQualifiedName~ReactorChatLayoutProofTests.ToolRowSubagentLink_RechecksEligibilityWhenActivated(6 tests).Repeat = 10; KeyboardProof = $true; NoFixture = $trueSUMMARY: 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.Repeat = 1; KeyboardProof = $true; NoFixture = $true; OPENCLAW_VISUAL_TEST = 1The 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.
Capture SHA256: 480 width
224c4016a338db36affbbb73b51c572c1ab406903230c92ca3855062efdc3a67, 1100 widthc9dfe6eb2aa6e702c8a2b84c1d37ea639c1343c0d0c361cc0f257e24ec29de10. The images are hosted on fork commit7fc1787b52d5f566db1f88a404d5a10f52e0a48f, 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.