Files
openclaw/ui
Miorbnli 5b3e01ba3e fix(ui): format cron run token counts and durations consistently (#108014)
* fix(ui): format cron run token counts and durations consistently

The cron run entry rendered raw unformatted token counts ("1234567 tokens")
and raw millisecond durations ("90000ms"), inconsistent with every other usage
and duration surface in the app which uses formatTokens ("1.2M") and
formatDurationCompact ("1m 30s"). An unknown duration showed "0ms" which is
misleading — it implies an instantaneous run rather than missing data.

Use formatTokens for token counts and formatDurationCompact for durations,
showing n/a when durationMs is absent, matching the rest of the UI.

Co-Authored-By: Claude <noreply@anthropic.com>

* test(ui): cover cron run metric rendering

Co-Authored-By: ZCode <noreply@zcode.ai>

* fix(ui): avoid raw duration fallback text

Co-Authored-By: ZCode <noreply@zcode.ai>

* chore(ui): refresh cron raw-copy baseline

Co-Authored-By: ZCode <noreply@zcode.ai>

* test(ui): localize invalid cron durations

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: ZCode <noreply@zcode.ai>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-21 00:30:21 -07:00
..