Skip to content

fix(tui): drop session token summary from header, sharpen context gauge - #34

Merged
jkyberneees merged 1 commit into
mainfrom
fix/tui-header-gauge
Aug 22, 2026
Merged

fix(tui): drop session token summary from header, sharpen context gauge#34
jkyberneees merged 1 commit into
mainfrom
fix/tui-header-gauge

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

What

Remove the ∑ ⌂ in · ⎇ out session-token summary from the top bar and enhance the context gauge that replaces it as the header's sole token metric.

Before After
▓▓░░░ 38% 380/1k · ∑ ⌂ 380 · ⎇ 0 ctx █▉░░░ 38% 380/1k

Why

  • The summary duplicated /stats and the per-turn footers, and flashed placeholder zeros (∑ ⌂ 0 · ⎇ 0) on every fresh session.
  • The gauge deserved the space: eighth-block sub-cell fill (█▉░░░) instead of coarse whole-cell ▓▓░░░, percentage tinted with the same green→amber→red pressure hue as the bar, dim ctx label, raw used/max receding into meta.
  • /stats inherits the sharper fill for free (shared gaugeGlyph).

Verification

  • TDD: TestContextGauge updated first (red), caught a real 4-vs-5-cell bug mid-implementation; new regression assertions ban /⌂ 0/⎇ 0 from the header and require the ctx label.
  • make fmt, make vet, make lint (0 issues), make test (race, all 6 pkgs) — all green locally.
  • README telemetry section synced.

The header's right cluster carried a cumulative session summary
(∑ ⌂ in · ⎇ out) that duplicated /stats and the per-turn footers
and flashed placeholder zeros on a fresh session. Remove it — the
context gauge becomes the header's sole token metric.

The gauge earns the slot: eighth-block sub-cell fill (█▉░░░ instead
of ▓▓░░░), a pressure-tinted percentage sharing the bar's
green→amber→red hue, a dim ctx label, and raw used/max receding
into the meta style. /stats inherits the sharper fill for free.
@jkyberneees
jkyberneees merged commit c221128 into main Aug 22, 2026
5 checks passed
@jkyberneees
jkyberneees deleted the fix/tui-header-gauge branch August 22, 2026 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant