feat(web): display reported chat throughput tokens context and cost

This commit is contained in:
2026-10-21 00:27:12 +01:00
parent 910028a75c
commit 0b8595f16e
12 changed files with 314 additions and 12 deletions
+3
View File
@@ -9,6 +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
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
never marks a parity row done.