-
- Headroom Overhead
-
-
Overhead Range
-
- TTFB (upstream)
-
-
TTFB Range
diff --git a/tests/test_proxy_dashboard_stats_cache.py b/tests/test_proxy_dashboard_stats_cache.py
index ba0cde706..0a2569483 100644
--- a/tests/test_proxy_dashboard_stats_cache.py
+++ b/tests/test_proxy_dashboard_stats_cache.py
@@ -605,6 +605,17 @@ def test_dashboard_uses_cached_stats_and_lazy_history_feed_polling() -> None:
assert "cliFilteringLabel + ' Filtered (lifetime)'" in html
+def test_dashboard_session_metrics_do_not_repeat_proxy_tokens_without_new_context() -> None:
+ html = get_dashboard_html()
+
+ assert "proxy tokens removed" not in html
+ assert 'Headroom Overhead' not in html
+ assert 'TTFB (upstream)' not in html
+ assert "Overhead Range" in html
+ assert "TTFB Range" in html
+ assert "Proxy Removed" in html
+
+
def test_proxy_throughput_in_stats_endpoint(monkeypatch: pytest.MonkeyPatch) -> None:
"""Verify that the /stats endpoint includes a 'throughput' key in the response.