Repository navigation
improve: match the web's "Worked for" summary in chat - #2308
Conversation
The completed-work header now follows the current web Control UI: no leading list icon, the label first, a trailing chevron shown only on hover or keyboard focus (its slot is always reserved so the label never moves or re-trims), and a thin divider under the collapsed header. When expanded, the body's existing separator takes the divider's place, so the line is never doubled. Running activity groups and ordinary tool rows are unchanged. 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 the completed-work header’s leading icon with a trailing chevron and adds a divider beneath the collapsed header. Example: A dashboard conversation finishes two tool calls in 37 seconds.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this collaborator-authored presentation change is absent from main and remains narrowly scoped, although its claim of matching the current web design is inaccurate. Priority: P3 Before mergeNone. Findings
Tests
Agent review detailsHow this fits togetherThe native chat timeline projects completed dashboard work into activity rows, which ToolCallCardRenderer turns into WinUI disclosures above preserved answers. flowchart TD
A[Chat transcript] --> B[Activity projection]
B --> C[Completed work row]
C --> D[ToolCallCardRenderer]
D --> E[Header and disclosure]
E --> F[Expanded tool details]
Technical reviewBest possible solution: Keep presentation in the existing renderer and describe the chosen native differences from the pinned web design accurately. Do we have a high-confidence way to reproduce the issue? This is a presentation preference rather than a reported malfunction; source inspection establishes the old layout, and supplied screenshots establish the proposed rendering. Is this the best way to solve the issue? The existing renderer is the appropriate owner, and the focused header builder and reused divider introduce no unnecessary architecture; the web reference does not support claiming exact parity. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 64727b8dbd38. 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. Review metrics
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 Reviewed November 18, 2026, 2:21 AM ET / 07:21 UTC. |
What Problem This Solves
In a dashboard chat, Companion folds an agent's finished tool work into a "Worked for 37s" summary. That summary still used an older look: a list icon in front of the label and no line separating it from the answer. The current web Control UI shows the label first, a trailing chevron and a divider. The two clients looked different for the same conversation.
User Impact
User impact: the "Worked for" summary in Companion chat now looks like the current web Control UI. The label comes first, a chevron appears after it when you hover or tab to it, and a thin line separates it from the answer. Running activity and individual tool rows look the same as before.
Why This Change Was Made
Upstream web chat simplified this header: it removed the failed-step count (openclaw/openclaw@210b3648), shortened the duration to
38s(openclaw/openclaw@d98b3078), and settled on a single "Worked for" line with a trailing chevron (openclaw/openclaw@5d89656a,ui/src/pages/chat/components/chat-work-group-summary.tsx). Companion already used the short duration and no failed count, so only the presentation needed to change:Evidence
Offscreen captures from the real WinUI/Reactor chat surface at 560 DIP, light theme, built from this branch:
Focused UI tests now check the header contract: no leading glyph, label then chevron, and the chevron hidden at rest but keeping its slot. They also check that the same disclosure control is kept across collapsed, hover, expanded and collapsed again, and that exactly one divider shows in each state. The alignment test finds the Worked row by its automation ID, so it works in every shipped language. It also checks label and chevron sizes and that the chevron doesn't scale with text size.
Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: the chat "Worked for" header presentation changed. Interactive pointer-hover, dark-theme and high-contrast proof in the isolated app is still to be scheduled.Validation
The full build, the required Shared and Tray suites, and the focused chat UI tests all passed on the committed source. Commands ran on an ARM64 host; the source matched commit
6a1fc3bfc(same diff, SHA-2561F4F949A…D88B)../build.ps1: all 5 projects built.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 5910 passed, 29 skipped, 0 failed.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 6755 passed, 0 failed.dotnet test ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj -r win-arm64 --filter "FullyQualifiedName~ReactorToolActivityProofTests|FullyQualifiedName~CompletedWork_|FullyQualifiedName~ExpandedWork_|FullyQualifiedName~LiveWork_|FullyQualifiedName~MessageFooters_|FullyQualifiedName~NestedMessageFooters": 43 passed, 1 skipped (existing skip), 0 failed.git diff --check: clean.Reviews: dual-model adversarial review (claude-opus-5.5 and gpt-6-astra) of the first revision found no product bugs. All four test and layout follow-ups it raised are included. An independent rubber-duck review of the final diff found no issues.
Real Behavior Proof
win-arm64build. Offscreen real-runtime Reactor chat surface, plus the isolated app against the repository fixture Gateway (synthetic, read-only, disposable profile).6a1fc3bfcsource (validated as the identical uncommitted diff before committing).runtimeMs37000, in the collapsed, focused and expanded states. Separately launched the isolated app withOpenClaw.GatewayFixtureHostand opened a synthetic dashboard conversation with saved tool work.Activity: Worked for 37s. 2 tools. Collapsed.for the completed-work disclosure.Yes/No/N/A): Yeswindows-winui-interactivepool.Security Impact
Yes/No): NoYes/No): NoYes/No): NoYes/No): NoYes/No): NoYes, explain the risk and mitigation: N/ACompatibility and Migration
Yes/No): YesYes/No): NoYes/No): NoReview Conversations