Files
openclaw/ui
ly-wang19 4a0cd56139 fix(ui): roll formatTokens over to "M" instead of rendering "1000k" (#96298)
* fix(ui): roll formatTokens over to "M" instead of rendering "1000k"

formatTokens picks the kilo branch on the raw value (< 1_000_000), then renders
Math.round(tokens/1000). For 999_500..999_999 that rounds to 1000, producing the
nonsensical "1000k" instead of rolling over to the M branch. Re-check the rounded
kilo value and fall through to "M" when it reaches 1000, matching the sibling
formatCompactTokenCount.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* ci: retry — server-startup-session-migration timeout is main-branch flake, unrelated to formatTokens

---------

Co-authored-by: ly-wang19 <ly-wang19@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-28 10:45:12 -07:00
..
2026-06-04 20:57:09 -04:00