Skip to content

improve(ui): reuse date formatters across timestamp lists - #146789

Merged
steipete merged 1 commit into
mainfrom
codex/v8-cron-format-round6
Sep 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/v8-cron-format-round6

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Automations run history, Usage conversations and the Tasks page recreate the same date formatter for every displayed timestamp. Long lists repeat that work when their view renders again, including Usage search-draft updates and task progress updates.

Closes #146779.

User Impact

Activity, per-job History, Usage conversations and Tasks timestamp titles reuse one lazy formatter per render, preserving locale, system timezone, minute precision and invalid-date labels. The next render picks up locale and timezone changes. No date labels or formatter state persist across renders.

With a populated Usage timeline and conversation, warm synchronous DOM updates improved 27–31% for 50–200 messages and 61–64% for 1000 messages in the measured workloads. Active Tasks warm updates improved 49–60% for 50–501 rows. Small/empty, invalid-date and cold-mount controls were mixed; this is not a universal speedup or a browser-paint claim.

Why This Change Was Made

The existing timestamp owner provides render-scoped reuse. History, conversation and task row loops consume it; one-shot callers retain the same validation and options. Tasks shares the formatter across its active and recent sections, preserving relative labels and exact timestamp titles. Empty/loading/initial-error Usage panels return before creating the render formatter, and invalid dates do not initialize its Intl formatter.

Evidence

The comparisons have separate baselines and must not be combined into an end-to-end percentage:

  • Original Cron change against its original main base: actual renderCron, nine alternating pairs and five warmups on Node 24.19.0 and 26.8.2. A 50-row Activity view took 8.418 → 1.527 ms and 4.243 → 1.152 ms. Warm synchronous Lit DOM updates took 6.107 → 1.812 ms and 3.855 → 1.316 ms. All four cells won nine pairs. All 33 controls, including cold mounts, tasks/editor paths, invalid dates, locale changes and cached/uncached Markdown, remain included below.

  • Incremental Usage reuse over the frozen, reviewed Cron helper at 377ced7: three fresh processes per runtime, three warmups and three alternating paired rounds per cell. All 29 cells per runtime were retained. Each process passed 35 full DOM/event comparisons before timing, including loaded/error/retained states and locale transitions: 210 comparisons across six processes. With conversation logs but no populated chart, warm 50/200/1000-row updates took 3.279 → 1.610 / 10.658 → 2.930 / 44.673 → 11.446 ms on Node 24, and 4.011 → 1.479 / 11.741 → 3.122 / 45.657 → 14.244 ms on Node 26. Each improved in all three processes and nine paired rounds.

  • Separate populated-chart supplement: six cells per runtime, again three fresh processes and three paired rounds. All six fixture/DOM/event comparisons passed in each child: 36 comparisons total. This covers the normal combined timeline-and-conversation state that the original Usage fixture omitted. Chart timestamps use the selected UTC setting; conversation timestamps retain system-local formatting. Exact bar/log counts, positive finite geometry, coherent point/log/session totals, timestamp labels, generated-ID reference topology and all six conversation callbacks were checked before timing.

  • Incremental Tasks reuse over the same frozen Cron helper at 377ced7: actual renderTasks plus synchronous Lit DOM commit, three fresh processes per runtime, three warmups and three alternating paired rounds. All 32 controls per runtime were retained; each child passed 35 complete DOM/title/link/callback comparisons before timing, 210 comparisons across six processes. Active 50/200/501-row warm updates took 5.140 → 2.612 / 21.069 → 8.473 / 49.676 → 20.634 ms on Node 24 and 4.784 → 2.417 / 18.196 → 7.677 / 40.852 → 17.589 ms on Node 26. Every one improved in all three processes and nine paired rounds. The 501 active-row case exercises supported pagination under stress; it is not a typical list-size claim. Recent rows remain capped at 50: the recent-200 fixture supplies 200 records but displays 50.

Usage logs / chart points Mode Node 24 before → after ms Process / paired wins Node 26 before → after ms Process / paired wins
50 / 50 Cold mount 46.200 → 43.210 3/3; 6/9 41.897 → 40.441 1/3; 7/9
50 / 50 Warm update 8.461 → 6.024 3/3; 9/9 7.707 → 5.643 3/3; 9/9
200 / 200 Cold mount 147.004 → 127.479 3/3; 9/9 136.843 → 131.809 2/3; 7/9
200 / 200 Warm update 24.986 → 17.209 3/3; 9/9 19.640 → 14.326 3/3; 9/9
1000 / 200 Cold mount 762.079 → 710.935 3/3; 8/9 780.356 → 752.039 2/3; 7/9
1000 / 200 Warm update 83.800 → 30.209 3/3; 9/9 69.416 → 26.948 3/3; 9/9

Usage numbers are medians of three process medians. The populated-chart Node 26 cold-50 case regressed in two process medians; cold-200 and cold-1000 each regressed in one. The Node 24 candidate cold-1000 data retains a 1408.640 ms sample. No outliers were removed or favorable cases selectively rerun.

The original Usage controls also retain regressions: Node 24 empty warm +0.250 ms, single-row cold +0.745 ms, single-row template +0.044 ms and initial-error template +0.031 ms; Node 26 empty warm +0.065 ms, single-row cold +0.370 ms, empty template +0.030 ms, no-selection template +0.023 ms and initial-error template +0.007 ms. The original 1000-row cold Node 24 aggregate improved but only one of three process medians did. The original Cron task-table DOM controls (a different surface from the Tasks page) regressed 3.6–6.5 ms on Node 26; attribution remains unresolved.

Tasks adverse medians remain material: Node 24 invalid-50 cold +3.689 ms and warm +0.122 ms, error-50 cold +5.115 ms, active-0 cold +0.098 ms and warm +0.008 ms, active-1 cold +0.062 ms, and active-10 cold +0.295 ms. Node 26 invalid-50 cold +0.916 ms and warm +0.027 ms, active-0 cold +0.016 ms, active-1 cold +0.093 ms and warm +0.027 ms. Node 24 active-1 warm has a lower aggregate median but regressed in two of three processes; Node 26 English-locale cold similarly regressed in two processes. All process/paired wins appear in the Tasks table below rather than being inferred from aggregate medians. Progress fixtures use the existing task-event reducer before timing; event-to-render scheduling is not measured.

These are synthetic complete-view calls in the canonical jsdom harness. Cold means a fresh synchronous Lit mount in a warm process, not application startup. Timings exclude asynchronous widget updates, cleanup, browser layout/paint and Gateway latency. Both variants and parity/DOM churn share each proof process: RSS is not comparative retained-memory or allocation evidence. Original Usage end RSS ranged 1.78–1.80 GiB on Node 24 and 1.62–3.92 GiB on Node 26; the last Node 26 peak was 4,107,564 KiB. Supplemental end RSS ranged 1.99–2.02 GiB and 1.51–1.73 GiB, respectively. Tasks child peaks ranged 1.849–1.864 GiB on Node 24 and 1.715–2.160 GiB on Node 26, again including both variants, full preflight and DOM churn. Every sample remains preserved.

Validation and Remaining Gates

  • Original Cron scope: 138 tests across six focused suites passed; core test graphs, UI types, i18n, formatting and selected guards passed. Targeted Oxlint and Stylelint passed after the aggregate stopped at the dead-export scan. Fresh P2 review of that original scope found no actionable findings.
  • Usage addition: 114 tests across four focused suites passed, including the existing stale-details case extended to English → French → English, native minute-precision labels, invalid timestamps, retained messages, error indicators and timeline visibility. This count overlaps the original formatter/history suites and must not be added to 138 as a unique-test total.
  • The original aggregate selected check remains exit 1 for canonicalProviderName and listPackagedStaticExtensionAssetOutputs in untouched scripts, both reproduced on clean original base 004332fc723a.
  • Tasks integration: 62 tests across the existing TasksPage and task-data suites passed on the refreshed source. The extended registered-page case retains all-agents row identity and exercises timestamp titles through English → French → English and a real task-event update, including zero/invalid timestamps. The upstream shared-deferred fixture migration is preserved.
  • The unchanged canonical Tasks browser case passed against a fresh production bundle on Windows Chromium with a mocked Gateway: 501 active rows fetched in two pages, pushed completion, and cancellation of a page-two task with exact request assertions. One selected case passed; three sibling cases were filtered out. Three synthetic screenshots and a video are retained. The first two screenshots show the top of the long list; sentinel visibility is established by the canonical test assertion, not those captures. This is browser correctness proof, not a performance measurement or live-Gateway proof. Suite teardown completed and the subsequent scoped process inventory was empty; the wrapper's retained temporary-namespace warning remains recorded.
  • Fresh P2 review of the complete seven-file diff finished successfully in three passes, with no findings and aggregate confidence 0.88. Final source verification passed. The review's frozen context had browser proof and combined checks marked pending; the completed browser result above is reconciled separately, without changing that historical context.
  • Combined selected checks finished with exit 1 (session 61033). Every preceding selected guard, all 18 core test type graphs, UI types, i18n and seven-file formatting passed. The production export scan passed with zero findings. The script scan reported canonicalProviderName; the full-tree scan reported that export and listPackagedStaticExtensionAssetOutputs. Both findings were reproduced on clean original base 004332fc723a; the export owners, three Knip configs and scan runner remain unchanged through the refreshed base and subsequently observed main. This is an inherited failure, not a passed aggregate gate.
  • The remaining seven-path Oxlint and Stylelint commands both completed successfully (session 46043). Their wrapper checked each exit code independently before writing the pass status; the captured log is empty. The prior required hosted failure and its upstream repair are recorded below. Hosted CI and the required CI gate now pass for the verified commit; native preparation and merge remain pending.

