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
+24
View File
@@ -516,6 +516,30 @@
.chat-compaction-break { flex-basis: 100%; height: 0; }
.chat-compaction-status { color: var(--accent); }
/* Native usage snapshots sit outside the transcript scroller. Streaming stats
patch only this rail, never the focused composer or its selection. */
.chat-usage-metrics {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px 16px;
margin: 0 0 10px;
padding: 6px 2px 10px;
border-bottom: 1px solid var(--border);
}
.chat-usage-metric { min-width: 0; }
.chat-usage-metric dt { color: var(--muted); font-size: 11px; }
.chat-usage-metric dd {
margin: 2px 0 0;
font-size: 12px;
line-height: 18px;
font-variant-numeric: tabular-nums;
overflow-wrap: anywhere;
}
.chat-usage-metric[data-available="false"] dd { color: var(--muted); }
@media (max-width: 600px) {
.chat-usage-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.chat-jump { position: absolute; right: 14px; bottom: 14px; border-color: var(--accent); color: var(--accent); }
/* The tool-call chip and its panel (C6). The panel is a fixed overlay, so it