Repository navigation
fix(ui): drop the "Done in" recap line from chat - #192058
Conversation
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
|
🦞👀 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. |
|
Before/after Control UI screenshots (mock Gateway, synthetic history). Plain 3-second reply. Before: Turn with tool work. Before and after are identical: the timing stays on Order: plain before, plain after, worked before, worked after. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl 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
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -21, Tests -4. Total -25 across 11 files. Added test files: 0. View PR surface stats
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 3, 2026, 11:34 AM ET / 16:34 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* 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]>




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
TurnRecapRowno longer renders a duration. It shows only output-token usage, and only when the run reported it.hideDuration/hideTurnRecapDurationare gone. They existed only to avoid showing the duration twice next to a Worked summary.chat.turnRecap.doneInstring.runtimeMsinto the Worked summary, so "Worked for 12m 34s" keeps its lifecycle timing.Impact
Evidence
chat-transcript-duration.test.ts› "shows no duration line for an answer without a work rollup" fails onmain(Done in 13 seconds) and passes here.chat-transcript-duration,chat-message,chat-view,chat-pane-run-settlement,chat-progress,chat-sessions-yield(6 files pass).chat-subagent-waiting.e2e,chat-run-lifecycle.e2epass.pnpm tsgo:ui,pnpm tsgo:test:ui, oxlint and format on touched files are clean.Inherited CI failure (not caused by this PR)
checks-ui (2/3)(run 41672842654, attempt 1, job 126046764266) fails only inui/src/pages/channels/channels-page.save.test.ts: 5 tests in "ChannelsPage save against a file changed elsewhere".38db425with this PR's files reverted, andorigin/mainhas not changed that test or its save path since then.Worked on by