The reviewed seven-file change has been rebased without source changes onto main a8a9114fb78784cb726ba271e3b4da74a40f01a9, producing commit 23bc7b2dd19a38f087eea996273117546cce40aa. All seven reviewed raw hashes and the nine frozen chart-baseline owners still match 0878e2ecd5c6d542d71062aaaa754f47766370fc; the relevant Cron, Usage, Tasks, formatter, i18n and package/lock scopes are unchanged from the previous base. The remote PR head is verified at 23bc7b2dd19a38f087eea996273117546cce40aa, and CI 34750491800 completed successfully for that exact commit, including the required openclaw/ci-gate. Native preparation and merge remain pending. Historical measurements and review inputs remain unchanged. The previous reviewed candidate was commit 0878e2ecd5c6d542d71062aaaa754f47766370fc, based on 912685f442286233fbbd40762482d98598299497. Review inspected checkout HEAD d44d18f3de2a1753213a13f72238ba3df6c9298e plus the four explicit Usage/Tasks working-tree files; all seven raw source hashes match the final commit after hooks. Original Cron measurements remain on 004332fc723aaea35530db9135d819809e59aac2; incremental Usage and Tasks measurements remain on 377ced7f87619696d2b44e24f032e95922cab162. Package and lock inputs are unchanged. The frozen review records these seven final raw SHA-256 identities:

Ref provenance: these linked worktrees share C:/projects/openclaw/.git. The selected command passed the symbolic origin/main to the ratchet guards; that shared ref advanced from 912685f442286233fbbd40762482d98598299497 to f01640e3fb78c70676148e32ae65c9bf6f8eec3f during the run, and the raw completion status records the latter tip. The guard owner resolves git merge-base HEAD <ref>, which remained 912685f442286233fbbd40762482d98598299497; it does not compare the branch's grandfathered entries with the moving tip. A later fetch to b41062471975aaf0011f90b10f6d527dd10da934 occurred after completion. The exact tip read by each guard was not separately logged, so no pinned-origin/main claim is made.

Reviewed seven-file source identity
File SHA-256
ui/src/lib/format.ts 823490a9ec05d5df5ce1749e8844f8f5c56bfb6ab601b1b0d5020cdcba1d2542
ui/src/pages/cron/view-runs.ts 5b3bba08ef7b18048827a1843e40f7dbc476d8c94afbd9b61f5968b0cd76256d
ui/src/pages/cron/view-run-history.test.ts f62aedae4e3116ddb05c30e3f764124fbdcac5f10021ddb19f78e14f50a7929d
ui/src/pages/usage/view-details.ts 8b20c447b652d75c958a2024dccaa1f1c118c6f1be6ee933bbe00313e7100a6d
ui/src/pages/usage/view-details.test.ts f5e880f34956e55f9a1615251d15f232370ef28d55cdbcca41de0fc90b1dde1c
ui/src/pages/tasks/view.ts f541765993a3143d8639791488151ac75bb2965d2f2a25fea0cb10840260769d
ui/src/pages/tasks/tasks-page.test.ts 3c7ac4e28a538038abec13916bb69a6e231fbe8dd52eeca2f9d5ea02b2cec6aa

Hosted CI and Diagnostic Gaps

