mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4297] [GUI] Monitor: show cached, reading and generated tokens in the Context card #1899
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1899
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thisisspartan on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4297
Summary
Propose replacing the single-figure "Context fill" gauge on the Monitor tab
with a four-segment context donut: Cached (prefix) | Reading (prefill) |
Generating (decode) | Free — each segment in the ring and as a legend
row with its percent and token count; the center keeps the exact usage figure.
Why this matters
The current gauge shows one number: used / window. When a prompt reuses a
cached prefix, none of it is visible during the request:
The reuse only appears after the request finishes, in the Reused column. Your
own 0.2.3 release notes advertise this behavior ("91% of the prompt was reused
instead of 0%") — during such a request the Monitor shows none of it.
Proposed behavior
cached prefix.
tone at 85%+, the danger tone only on a real overflow.
/metrics(prompt_tokens,prompt_read,generated; the cached part from the request'sreusedrecord — the same source the Reused column uses). One additive line in
serve/server.pyexposes that counter while the request runs, so the cachedarc appears live; without it it appears when the request completes.
stay as a separate card below, unchanged.
Scope
app.js, onecard markup block in
index.html, one rule block and two theme-scoped tokenlines in
app.css(no existing theme token redefined; the donut adds onelocal
--kv-cached, a color-mix over existing tokens)./metricslive payload, as above.A working prototype is ready (screenshots and the diff can be provided on
request). Would you take this as one PR (donut + the one server line), or
prefer it split?
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.