feat(tui): shade cache-read meter bands instead of recoloring them - #1070
Merged
Conversation
A model owned two colors: its series color for new work, and that color blended toward black for the volume its provider served from cache. Two shades of one hue is what the meter otherwise uses for *nothing*, and a recessed color only reads as recessed next to the brighter one — a column that is entirely cache-read just looked like a dim model. Give each model exactly one color, the one on its legend dot, and carry the split in fill instead: cache-read cells are the shaded block in the model's own color, new work stays solid. A cell can only be shaded if one band owns it outright and fills it to the top — the eighth-blocks have no half-density counterpart, and a background can't carry a glyph — so the single cell where a model's two parts meet goes to whichever owns more of it, the same rule the partial cell topping a column already followed. Flipping the bands to cache-first aims that cell at new work, where a solid block is the right answer anyway, so the degradation costs nothing visible in practice.
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.
A model owned two colors: its series color for new work, and that color blended toward black for the volume its provider served from cache. Two shades of one hue is what the meter otherwise uses for nothing, and a recessed color only reads as recessed next to the brighter one — a column that is entirely cache-read just looked like a dim model.
Now each model owns exactly one color, the one on its legend dot, and the split is carried by fill: cache-read cells are
▒in the model's own color, new work stays█.The one cell that can't hold the split
A cell can only be shaded if one band owns it outright and fills it to the top — the eighth-blocks have no half-density counterpart, and a background can't carry a glyph. So the single cell where a model's two parts meet goes to whichever owns more of it, which is the rule the partial cell topping a column already followed.
The bands are flipped to cache-first (cache-read at the base, new work above) so that cell always lands on new work, where a solid block is the correct rendering anyway. The degradation costs nothing visible in practice.
Boundaries between different models are unaffected — they still differ in color, so they keep the fg-over-bg encoding.
Notes
specs/0167-fleet-token-meter.mdupdated: the "must be a color rather than an attribute" reasoning is superseded, and the cache-first ordering is recorded as a rendering requirement rather than a stylistic choice.constructbinary (crates/cli).