Historical CI run 34748959547 for 0878e2ecd5c6d542d71062aaaa754f47766370fc completed with failure: checks-ui-e2e (4/7), job 103701945906, had 318 passing tests and one failure across 77 files. The sole failure was chat-file-links.e2e.test.ts:309, “keeps root-distinct file labels and targets through click and keyboard,” waiting 30 seconds for the obsolete exact button name “Close Review.” Tested merge 4f8498f63845585e6ed65774d2f81f03551be356 used base b41062471975aaf0011f90b10f6d527dd10da934. The dependent CI gate also failed; these historical failures remain recorded. Main independently acquired the exact “Close tab: file.ts” repair in ff9c1b0bc8ae77b897d9d98f31a1fe1e90e18b9a, PR #146810, merged at 09:39:02 UTC on September 13. The repaired file blob 9759b40cfc1b6a96e1870812d5d177fc6fc2c098 is identical to the reviewed Scroll repair and is included in the new base. No duplicate formatter edit or test rerun was made. The prior separate label run 34748959326 failed HTTP 500 deleting size: S; that is a separate historical service failure. The rebased commit is remotely verified and its CI passes; native landing remains pending.

The initial hosted run failed the real-Gateway delegation case after filling the composer: it was waiting for Send message and the captured draft was empty. The unchanged canonical case passed locally on Node 24 with the production bundle, including immediate fill/send, approval persistence across reloads, event ordering, config update, final history and cleanup. No readiness waits, timeout changes or test/product edits were introduced. That Windows Chromium result does not reproduce or repair the original Linux empty-draft symptom.

Hosted attempt 2 failed earlier in the separate desktop-resize proof. Its Node carrier passed; SSH failed the original viewer framebuffer check after successful control transfer, controller resize to 900×500 and guest keyboard input. The exported receipt lacks the failed viewer dimensions and socket state. Relevant desktop source is unchanged; no direct formatter attribution or clean-baseline reproduction is established. Attempt 2 never reached the original delegation suite.

Two isolated desktop diagnostics also failed before the application payload. The first diagnostic timed out during native full source sync. The debug diagnostic timed out during changed-file transfer and its native checksum-full fallback. Neither ran the source receiver, build or test, and neither produced an application observation. Cleanup completed; transfer rate/receiver errors do not establish the lower-level cause. These failures remain evidence gaps, not passed validation. Shared CI repairs in #146803 have since merged at 2e0bfa16; this does not attribute or reproduce the earlier application failures. The formatter candidate has now been refreshed and committed as identified above. Expanded selected checks completed with the inherited export failures recorded above; the remotely verified new commit has passed hosted CI and still requires native preparation and merge.

All measured controls and limitations

Times are milliseconds per render. Template cells execute history row construction; DOM cells include synchronous Lit commit. Eight template renders or two DOM commits were measured per sample. Module startup, asynchronous widget updates and cleanup are excluded. Uncached Markdown uses new synthetic summaries per invocation. Fixtures use a fixed clock and synthetic records; no live Gateway or private data.

