From 516062bd4106324affd1f137aa466605b408835b Mon Sep 17 00:00:00 2001 From: Nathan Esquenazi Date: Sat, 4 Apr 2026 14:11:28 -0700 Subject: [PATCH] feat: context usage indicator in composer footer Shows a compact bar + label in the composer footer after the first response, displaying input/output token counts, context window fill percentage, and estimated cost. Bar turns yellow >50% and red >75%. Updates on every response completion via the existing usage data from the done SSE event. Hidden until first response (no usage data yet). Inspired by PR #75 (@MartinNielsenDev). Co-Authored-By: Claude Opus 4.6 (1M context) --- static/index.html | 4 ++++ static/messages.js | 2 +- static/style.css | 7 +++++++ static/ui.js | 26 ++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index a435eea..a51ddc2 100644 --- a/static/index.html +++ b/static/index.html @@ -264,6 +264,10 @@ +