fix(web): move chat metrics into top-bar information panel

This commit is contained in:
2026-10-21 11:01:22 +01:00
parent de987555e9
commit b9ace1db62
9 changed files with 187 additions and 21 deletions
+3 -2
View File
@@ -9,8 +9,9 @@ what is done; this file covers how to run, test and verify it.
framework, no bundler, no build step, no npm install.
- **Browser-native transport.** The page opens one `WebSocket` to `/connect`,
matched by request id, with the same server-URL rules as the Android client.
- **Reported chat metrics.** Output tokens/sec, total tokens, context usage/window,
and reported USD cost stay visible above the transcript. Unreported metrics are
- **Reported chat metrics.** The top-right **Chat information** button opens
output tokens/sec, total tokens, context usage/window and reported USD cost
without taking space from the conversation. Unreported metrics are
unavailable, not zero or a subscription-price estimate.
- **Verified in a real browser.** UI claims are backed by PNGs captured from
headless Chrome against a live server (`test/ui-smoke.mjs`); a unit test alone