Control Node 24 before → after Wins Node 26 before → after Wins
activity-0 0.056 → 0.079 3/9 0.049 → 0.047 5/9
activity-1 0.570 → 0.536 5/9 0.243 → 0.212 6/9
activity-10 1.964 → 0.975 9/9 1.093 → 0.397 9/9
activity-50 8.418 → 1.527 9/9 4.243 → 1.152 9/9
activity-100 16.221 → 3.774 9/9 7.000 → 1.216 9/9
detail-0 0.072 → 0.072 4/9 0.059 → 0.063 4/9
detail-1 0.484 → 0.359 5/9 0.268 → 0.209 5/9
detail-10 2.691 → 0.758 9/9 0.870 → 0.307 9/9
detail-50 9.690 → 1.725 9/9 3.402 → 0.655 9/9
detail-100 14.306 → 2.432 9/9 6.479 → 1.507 9/9
activity-50-one 3.168 → 1.096 9/9 1.872 → 0.638 9/9
activity-50-invalid 0.974 → 1.004 4/9 0.719 → 0.719 5/9
activity-50-mixed 3.793 → 1.326 9/9 2.146 → 0.645 9/9
activity-50-rich-cached 5.783 → 1.201 9/9 3.550 → 0.719 9/9
activity-50-rich-uncached 99.852 → 90.484 8/9 59.720 → 50.590 9/9
detail-50-rich-cached 7.069 → 1.113 9/9 3.866 → 0.862 9/9
detail-50-rich-uncached 85.962 → 73.555 9/9 57.390 → 46.649 8/9
tasks-50-every 0.068 → 0.067 5/9 0.046 → 0.052 4/9
editor-every 0.218 → 0.148 7/9 0.168 → 0.180 3/9
tasks-50-at 0.047 → 0.045 3/9 0.040 → 0.053 2/9
editor-at 0.380 → 0.359 2/9 0.211 → 0.228 4/9
activity-filtered-empty 0.047 → 0.061 3/9 0.038 → 0.044 4/9
activity-50-fr 5.956 → 0.948 9/9 3.605 → 0.749 9/9
activity-50-de 5.716 → 1.330 9/9 3.581 → 0.688 9/9
activity-50-ar 6.595 → 1.066 9/9 3.172 → 0.721 9/9
activity-10-dom-cold 8.084 → 6.786 6/9 6.668 → 6.129 7/9
activity-50-dom-cold 35.030 → 27.895 8/9 23.623 → 22.468 7/9
detail-50-dom-cold 31.489 → 25.735 7/9 23.136 → 20.282 8/9
activity-10-dom-warm 1.832 → 0.906 9/9 0.929 → 0.472 8/9
activity-50-dom-warm 6.107 → 1.812 9/9 3.855 → 1.316 9/9
detail-50-dom-warm 5.598 → 1.783 9/9 3.982 → 1.680 9/9
tasks-50-every-dom-cold 78.091 → 78.955 5/9 47.320 → 50.876 4/9
tasks-50-at-dom-cold 76.742 → 68.982 5/9 51.485 → 57.935 3/9

The combined proof process reached approximately 3.05 GB RSS on Node 24 and 1.46 GB on Node 26 after the rich/DOM workload. These are combined harness measurements, not candidate-versus-baseline retention figures. The unchanged every-task path also moved in the late DOM controls; no attribution or selective rerun is claimed.

All 32 Tasks controls and limitations

Incremental Tasks caller measurements over the frozen Cron helper. Values are milliseconds, medians of three process medians. Wins are process medians out of three and paired rounds out of nine. All 64 runtime rows are retained. Cold mounts occur in a warm jsdom process; timing excludes asynchronous agent-chip updates, browser layout/paint and Gateway handling.

Control Node 24 before → after Process / paired wins Node 26 before → after Process / paired wins
active-0-cold 1.199 → 1.297 1/3; 5/9 1.171 → 1.187 2/3; 6/9
active-0-warm 0.092 → 0.100 0/3; 1/9 0.098 → 0.087 2/3; 3/9
active-1-cold 2.224 → 2.286 0/3; 3/9 1.789 → 1.882 1/3; 4/9
active-1-warm 0.399 → 0.341 1/3; 3/9 0.337 → 0.364 0/3; 4/9
active-10-cold 7.119 → 7.414 1/3; 3/9 7.824 → 6.051 2/3; 5/9
active-10-warm 1.479 → 0.766 3/3; 8/9 1.274 → 0.493 3/3; 9/9
active-50-cold 34.004 → 32.581 2/3; 7/9 32.502 → 25.028 3/3; 8/9
active-50-warm 5.140 → 2.612 3/3; 9/9 4.784 → 2.417 3/3; 9/9
active-200-cold 166.623 → 157.100 3/3; 8/9 153.449 → 141.287 2/3; 5/9
active-200-warm 21.069 → 8.473 3/3; 9/9 18.196 → 7.677 3/3; 9/9
active-501-cold 428.921 → 404.274 2/3; 8/9 436.850 → 435.292 2/3; 6/9
active-501-warm 49.676 → 20.634 3/3; 9/9 40.852 → 17.589 3/3; 9/9
recent-200-cold 32.654 → 28.896 2/3; 7/9 27.232 → 23.342 3/3; 8/9
recent-200-warm 4.640 → 2.150 3/3; 9/9 3.639 → 2.178 3/3; 9/9
mixed-60-cold 40.141 → 35.825 2/3; 6/9 37.562 → 34.728 2/3; 5/9
mixed-60-warm 6.829 → 2.573 3/3; 9/9 5.519 → 1.919 3/3; 9/9
invalid-50-cold 28.878 → 32.567 0/3; 2/9 25.842 → 26.757 1/3; 4/9
invalid-50-warm 1.565 → 1.687 1/3; 4/9 1.557 → 1.584 1/3; 3/9
zero-50-cold 34.838 → 33.039 2/3; 5/9 27.736 → 23.234 3/3; 9/9
zero-50-warm 1.735 → 1.715 2/3; 4/9 1.579 → 1.561 2/3; 3/9
loading-50-cold 36.130 → 32.335 3/3; 7/9 33.789 → 32.493 3/3; 6/9
loading-50-warm 5.802 → 2.157 3/3; 9/9 4.844 → 2.025 3/3; 9/9
error-50-cold 28.361 → 33.476 1/3; 3/9 33.648 → 30.165 3/3; 7/9
error-50-warm 5.375 → 2.246 3/3; 9/9 4.389 → 1.917 3/3; 9/9
disconnected-50-cold 31.103 → 28.775 2/3; 7/9 28.032 → 23.343 3/3; 7/9
disconnected-50-warm 5.867 → 1.866 3/3; 9/9 4.288 → 1.555 3/3; 9/9
progress-50-warm 5.789 → 2.534 3/3; 9/9 5.113 → 2.369 3/3; 9/9
progress-501-warm 49.775 → 21.205 3/3; 9/9 40.587 → 18.359 3/3; 9/9
locale-fr-50-cold 33.507 → 31.793 2/3; 7/9 28.772 → 28.535 2/3; 5/9
locale-fr-50-warm 5.688 → 1.440 3/3; 9/9 4.757 → 2.122 3/3; 9/9
locale-en-50-cold 37.720 → 36.900 3/3; 6/9 29.539 → 27.516 1/3; 5/9
locale-en-50-warm 4.998 → 1.904 3/3; 9/9 4.994 → 1.610 3/3; 9/9

The active-501 and progress-501 cells are stress cases; recent-200 respects the existing 50-row visible cap. Loading, error and disconnected fixtures retain available rows. Zero and invalid timestamps preserve the existing absence of an exact-date title. All initial adverse controls and final raw samples remain retained; no attribution to noise or selective rerun is claimed.

@clawsweeper

clawsweeper Bot commented Sep 13, 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.

@steipete
steipete marked this pull request as ready for review September 13, 2026 06:05
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 6:04 AM ET / 10:04 UTC (Revision 6).

ClawSweeper review

What this changes

Reuses one lazy date formatter per render across Automations history, Usage conversations, and Tasks timestamp titles, with coverage for locale changes and invalid dates.

Merge readiness

✅ Ready for maintainer review

Keep open with no actionable findings. The optimization remains absent from current main, preserves existing timestamp behavior, and has useful, appropriately bounded performance evidence.

Priority: P3
Reviewed head: 23bc7b2dd19a38f087eea996273117546cce40aa

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused optimization with sound render lifetimes, meaningful compatibility coverage, and carefully limited performance claims.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary external-contributor proof gate does not apply to this maintainer-authored PR, and no authority boundary changes. Reported render benchmarks exercise the changed owners; the Tasks browser check supplements correctness but does not prove browser performance.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary external-contributor proof gate does not apply to this maintainer-authored PR, and no authority boundary changes. Reported render benchmarks exercise the changed owners; the Tasks browser check supplements correctness but does not prove browser performance.
Evidence reviewed 8 items Shared formatter preserves the existing contract: The helper retains Date-range validation, localized unavailable labels, system-local timezone, and the same minute-precision options. Its Intl formatter initializes only for a valid timestamp and belongs to the returned closure.
Reuse follows render ownership: Automations creates the formatter in renderRunsSection; Tasks shares one across active and recent sections; Usage creates one after loading, initial-error, and empty-log returns. No formatter is stored in application state, and the existing Lit base requests updates on locale changes.
Current-main and release necessity check: Inspected formatMs at fetched main b938f09 and release v2026.9.4: both still call Date.toLocaleString separately for each timestamp. The related merged PRs concern session resolution and catalog/task recovery, not this formatter optimization.
Findings None None.
Security None None.

How this fits together

The Control UI renders timestamps supplied by automation runs, conversation logs, and task updates. Its shared formatting helper converts those values into localized labels and titles using the system timezone.

flowchart TD
  A[Run logs and task updates] --> B[List render]
  C[Current locale and system timezone] --> D[Render-scoped date formatter]
  B --> E{Valid timestamp?}
  E -->|Yes| D
  E -->|No| F[Localized unavailable label]
  D --> G[Timestamp labels and titles]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +20, Tests +115. Total +135 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 4 41 21 +20
Tests 3 148 33 +115
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 189 54 +135

Review metrics

Metric Value Why it matters
Formatter construction At most 1 Intl date formatter per list render; 0 for invalid-only timestamps The optimization removes repeated formatter setup without retaining formatter state across renders.
Production versus test growth Production net +20 lines; tests net +115 lines Production growth supplies shared render-scoped reuse; test growth covers locale and timestamp compatibility through existing views.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #146779
Summary: This PR implements the formatter reuse requested by the canonical open issue.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep date formatting in the shared helper with render-scoped reuse, preserving existing labels and refreshing locale and timezone on subsequent renders.

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

Not applicable as a functional bug reproduction: this is a performance improvement, and source confirms repeated formatter setup in current main.

Is this the best way to solve the issue?

Yes. Extending the existing formatter owner and limiting reuse to each render avoids persistent-cache invalidation while preserving the established formatting contract.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a bounded rendering optimization with unchanged user-facing formatting and no established urgent workflow failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary external-contributor proof gate does not apply to this maintainer-authored PR, and no authority boundary changes. Reported render benchmarks exercise the changed owners; the Tasks browser check supplements correctness but does not prove browser performance.

Evidence

What I checked:

  • Shared formatter preserves the existing contract: The helper retains Date-range validation, localized unavailable labels, system-local timezone, and the same minute-precision options. Its Intl formatter initializes only for a valid timestamp and belongs to the returned closure. (ui/src/lib/format.ts:162, 23bc7b2dd19a)
  • Reuse follows render ownership: Automations creates the formatter in renderRunsSection; Tasks shares one across active and recent sections; Usage creates one after loading, initial-error, and empty-log returns. No formatter is stored in application state, and the existing Lit base requests updates on locale changes. (ui/src/pages/usage/view-details.ts:1046, 23bc7b2dd19a)
  • Current-main and release necessity check: Inspected formatMs at fetched main b938f09 and release v2026.9.4: both still call Date.toLocaleString separately for each timestamp. The related merged PRs concern session resolution and catalog/task recovery, not this formatter optimization. (ui/src/lib/format.ts:162, b938f093b1e4)
  • Rendered behavior coverage: Read all three changed test modules and the existing formatter suite. Coverage exercises English–French–English transitions, epoch/invalid values, retained Usage details, and a pushed task update through the registered Tasks page. These protect output compatibility; they are not performance measurements. No tests were executed during this read-only review. (ui/src/pages/tasks/tasks-page.test.ts:179, 23bc7b2dd19a)
  • Complete captured body and measured limitations: Retrieved the omitted body remainder and verified SHA-256 5667e5bd74167ed97ea58523c490a9eaec5ad0517b248914caca64c8190aeeb7, matching the supplied snapshot. Reported complete-view measurements support warm synchronous-render gains and retain adverse cold/small/invalid controls. Browser paint and comparative memory gains are explicitly unclaimed. The Tasks browser result uses a production bundle with a mocked Gateway; no linked media was available in the supplied scratch directory. (23bc7b2dd19a)
  • Re-review continuity: The previous completed review reported no findings or published rank-up moves. All seven current file hashes match its source manifest reproduced in the unchanged PR body. Direct comparison with the earlier review commit could not complete because its Git object was unavailable; no new finding or regression attribution relies on that comparison. The prior performance caveat does not establish a required repair. (23bc7b2dd19a)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-09-13T06:11:59.099Z sha 377ced7f87619696d2b44e24f032e95922cab162 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T06:24:33.825Z sha 377ced7f87619696d2b44e24f032e95922cab162 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T07:17:15.290Z sha 377ced7f87619696d2b44e24f032e95922cab162 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T07:41:25.593Z sha 377ced7f87619696d2b44e24f032e95922cab162 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T09:39:01.772Z sha 0878e2ecd5c6d542d71062aaaa754f47766370fc :: blocked before merge. :: none

@steipete
steipete force-pushed the codex/v8-cron-format-round6 branch from 377ced7 to 0878e2e Compare September 13, 2026 09:07
@steipete steipete changed the title improve(ui): speed up automation run history rendering improve(ui): reuse date formatters across timestamp lists Sep 13, 2026
@steipete
steipete force-pushed the codex/v8-cron-format-round6 branch from 0878e2e to 23bc7b2 Compare September 13, 2026 09:53
@steipete
steipete merged commit 744e7e5 into main Sep 13, 2026
140 checks passed
@steipete
steipete deleted the codex/v8-cron-format-round6 branch September 13, 2026 10:13
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* refs/heads/temp/pr-146883: (159 commits)
  fix: retain route ownership while discovering conversations (#146927)
  refactor: reuse plugin fixture shell runner (#146920)
  fix(worker): stop preparing disabled live previews (#146896)
  fix(runtime): support Bun across tooling suite (#146807)
  chore(i18n): refresh native locales (#146924)
  perf(secrets): limit expiry metadata to transient credentials (#146882)
  fix(ui): preserve queued refreshes during session discovery (#146535)
  test(ui): wait for quiet scrolling and close named file tabs (#146836)
  fix(ui): prevent Usage hour filters from freezing during DST (#146919)
  test(ui): share browser page cleanup across layout fixtures (#146805)
  ci: balance complete PR runtime test groups (#146916)
  improve(infra): reduce scheduling work for session notice bursts (#146818)
  improve: prepare Gateway skill commands asynchronously (#146812)
  improve(agents): skip unused assistant delivery parsing (#146858)
  improve(ui): reuse date formatters across timestamp lists (#146789)
  fix(tests): isolate installer and Docker shell snippets (#146897)
  test(heartbeat): share explicit channel configuration fixtures (#146853)
  fix: retain conversation reply claims through write admission (#146866)
  perf(sessions): bound history reads and stabilize cursor paging (#146770)
  fix(ui): let slow dashboard downloads finish before recovery (#146881)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* refs/heads/temp/pr-146833: (43 commits)
  fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908)
  fix: retain route ownership while discovering conversations (#146927)
  refactor: reuse plugin fixture shell runner (#146920)
  fix(worker): stop preparing disabled live previews (#146896)
  fix(runtime): support Bun across tooling suite (#146807)
  chore(i18n): refresh native locales (#146924)
  perf(secrets): limit expiry metadata to transient credentials (#146882)
  fix(ui): preserve queued refreshes during session discovery (#146535)
  test(ui): wait for quiet scrolling and close named file tabs (#146836)
  fix(ui): prevent Usage hour filters from freezing during DST (#146919)
  test(ui): share browser page cleanup across layout fixtures (#146805)
  ci: balance complete PR runtime test groups (#146916)
  improve(infra): reduce scheduling work for session notice bursts (#146818)
  improve: prepare Gateway skill commands asynchronously (#146812)
  improve(agents): skip unused assistant delivery parsing (#146858)
  improve(ui): reuse date formatters across timestamp lists (#146789)
  fix(tests): isolate installer and Docker shell snippets (#146897)
  test(heartbeat): share explicit channel configuration fixtures (#146853)
  fix: retain conversation reply claims through write admission (#146866)
  perf(sessions): bound history reads and stabilize cursor paging (#146770)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
…ssion-list-roster-batch-20260913

* commit 'f513c0f345f7f2514c49ccfbc00adc3f78b9a755': (46 commits)
  chore(i18n): refresh native locales (#146924)
  perf(secrets): limit expiry metadata to transient credentials (#146882)
  fix(ui): preserve queued refreshes during session discovery (#146535)
  test(ui): wait for quiet scrolling and close named file tabs (#146836)
  fix(ui): prevent Usage hour filters from freezing during DST (#146919)
  test(ui): share browser page cleanup across layout fixtures (#146805)
  ci: balance complete PR runtime test groups (#146916)
  improve(infra): reduce scheduling work for session notice bursts (#146818)
  improve: prepare Gateway skill commands asynchronously (#146812)
  improve(agents): skip unused assistant delivery parsing (#146858)
  improve(ui): reuse date formatters across timestamp lists (#146789)
  fix(tests): isolate installer and Docker shell snippets (#146897)
  test(heartbeat): share explicit channel configuration fixtures (#146853)
  fix: retain conversation reply claims through write admission (#146866)
  perf(sessions): bound history reads and stabilize cursor paging (#146770)
  fix(ui): let slow dashboard downloads finish before recovery (#146881)
  fix: share Doctor lifecycle coordination with SQLite workers (#146714)
  fix: retain native session model provenance (#146801)
  fix: settle embedded transcript repairs before session cleanup (#146842)
  feat(macos): improve agent navigation and chat layout (#146531)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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.

Control UI timestamp lists repeat equivalent date formatter setup

1 participant