openclaw/ui/src
Val Alexander 7c520cc0ea
web UI: fix context notice using accumulated inputTokens instead of prompt snapshot (#51721)
The context-usage banner in the web UI fell back to inputTokens when
totalTokens was missing. inputTokens is accumulated across all API
calls in a run (tool-use loops, compaction retries), so it overstates
actual context window utilization -- e.g. showing "100% context used
757.3k / 200k" when the real prompt snapshot is only 46k/200k (23%).

Drop the inputTokens fallback so the banner only fires when a genuine
prompt snapshot (totalTokens) is available.

Made-with: Cursor
2026-03-21 11:16:32 -05:00
..
i18n refactor: make setup the primary wizard surface 2026-03-15 22:01:04 -07:00
styles UI: fix and optimize overview log panels (#51477) 2026-03-21 02:14:53 -05:00
ui web UI: fix context notice using accumulated inputTokens instead of prompt snapshot (#51721) 2026-03-21 11:16:32 -05:00
css.d.ts build: update deps and stabilize tests 2026-02-22 23:32:38 +01:00
local-storage.ts fix(local-storage): improve VITEST environment check for localStorage access 2026-03-16 08:21:44 -05:00
main.ts feat: add prek pre-commit hooks and dependabot (#1720) 2026-01-25 10:53:23 +00:00
styles.css feat(ui): dashboard-v2 views refactor (slice 3/3 of dashboard-v2) (#41503) 2026-03-12 12:46:19 -05:00