mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #596] Add Conversation Cache Management UI to Monitor Tab #279
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#279
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 @StoyanStAtanasov on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/596
Summary
Users running multiple simultaneous agents need transparent visibility into the conversation cache behavior. Currently, KV cache slot management happens silently in the background with no way to see:
Problem
With
--conversation-cache-mib 16384 --conversation-cache-slots 8configured, users can't:Proposed Solution
Add a new "Conversation Cache" card to the Monitor tab that displays:
Visual Design
Implementation Plan
Phase 1: Backend Data Collection (
serve/server.py)Extend
/metricsto include acache_statepayload exposing active/parked slots, tokens retained, memory used, and last-used timestamps.Phase 2: Frontend Display (
serve/web/app.js+serve/web/index.html)Add a new Conversation Cache card to the Monitor tab, with a utilization gauge and a table of cached sessions.
Phase 3: Request Tracking (Optional, v2)
Support an optional
X-Agent-IDoragent_idvalue so different agent sessions can be labeled in the UI.Files to Modify
serve/server.pyserve/web/index.htmlserve/web/app.jsserve/web/components.css(if needed)Acceptance Criteria
Related Issues
@Niko1221 commented on GitHub (Oct 4, 2026):
Added in 0.1.39: the Monitor tab has a Conversation cache card, and
/metricshas the same data under"conversation_cache". With--conversation-cache-mibon it shows the parked conversations against the slots and the RAM budget, how many were parked, restored and evicted, and the last switch, read from the engine's own log lines. For every setup it shows how many prompt tokens the cache gave back, in the last request and since the start. Labelling sessions by agent (X-Agent-ID) is not in this step.