dashboard: derive ctx badge thresholds from the model context window

This commit is contained in:
iris 2026-05-21 22:52:32 +02:00 committed by Mara
parent cbd4b71322
commit 4a27ef7304
4 changed files with 122 additions and 26 deletions

View file

@ -165,8 +165,11 @@ a:hover {
color: var(--cyan); border-color: var(--cyan);
text-shadow: 0 0 6px rgba(137, 220, 235, 0.4);
}
/* Context-window usage badges on dashboard container rows.
Green < 100k, yellow 100150k, red 150k (mirrors harness watermarks). */
/* Context-window usage badges on dashboard container rows. Thresholds
are derived per-container: yellow 50% and red 75% of the model's
context window (`ContainerView.context_window_tokens`), mirroring the
harness compaction watermarks. Falls back to fixed 100k / 150k when
the window is unknown. (issue #66) */
.badge-ctx-ok {
color: var(--green); border-color: var(--green);
opacity: 0.85;