Repository navigation
feat(chat): subagents pill and web-style provider review replace bottom bars - #2143
Conversation
Replace the pinned child activity bar with a read-only list and child transcript. Preserve the parent draft, attachments and reading position across pane navigation and narrow layouts. Co-authored-by: Copilot App <[email protected]>
Merge origin/main at 3d5f142. Reuse its tab strip, resizing, compact presentation and focus ownership for Subagents alongside Tool details. Preserve child selection and parent context across tab switches. Co-authored-by: Copilot App <[email protected]>
- Add a Subagents pill above the composer that opens the shared Subagents tab. - Replace the child detail screen with a Running/Finished status list. - Restyle provider review as the web's paused/stopped warning card. - Share one subagent status projection between the pill and the list. Co-authored-by: Copilot App <[email protected]>
- Redirect automatic focus that reaches the transcript while a tab closes to the next tab or the opener; skip hidden openers inside collapsing expanders. - Reject ItemsView's unfocused reveal of its last current row for a short frame window after the transcript is resized or shown again. - Read High Contrast at render so the pill is not stale after being hidden. - Prove closing the selected first tab, the only tab at 480 and 1100 px. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces bottom-of-chat activity bars with a Subagents pill, shared side-panel tab, and provider-review card with a findings dialog. Example: A conversation has one running subagent and one finished subagent.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this collaborator-authored PR contains distinct chat UI work absent from current main, and source review found no definite introduced defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe native chat UI projects authenticated Gateway session snapshots into status displays and conversation panels without loading child transcripts or issuing continuation commands. flowchart TD
Gateway[Gateway session snapshot] --> Projector[Chat snapshot projector]
Projector --> Root[Native chat root]
Root --> Status[Subagent presentation]
Status --> Pill[Subagents pill]
Status --> Panel[Shared conversation panel]
Root --> Review[Provider review card and dialog]
Technical reviewBest possible solution: Retain the shared panel owner and single status projection while preserving parent drafts, transcript position, and read-only provider-review behavior. Do we have a high-confidence way to reproduce the issue? Current-main source directly establishes the bottom-expander presentation described by the author; runtime behavior was not re-executed during this read-only review. Is this the best way to solve the issue? The change uses existing tab, layout, and lifecycle owners, removes the replaced presentation, and adds focused components with distinct responsibilities; no unnecessary production layer or definite correctness defect was established. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8d5e27bd8d3a. 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 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 Reviewed November 12, 2026, 11:16 PM ET / November 13, 2026, 04:16 UTC. |
- Keep the pill's border neutral while its tab is selected. - Show the pill only while subagents run or the Subagents tab is open. - Stop cropping small subagent spinners and play them at 0.6x speed. - Show Working status in secondary text instead of accent blue. - Reject ItemsView's unfocused reveal of its last current row whenever focus is outside the transcript, replacing the resize frame window that could expire. Co-authored-by: Copilot App <[email protected]>
… proofs Replace fixed settle cycles with WaitForRenderedConditionAsync on the tab, focus, pill, dialog and scroll state each step depends on, as required by the timing-pattern guard from main. The two absence checks keep one bounded probe each with a test-timing-exception reason. Lower the Conversation baseline after removing two settles. Co-authored-by: Copilot App <[email protected]>
… row visibility The reading-position proof waited for the focused copy button to sit fully inside the viewport, which a partly visible row can never satisfy. Wait for keyboard focus, the current row and a settled scroll instead. Co-authored-by: Copilot App <[email protected]>
What Problem This Solves
Native chat showed subagents and provider reviews as confusing full-width bars at the bottom of the conversation, unlike the web chat.
User Impact
User impact: while subagents are running, a small Subagents pill above the composer shows the total (lighter count, slow spinner) and opens a Subagents tab beside the chat, sharing the tab strip with Tool details. The tab lists Running and Finished subagents with status and elapsed time. Once all subagents finish and the tab is closed, the pill hides; the parent agent reports results in the chat. Provider review now uses the web's yellow warning card with a read-only Review findings dialog. Closing a side-panel tab keeps the reader's place in the transcript.
Not included yet: opening a child transcript, Stop, and the provider-review continue action (still a web-chat action).
Why This Change Was Made
It follows the web chat (
chat-subagents-panel-desktop,ChatProviderReviewNotice) and VS Code's subagents pill, using the existing side-panel tabs instead of another bar. One status projection (ChatSubagentPresentation) feeds both the pill and the list so counts cannot disagree.Closing a tab could move a reader who had scrolled up. Native proof traced two causes: WinUI moving focus to a transcript row when the focused tab item disappeared, and ItemsView re-revealing its last keyboard-focused row after the transcript resized or reappeared. Close now redirects that automatic focus to the next tab or the opener, and the scroll controller rejects ItemsView's unfocused reveal of its last current row whenever focus is outside the transcript.
Ownership and docs
docs/ARCHITECTURE.mdrecords the pill, list and provider-review owners and closes the old bottom expander and toggle.docs/CHAT_VISUAL_DESIGN.mdandDESIGN.mddescribe the visuals. All new copy is in the six.reswlocales.Evidence
ReactorChatLayoutProofTestsin Light: 182 passed. The 6 failures are only "Native capture was not produced" for flyout/popup screenshots on this host; the same 7 cases pass 7/7 with screenshot capture off. 3 cases need the keyboard/pointer driver and did not run.cf31372fhas not had a separate independent review.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: new chat pill, Subagents tab, provider-review card and dialog, and tab-close focus/reading position need current-head visual and accessibility proof in the isolated WinUI app.Validation
Run on
93539f5b(merged withmainat49813a63; Windows ARM64):./build.ps1: passed (all 5 projects; documentation validation passed, 73 files)..\scripts\validate-test-timing-patterns.ps1: passed. The subagent and provider-review proofs wait for observable state; two absence checks keep one bounded probe each with atest-timing-exceptionreason.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: passed 5,849, skipped 29, failed 0.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --filter "FullyQualifiedName!~OpenClawTrayDataDirRedirectsSettingsAwayFromRealAppData": passed 6,434, failed 0. The excluded test reads the real roaming profile.scripts\Invoke-PrivateDesktop.ps1runningdotnet test tests\OpenClaw.Tray.UITests --filter "ReactorChatLayoutProofTests.Subagents_|ReactorChatLayoutProofTests.ProviderReview_|DetailsSlot_|ConversationFeedback_ThinkingToolReviewsAndHistoryRetainComposerWithoutSearch"withOPENCLAW_VISUAL_TEST=1: Light 22/22, Dark 22/22; the four close-tab cases repeated 8 more times in alternating themes: 32/32.9c52afca): with the stale-reveal guard disabled, the reading-position proof fails with jumps of 1,378 px (1100) and 1,467 px (480); with it, 24/24 repeated close cases pass.ReactorChatLayoutProofTests(Light) last ran before the timing-guard test changes: 182 passed, 6 failed only on popup screenshot capture on this host (7/7 pass with capture off), 3 not executed (need keyboard/pointer driver). Not rerun on this head.git diff --check: clean.Real Behavior Proof
93539f5b(tests ran on the identical uncommitted tree, then committed with no further edits).ReactorChatLayoutProofTestsproofs listed under Validation, which open the pill, switch between Subagents and Tool details tabs, close tabs, and open the provider-review findings dialog in Light and Dark.Yes/No/N/A): N/A (captures are local only)Security Impact
Yes/No): NoYes/No): NoYes/No): NoYes/No): NoYes/No): NoYes, explain the risk and mitigation:Compatibility and Migration
Yes/No): YesYes/No): NoYes/No): NoReview Conversations