Skip to content

feat(chat): subagents pill and web-style provider review replace bottom bars - #2143

Merged
bkudiess merged 11 commits into
openclaw:mainfrom
bkudiess:bkudiess-chat-subagent-bar
Nov 13, 2026
Merged

bkudiess merged 11 commits into
openclaw:mainfrom
bkudiess:bkudiess-chat-subagent-bar

Conversation

@bkudiess

@bkudiess bkudiess commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

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.md records the pill, list and provider-review owners and closes the old bottom expander and toggle. docs/CHAT_VISUAL_DESIGN.md and DESIGN.md describe the visuals. All new copy is in the six .resw locales.

Evidence

  • Native private-desktop proofs (subagents, provider review, tool-details tabs, conversation feedback): Light 22/22 and Dark 22/22. The tests also check that small spinners are not cropped, spin slower, the pill border stays neutral, and the pill hides once everything finishes.
  • Full ReactorChatLayoutProofTests in 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.
  • Reading-position regression: before the fix, closing the only Subagents tab moved the transcript from offset 0 to ~1,400 px at 480 and 1100 px. After the fix, all four close cases (only tab at 480/1100, second tab, selected first tab) keep offset 0 and focus the opener or remaining tab. An earlier frame-window guard failed this case 2 times in 13 runs; the focus-based guard passed 80/80 repeated case runs plus the full focused set.
  • Reviews: dual-model Hanselman review of the feature (all findings fixed), plus two independent rubber-duck reviews of the follow-up fixes; their findings (unbounded reveal guard, stale tail exemption, stale High Contrast state, hidden opener) are fixed. The final focus-based reveal guard in cf31372f has not had a separate independent review.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required 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 with main at 49813a63; 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 a test-timing-exception reason.
  • 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.ps1 running dotnet test tests\OpenClaw.Tray.UITests --filter "ReactorChatLayoutProofTests.Subagents_|ReactorChatLayoutProofTests.ProviderReview_|DetailsSlot_|ConversationFeedback_ThinkingToolReviewsAndHistoryRetainComposerWithoutSearch" with OPENCLAW_VISUAL_TEST=1: Light 22/22, Dark 22/22; the four close-tab cases repeated 8 more times in alternating themes: 32/32.
  • Negative control (on 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.
  • Full 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

  • Environment tested: Windows 11 ARM64, isolated private desktop, isolated tray profile, fixture chat provider (no live Gateway).
  • PR head or commit tested: source committed as 93539f5b (tests ran on the identical uncommitted tree, then committed with no further edits).
  • Exact steps or command run: native ReactorChatLayoutProofTests proofs 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.
  • Evidence after fix: Light 22/22 and Dark 22/22 TRX results with native captures of the pill, Subagents list (running and finished), shared tabs, and the provider-review card at 480 and 1100 px. Captures are kept locally and can be attached on request.
  • Observed result: pill shows "Subagents" plus a lighter total; tab lists Running/Finished rows; closing tabs keeps the transcript at the reader's place with focus on the opener or remaining tab; the provider-review dialog does not reopen after reconnect.
  • Screenshot or artifact links verified? (Yes/No/N/A): N/A (captures are local only)
  • Not verified or blocked: live Gateway subagent runs and live provider-review events; macOS; Narrator walkthrough; dialog popups are not included in screenshots on this host.

Security Impact

  • New permissions or capabilities? (Yes/No): No
  • Secrets or tokens handling changed? (Yes/No): No
  • New or changed network calls? (Yes/No): No
  • Command or tool execution surface changed? (Yes/No): No
  • Data access scope changed? (Yes/No): No
  • If any answer is Yes, explain the risk and mitigation:

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes
  • Config or environment changes? (Yes/No): No
  • Migration needed? (Yes/No): No
  • If yes, list the exact upgrade steps:

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

bkudiess and others added 5 commits November 10, 2026 16:23
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]>
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal priority bug or improvement with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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 Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: Their activity appears in an expander below the transcript.
  • After: A Subagents pill shows 2 and opens Running and Finished sections beside the conversation.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Source review is favorable, but the supplied real-behavior evidence is not inspectable.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Bottom activity bars compete with the conversation and provide a less useful view of subagent status and provider findings.
Reason: The collaborator-authored direction provides a compact status entry point and reuses existing panels, with explicitly bounded functionality.

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
Reviewed head: e9073dc3d50b46e4d0107ac2a8fde3acafff8e81

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Provide inspectable current-head Companion evidence showing the pill/list, shared-tab closing at 480 and 1100 DIPs, and provider-review dialog; mounted-test counts alone do not establish the shipped entry point.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Child activity and provider-review presentation changes intended behavior with a stated reason (243f9cf: Expose useful child/provider feedback while aligning native conversation presentation with web chat.)
  • Conversation-panel tabs and focus keeps the original intent (0bd9348: Inspect tool details beside a retained conversation without losing drafts or reader state.)
  • Transcript anchoring and navigation keeps the original intent (ca8fb4a: Preserve native bottom anchoring and reject stale queued navigation; this PR adds a bounded response to the reported tab-close displacement.)
  • Run timing reset keeps the original intent (243f9cf: Prevent prior-run duration metadata from carrying into a different run; clearing StartedAt extends that existing reset.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Karen: Raw commit ca8fb4a adds src/OpenClaw.Tray.WinUI/Chat/ReactorItemsViewScrollController.cs:88 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ca8fb4a404ad; files: src/OpenClaw.Tray.WinUI/Chat/ReactorItemsViewScrollController.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 P2: This is a bounded chat usability feature without an established urgent regression.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab 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:

  • P2: This is a bounded chat usability feature without an established urgent regression.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab 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 follows the weaker of proof and patch quality; ✨ 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 12, 2026, 11:16 PM ET / November 13, 2026, 04:16 UTC.

bkudiess and others added 6 commits November 12, 2026 21:24
- 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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