Skip to content

fix(ui): drop the "Done in" recap line from chat - #192058

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/mild-claw-2
Nov 3, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/mild-claw-2

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Completed chat turns ended with a separate "Done in N seconds" line under the answer, even though run timing already has a home on the "Worked for …" summary. Answers with no tool work still got the extra line (requested by Vyctor).

Solution

  • TurnRecapRow no longer renders a duration. It shows only output-token usage, and only when the run reported it.
  • hideDuration / hideTurnRecapDuration are gone. They existed only to avoid showing the duration twice next to a Worked summary.
  • The transcript projection adds a standalone recap row only when it has tokens to show.
  • Removed the unused chat.turnRecap.doneIn string.
  • The retained recap still feeds runtimeMs into the Worked summary, so "Worked for 12m 34s" keeps its lifecycle timing.

Impact

  • Run duration now appears only on the Worked summary.
  • Turns with no work summary show no timing. That includes plain replies and subagent handoff continuations, which used to get request-wide "Done in". This is intentional: the Subagents panel still shows child duration and navigation.

Evidence

  • Regression: chat-transcript-duration.test.ts › "shows no duration line for an answer without a work rollup" fails on main (Done in 13 seconds) and passes here.
  • Unit: chat-transcript-duration, chat-message, chat-view, chat-pane-run-settlement, chat-progress, chat-sessions-yield (6 files pass).
  • Browser E2E: chat-subagent-waiting.e2e, chat-run-lifecycle.e2e pass.
  • pnpm tsgo:ui, pnpm tsgo:test:ui, oxlint and format on touched files are clean.
  • Before/after Control UI screenshots, captured with the mock Gateway: plain 3-second reply, plus a turn with tool work. They are linked in a comment below.

Inherited CI failure (not caused by this PR)

  • checks-ui (2/3) (run 41672842654, attempt 1, job 126046764266) fails only in ui/src/pages/channels/channels-page.save.test.ts: 5 tests in "ChannelsPage save against a file changed elsewhere".
  • This PR touches no channels code. The same 5 tests fail locally on base 38db425 with this PR's files reverted, and origin/main has not changed that test or its save path since then.

Worked on by

roboclaw-bot and others added 2 commits November 3, 2026 16:17
Run duration now appears only on the Worked summary. Answers without a
work rollup no longer get a separate "Done in N seconds" line; the recap
keeps output-token usage when the run reported it.

Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: e77c4bb7-44ab-4f03-a3fb-fb0f2884a1d8
@clawsweeper

clawsweeper Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
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.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Before/after Control UI screenshots (mock Gateway, synthetic history).

Plain 3-second reply. Before: Done in 3 seconds sits under the answer. After: there is no timing line.

Turn with tool work. Before and after are identical: the timing stays on Worked for 12m 34s.

Order: plain before, plain after, worked before, worked after.

plain-before

plain-after

worked-before

worked-after

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 3, 2026
@clawsweeper

clawsweeper Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR removes completed-turn duration footers while retaining reported output tokens and timing on Worked summaries.

Example: A plain reply finishes in 3 seconds without reported output tokens.

  • Before: “Done in 3 seconds” appears below the answer.
  • After: The answer has no recap line.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Direct visual proof covers the changed presentation, the patch uses existing owners, and no actionable correctness or security finding remains; pending CI still gates landing.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots exercise the actual Control UI rendering with a mock Gateway and synthetic history, showing removal of the plain-reply duration and preservation of Worked timing.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Completed answers show an extra duration line beneath the reply.
Reason: The collaborator-authored direction explicitly accepts losing timing on replies without a Worked summary, and the implementation delivers that preference with less presentation machinery.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-directed UI cleanup is focused, supported by inspected visual evidence, and introduces no actionable defect; current main still renders the removed line.

Priority: P3
Reviewed head: e8137e9c20a5441e206aa1a652dd9b1e85c9bf03

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI projects Gateway run metadata and transcript messages into chat rows, with the existing recap owner supplying token usage and lifecycle timing.

flowchart TD
  A[Gateway run metadata] --> B[Existing recap owner]
  C[Transcript messages] --> D[Transcript projection]
  B --> D
  D --> E[Agent run frame]
  E --> F[Worked summary with timing]
  E --> G[Token recap when reported]
  D --> G
Loading

Technical review

Best possible solution:

Keep timing on the existing Worked summary and render completed-turn footers only for reported token usage.

Do we have a high-confidence way to reproduce the issue?

Current-main source renders duration for a plain completed reply, and the supplied before screenshot shows that behavior; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The patch implements the approved presentation preference through existing owners, removes obsolete flags, and preserves lifecycle timing and token aggregation without introducing another state path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 868609a3f6cb.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit a967fa7 adds ui/src/pages/chat/components/chat-agent-run-frame.tsx:265 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: a967fa74c6a7; files: ui/src/pages/chat/components/chat-agent-run-frame.tsx)

PR surface

Source -21, Tests -4. Total -25 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 6 6 27 -21
Tests 5 16 20 -4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 22 47 -25

Labels

Label changes:

  • add P3: This is low-risk chat presentation polish without a broken agent workflow or persisted-state change.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • 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 without a broken agent workflow or persisted-state change.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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 3, 2026, 11:34 AM ET / 16:34 UTC.

@roboclaw-bot
roboclaw-bot merged commit 22e063a into main Nov 3, 2026
106 of 109 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/mild-claw-2 branch November 3, 2026 17:13
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 4, 2026
* fix(ui): drop the "Done in" recap line from chat

Run duration now appears only on the Worked summary. Answers without a
work rollup no longer get a separate "Done in N seconds" line; the recap
keeps output-token usage when the run reported it.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): drop the "Done in" recap line from chat

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: e77c4bb7-44ab-4f03-a3fb-fb0f2884a1d8

---------

Co-authored-by: vyctorbrzezowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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