Repository navigation
fix(ui): include final request time in completed work summaries - #149240
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check could not safely complete for this revision. ClawSweeper will not retry this unchanged revision. Next step: No contributor action is requested. Maintainers should inspect the linked workflow run. |
8803240 to
05c2978
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 5:57 AM ET / 09:57 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR uses recorded run timing for completed chat work summaries and makes browser-test cleanup drain held module requests before closing their context. Merge readiness✅ Ready for maintainer review The fix remains necessary on current main. The rebased patch has no blocking correctness or security findings, and the inspected visual evidence supports the duration correction. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI combines chat history with Gateway session lifecycle facts to render completed work summaries. Those summaries display elapsed time without changing stored messages. flowchart TD
A[Chat history] --> C[Completed work grouping]
B[Gateway lifecycle timing] --> D{Matching session and terminal run?}
C --> D
D -->|Yes| E[Show recorded duration]
D -->|No| F[Keep summary without duration]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +10, Tests +374. Total +384 across 11 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep elapsed-time ownership with the Gateway lifecycle and display a duration only when its session and completed run match the summary. Do we have a high-confidence way to reproduce the issue? Yes: current main ends the estimate at message creation, so a long final request understates runtime. The supplied before/after screenshots demonstrate that mechanism; this review did not execute tests. Is this the best way to solve the issue? Yes: consuming existing terminal lifecycle facts repairs the timing source without rewriting transcript timestamps, introducing persistence, or changing grouping boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 761725d03f29. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
3432893 to
5e46226
Compare
Reuse the reviewed correction from #149433 unchanged to unblock PR #149240 against current main. This only extracts recovery-health test fixture setup; production updater behavior and lint limit remain unchanged. (cherry picked from commit 088f28a) Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
5e46226 to
52827f5
Compare
Use matching terminal lifecycle runtime rather than message creation timestamps. Keep unmatched historical summaries untimed. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
Preserve independent-run idle-time coverage and exercise a final message created before completion through live and restored lifecycle facts. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
Track held route installation at the browser context owner, release all gates, then join installations and active Playwright handlers before physical close. Keep fetch-before-gate behavior, request counts, and callback errors visible. Migrate workspace, cloud startup, and native navigation fixture bypasses. Reuse Vincent Koc's regression from #149456 (5cdace8), with its intended outer drain-before-close failure verified before repair and green afterward. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
7dcc19c to
8edb4bd
Compare
|
@clawsweeper re-review Rebased candidate 8edb4bd preserves current owners and resolves both fixture conflicts. Updated proof: 366 focused UI/native tests, 144 isolated browser E2E tests, all eleven-file changed checks, and fresh P2 autoreview pass. Existing before/after media remains applicable; test costs and upstream attribution are in the body. Exact-head CI run 35585508795 is pending. Review only; no merge requested. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
* commit '0883394977d1fb3af657635967f6e447bd7fff9a': (72 commits) fix(ui): await scheduled rail layout in focus test fix(cron): keep healthy active runs from delaying job lists (#154421) fix(plugins): prevent config conflicts during legacy plugin installation (#154539) perf(gateway): reduce repeated session-list work (#154551) fix(tasks): retain admitted work across list retries (#154338) perf(gateway): speed up transcript artifact downloads (#154726) chore(ui): refresh control ui locales (#154580) fix(release): keep two extended-stable months eligible (#154777) fix(tests): avoid avatar descriptor reuse race (#154747) perf(plugins): reduce callback scope overhead (#154625) fix(ui): include final request time in completed work summaries (#149240) fix(ai): avoid retrying conflicting Responses terminal statuses (#149242) fix: identify malformed Code Mode JavaScript as input errors (#149222) fix(doctor): settle imported JSONL transcript leftovers (#154413) fix(cloud): restore node bootstrap with bundled browser runtime (#154654) test(ui): await publication state notifications (#154768) fix(plugins): keep unchanged plugins running across metadata refreshes (#151281) fix: keep chat panel accessibility targets within each pane (#153478) fix: forced Gateway restarts cancel healthy subagent work (#154300) improve: reduce session delivery reader imports (#154740) ...
The failed-turn lifecycle E2E published completed timing through history and an event, but its canonical mock roster omitted runtimeMs and lastRunId. A scheduled roster refresh replaced those facts and removed the duration between assertions. Linux reproduced the exact 30-second textContent timeout. Publish the same completed session through the existing canonical fixture owner and verify its timing after an explicit roster refresh. Preserve the original command-count, 13-second duration, and reload assertions. Product rendering and branding remain unchanged. Controlled source comparison passes at 9e61c5e and its parent, and fails at 1f54ad5 while that commit's parent passes. This repairs the fixture regression introduced by #149240; it is not a branding regression from #154518. Validation: Linux single-worker E2E 16/16 in three consecutive runs (59.62s, 44.33s, 49.52s); macOS 16/16 in 25.30s; 80 focused unit tests in 14.32s; UI and UI-test typechecks, oxfmt, oxlint, and changed-file gate. The strengthened assertion fails without the fixture repair. Independent review is scoped-clean through P1. No user-facing product behavior change.
…claw#149240) * fix(ui): include final request time in completed work summaries Use matching terminal lifecycle runtime rather than message creation timestamps. Keep unmatched historical summaries untimed. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> * fix(ui): include final request time in completed work summaries Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> * test(ui): publish lifecycle timing in completed-turn E2E fixture Preserve independent-run idle-time coverage and exercise a final message created before completion through live and restored lifecycle facts. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> * test(ui): drain held module routes before browser teardown Track held route installation at the browser context owner, release all gates, then join installations and active Playwright handlers before physical close. Keep fetch-before-gate behavior, request counts, and callback errors visible. Migrate workspace, cloud startup, and native navigation fixture bypasses. Reuse Vincent Koc's regression from openclaw#149456 (5cdace8), with its intended outer drain-before-close failure verified before repair and green afterward. Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Vincent Koc <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: Vincent Koc <[email protected]>
The failed-turn lifecycle E2E published completed timing through history and an event, but its canonical mock roster omitted runtimeMs and lastRunId. A scheduled roster refresh replaced those facts and removed the duration between assertions. Linux reproduced the exact 30-second textContent timeout. Publish the same completed session through the existing canonical fixture owner and verify its timing after an explicit roster refresh. Preserve the original command-count, 13-second duration, and reload assertions. Product rendering and branding remain unchanged. Controlled source comparison passes at ed6b5fe and its parent, and fails at 923e1df while that commit's parent passes. This repairs the fixture regression introduced by openclaw#149240; it is not a branding regression from openclaw#154518. Validation: Linux single-worker E2E 16/16 in three consecutive runs (59.62s, 44.33s, 49.52s); macOS 16/16 in 25.30s; 80 focused unit tests in 14.32s; UI and UI-test typechecks, oxfmt, oxlint, and changed-file gate. The strengthened assertion fails without the fixture repair. Independent review is scoped-clean through P1. No user-facing product behavior change.


What Problem This Solves
Fixes: completed chat work summaries understate elapsed time when the final model request takes a long time.
User Impact
User impact: completed summaries show the matching run’s recorded runtime, including its final request, after completion and reload. Older or ambiguous history without matching lifecycle timing keeps its work disclosure but omits the duration instead of guessing. No configuration or migration is required.
Why This Change Was Made
Assistant message timestamps record creation, not run completion. The transcript consumes existing Gateway lifecycle runtime only for the same session and terminal run. Successful, failed, timed-out, and stopped runs follow the same rule. Message timestamps, grouping boundaries, and stored transcripts remain unchanged.
A separate browser-fixture repair releases owned module gates, joins route installation, and drains active handlers before closing the context. Fetch-before-gate behavior, request counts, and error visibility are preserved.
Evidence
be3d22b1745917a2c03a1adb999ed51960a3c275. Range-diff preserves the duration behavior, current async-question ownership, and canonical history fixture normalization. Actual conflicts were resolved by putting route cleanup at its shared context owner and retaining the current event-emitting page mock required by diagnostics.network=none; canonical runtime/UI build and container cleanup also passed. The single-worker test phase took 201.32 seconds. Host proxy policy was not changed.--maxWorkers=1command wall costs for the changed unit/native files: grouping 3.74s, thread 2.74s, duration renderer 5.19s, native lifecycle 26.82s; all pass. The native case needs a real isolated Vitest fork to prove hook ordering and process settlement, while its added drain regression itself takes under one second.8edb4bd689cc2e0297a31e17b6b7fbbda97b0930. Both requiredopenclaw/ci-gatereceipts are successful; current dependency and security-sensitive review statuses are successful.CI test-cost details
CI test-body seconds from successful Vitest module/case receipts (not checkout, compilation, or runner queue time):
chat-thread-grouping.test.tschat-thread.test.tschat-transcript-duration.test.tscontrol-ui-e2e-suite.test.tschat-run-lifecycle.e2e.test.tsnative-nav-sidebar-toggle.e2e.test.tsnew-session-page.cloud-startup-failure.e2e.test.tsnew-session-page.workspace-validation.e2e.test.tsThe existing native suite proves isolated-fork timeout, hook-order, and process-settlement contracts that mocks alone cannot establish. Browser suites prove real route/bootstrap/recovery behavior; this patch does not add new waits or serial configuration.
Worked on by: @RomneyDa (Dallin Romney). Fixture regression credit: @vincentkoc (#149456). Earlier alias-fixture correction credit: @steipete. All retained commits preserve both requested human coauthor trailers.
Work sessions