Skip to content

fix: show turn duration in assistant message metadata - #196511

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/guestfix-g15-nov10
Nov 11, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/guestfix-g15-nov10

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes missing elapsed turn time in the assistant message timestamp tooltip, including completed replies without tool calls.

User Impact

Users can inspect a completed reply's duration as Worked for {duration} alongside its existing timestamp and usage metadata. Replies without reported token usage still show available timing; unavailable timing stays absent. There is no new badge or separate “Done in” line, and no configuration or migration is required.

Why This Change Was Made

The existing timing projection now serves both completed-work summaries and reply metadata. Matching terminal lifecycle runtime takes precedence. For earlier runs, the existing historical interval—from the prompt that started that execution run through its last recorded output write—is retained as a distinct measurement, not inferred from message age, creation time, or tool durations.

Existing Worked and handoff/request-wide recap behavior is preserved. Forwarded messages and mismatched session/run facts cannot borrow the current run's timing.

Evidence

  • Maintainer validation of the final wording: 85 duration, message-group and transcript-index cases passed in 2.44 s. Scoped lint, English catalog verification and the exact 61-line regression allocation passed. Fresh full-candidate review found no actionable P0–P2 issues.

  • Reproduced through the actual Control UI on an isolated Gateway with a real model: a completed no-tool reply had no duration entry. The same flow now shows one entry (“Duration: 1s” for a recorded 1,271 ms runtime), including after a fresh reload. Served UI bytes were checked against the built candidate.

  • Five focused duration assertions failed on the unchanged base. The focused metadata/activity suites passed 58 tests; downstream thread/grouping suites passed 118 tests. The final changed-renderer replay passed 28 tests.

  • Targeted UI and UI-chat test types, scoped lint/stylelint/format, English catalog verification, regression-line allocation and UI production build passed. Three existing lint warnings remain in unchanged code.

  • Author simplification pass completed without further source changes. Canonical independent local autoreview covered the complete staged/unstaged candidate at P0–P2 in one isolated pass: scoped-clean, no findings. The reviewer inspected source and retained evidence; it did not rerun tests or browser checks.

  • Changed-test Vitest wall times: duration suite 2.10 s; message-group suite 1.47 s. The named regression allocation covers exactly 61 net test lines; the shared scalar is unchanged. CI seconds are not available.

Proof limits: Real browser/model proof covers Chromium, light theme, 1280×900, one simple no-tool reply and reload. Focused sibling fixtures are not real multi-tool, handoff, mobile, dark-theme or WebKit proof. Updated-head CI is pending; missing or skipped jobs are not passing proof.

CI exceptions: The reviewed-head CI reports seven pre-existing test lines above the baseline; this PR adds 61 lines and allocates exactly 61. It also reports new static JS size growth: 127 B in the largest shared asset and 470 B in chat boot (63 B beyond shared-asset variance and 407 B above the chat-boot ceiling). These byte overages use the maintainer-approved budget waiver; they are not labelled inherited. The remaining CI jobs passed or were skipped. Security Review completed successfully.

Visual evidence

These original captures show the earlier “Duration:” label. The final wording is “Worked for”; timing and placement are unchanged.

Before

Before — timestamp metadata without elapsed time

After

After — elapsed time inside timestamp metadata

Full Control UI context

Before

Before — full Control UI context

After

After — full Control UI context

Model identifiers are redacted. These are real isolated-Gateway/model captures with the same prompt, viewport and theme; elapsed time and absolute clock reflect their actual runs.

Contributor: @vyctorbrzezowski

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 10, 2026 07:40
Share same-run timing between completed work and assistant metadata, including replies without tool calls. Keep unavailable timing absent and preserve the standalone recap removal.

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

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: d599d00a-8b38-4849-837c-a4fdd96dc681
@clawsweeper

clawsweeper Bot commented Nov 10, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment 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: 🐚 platinum hermit Good normal PR readiness with ordinary 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head c7e1efa4e3136211dbc48e6834aa32fb8389caf4, but the PR head is now 31c5c59f0bf52b87a3e633cfbc0002e66cf83e71. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-10T08:00:40.678Z sha c7e1efa :: needs maintainer review before merge. :: none

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 11, 2026 01:22
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 11, 2026
@vyctorbrzezowski
vyctorbrzezowski merged commit 290c8ab into main Nov 11, 2026
162 of 167 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/guestfix-g15-nov10 branch November 11, 2026 03:45
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
Show available elapsed turn time as "Worked for {duration}" in the existing assistant-message timestamp tooltip. Preserve separate historical and terminal timing semantics, and omit unavailable timing.

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: Vyctor H. Brzezowski <[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. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants