fix(tui): drop session token summary from header, sharpen context gauge - #34
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Remove the
∑ ⌂ in · ⎇ outsession-token summary from the top bar and enhance the context gauge that replaces it as the header's sole token metric.▓▓░░░ 38% 380/1k · ∑ ⌂ 380 · ⎇ 0ctx █▉░░░ 38% 380/1kWhy
/statsand the per-turn footers, and flashed placeholder zeros (∑ ⌂ 0 · ⎇ 0) on every fresh session.█▉░░░) instead of coarse whole-cell▓▓░░░, percentage tinted with the same green→amber→red pressure hue as the bar, dimctxlabel, rawused/maxreceding into meta./statsinherits the sharper fill for free (sharedgaugeGlyph).Verification
TestContextGaugeupdated first (red), caught a real 4-vs-5-cell bug mid-implementation; new regression assertions ban∑/⌂ 0/⎇ 0from the header and require thectxlabel.make fmt,make vet,make lint(0 issues),make test(race, all 6 pkgs) — all green locally.