Skip to content

improve: match the web's "Worked for" summary in chat - #2308

Merged
bkudiess merged 1 commit into
openclaw:mainfrom
bkudiess:bkudiess-worked-for-header-web-parity
Nov 18, 2026
Merged

bkudiess merged 1 commit into
openclaw:mainfrom
bkudiess:bkudiess-worked-for-header-web-parity

Conversation

@bkudiess

@bkudiess bkudiess commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

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:

  • The leading list icon is removed, so the label starts at the reading edge.
  • The chevron (right when closed, down when open) appears only on hover or keyboard focus, as before. Its space is always reserved, so the label never moves or gets trimmed differently when the chevron appears.
  • A thin divider sits under the closed header. When the summary is open, the existing separator at the top of its body takes that place, so the line is never doubled. The divider sits outside the rounded row, whose corners would otherwise clip its ends.

Evidence

Offscreen captures from the real WinUI/Reactor chat surface at 560 DIP, light theme, built from this branch:

Collapsed Hover or focus Expanded
Worked for 37s, collapsed, with a divider under it Worked for 37s with a trailing right chevron Worked for 37s, 2 tool calls, expanded with a down chevron and a single divider

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

  • 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: 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-256 1F4F949A…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

  • Environment tested: Windows 11 ARM64, Debug win-arm64 build. Offscreen real-runtime Reactor chat surface, plus the isolated app against the repository fixture Gateway (synthetic, read-only, disposable profile).
  • PR head or commit tested: 6a1fc3bfc source (validated as the identical uncommitted diff before committing).
  • Exact steps or command run: captured the chat surface for a dashboard conversation with two completed tool calls and runtimeMs 37000, in the collapsed, focused and expanded states. Separately launched the isolated app with OpenClaw.GatewayFixtureHost and opened a synthetic dashboard conversation with saved tool work.
  • Evidence after fix: the screenshots above. In the live fixture app, UI Automation reported Activity: Worked for 37s. 2 tools. Collapsed. for the completed-work disclosure.
  • Observed result: no leading icon; "Worked for 37s" with a divider under it; a trailing right chevron on focus; "Worked for 37s · 2 tool calls" with a down chevron and a single divider when expanded.
  • Screenshot or artifact links verified? (Yes/No/N/A): Yes
  • Not verified or blocked: real pointer hover (the hover capture uses programmatic focus, which drives the same chevron state). Dark theme and high contrast. A conversation from a real Gateway. These remain for the windows-winui-interactive pool.

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: N/A

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: N/A

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.

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]>
@clawsweeper

clawsweeper Bot commented Nov 18, 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. P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: “Worked for 37s” has a leading list icon and no divider while collapsed.
  • After: The label starts at the reading edge, a trailing chevron appears on hover or focus, and a divider separates the header from the answer.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is focused and has useful native-control coverage, but supplied evidence does not complete the declared interactive acceptance path.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) 1 actionable review finding remain.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: The completed-work header uses an older leading-icon presentation that the author wants to simplify and separate visually from the answer.
Reason: The collaborator-authored PR supplies owner direction for a small native presentation refinement; no additional product approval is needed.

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
Reviewed head: 6a1fc3bfc5791024002fd3489fed044d10cb3e9f

Before merge

None.

Findings

  • [P3] Describe the intentional differences from the referenced web header — docs/CHAT_VISUAL_DESIGN.md:460-465

Tests

  • Missing end-to-end proof: Current-head isolated-app proof of real pointer hover and keyboard expansion in Dark theme and high contrast remains unshown.
Agent review details

How this fits together

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

Technical review

Best 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:

  • [P3] Describe the intentional differences from the referenced web header — docs/CHAT_VISUAL_DESIGN.md:460-465
    The linked web component and the PR’s cited openclaw/openclaw@5d89656 use an always-visible chevron and explicitly remove the divider, with an E2E assertion protecting both choices. These new lines instead describe a hover-only chevron and divider as matching that reference. Correct the visual-contract wording and PR rationale to identify these as native adaptations so future contributors do not use a false parity claim as the design oracle.
    Confidence: 0.99

Overall correctness: patch is correct
Overall confidence: 0.92

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Completed-work header, expansion, and separator changes intended behavior with a stated reason (243f9cf: The earlier conversation-parity work established borderless activity rows, hover/focus disclosures, completed-work grouping, and preserved answers.)
  • Activity typography keeps the original intent (7035e83: The activity-followability change made thinking and tool titles quieter 12px text; this PR retains that typography.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned change and main behavior: The introduced patch changes only the renderer, its existing UI tests, and the visual contract; pinned main still uses BuildRowHeader with BulletedList and has no collapsed-work divider. (src/OpenClaw.Tray.WinUI/Chat/ToolCallCardRenderer.cs:550, 6a1fc3bfc579)
  • Owner direction and discussion: The author is a COLLABORATOR with prior merged work on this renderer; the body explicitly chooses the divider and hover/focus-only chevron, and discussion contains no contrary human decision. (6a1fc3bfc579)
  • Referenced web design contradicts parity claim: The PR body cites this commit and the changed documentation links its component as the visual reference, establishing the dependency-contract signal. The commit deliberately removes the divider and adds an always-visible chevron; its E2E assertion expects chevronOpacity 1 and trailing spacing 0. Current upstream source retains that design. (ui/src/pages/chat/components/chat-work-group-summary.tsx, 5d89656a2bdc)
  • Inspected visual evidence: All three downloaded screenshots visibly show the changed collapsed, focused, and expanded layouts in Light theme. The body identifies them as offscreen real-runtime captures and explicitly leaves pointer hover, Dark theme, and high contrast unverified; live fixture-app UI Automation establishes only the collapsed disclosure name. (6a1fc3bfc579)
  • Preserved ownership and distinct tests: The architecture ledger retains ToolCallCardRenderer as the authoritative renderer. Tests cover disclosure reuse through reconciliation, chevron state, divider placement, and mounted alignment without adding production state or another owner. (docs/ARCHITECTURE.md:1170, 64727b8dbd38)
  • Feature history: History connects compact activity rendering to improve(chat): make tool activity compact and fully inspectable #1092 (improve(chat): make tool activity compact and fully inspectable), completed-work presentation to improve(chat): align native conversation and tool activity with web #2093 (improve(chat): align native conversation and tool activity with web), and current activity typography to improve(chat): make tool activity easier to follow #2120 (improve(chat): make tool activity easier to follow). Following the file beyond its creation encountered an unavailable older blob; affected feature commits and line provenance were readable. (src/OpenClaw.Tray.WinUI/Chat/ToolCallCardRenderer.cs:497, 243f9cff53d8)

Likely related people:

  • Barbara Kudiess: Raw commit 243f9cf adds src/OpenClaw.Tray.WinUI/Chat/ToolCallCardRenderer.cs:346 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 243f9cff53d8; files: src/OpenClaw.Tray.WinUI/Chat/ToolCallCardRenderer.cs)
  • Aditya Sharma: Raw commit 7035e83 adds src/OpenClaw.Tray.WinUI/Chat/ToolCallCardRenderer.cs:545 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 7035e83674b2; files: src/OpenClaw.Tray.WinUI/Chat/ToolCallCardRenderer.cs)
  • Caleb Eden: Raw commit aac07ab adds src/OpenClaw.Tray.WinUI/Chat/ToolCallCardRenderer.cs:180 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: aac07abb1fbd; files: src/OpenClaw.Tray.WinUI/Chat/ToolCallCardRenderer.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.

Review metrics

Metric Value Why it matters
Production and test scope Production +39/-12; tests +87/-8; documentation +8/-1 Growth stays within the existing renderer and suites; the added assertions protect distinct reconciliation and geometry behavior.

Labels

Label changes:

  • add P3: This is low-risk chat presentation polish with no demonstrated broken workflow.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish 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:

  • P3: This is low-risk chat presentation polish with no demonstrated broken workflow.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the scoped interactive evidence described in realBehaviorProof.

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 18, 2026, 2:21 AM ET / 07:21 UTC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. 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