fix(tui): dim the token meter's idle rate - #1061
Merged
Merged
Conversation
A model with no work in the last minute is listed as `idle` rather than `0/s`, but it was drawn at the same strength as the live figures beside it — so a legend of mostly-quiet models read as loud as a busy one, and finding the models actually working meant reading every row. Dim the word. Only the rate word: the dot and the model name still carry the series' full color, because they name a band the graph paints in that color. And only partway toward the neutral gray the fleet sum uses — a row that goes fully neutral the moment its model goes quiet stops pointing at its band, which is the one thing the legend exists to do.
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
A model with no work in the last minute is listed as
idlerather than0/s(spec 0167). It was drawn at the same strength as the live figures beside it, so a legend of mostly-quiet models read as loud as a busy one and finding the models actually working meant reading every row.Now the rate word dims when it's
idle.How
The legend entry used to render as one
set_string. It's split into two:● <model>— unchanged, full series color. The dot names a band the graph paints in that color, so it can't move.legend_rate_style(color, dim, rate). A live reading keeps full strength;idleblends 70% towardtheme.dim, the same gray theΣfleet figure uses.Partway toward that gray, not onto it. A row that goes fully neutral the moment its model goes quiet stops pointing at its band, which is the one thing the legend exists to do. The new test pins both ends of that:
idlemust differ from the live style and from the plain gray.specs/0167-fleet-token-meter.mdgets a paragraph in the legend section recording the reasoning, so the 70% doesn't get "simplified" to neutral later.Testing
cargo test --workspace— 2215 passed, 0 failed.No recording: the change is a color-strength tweak on one word, and staging a legend with a live series and an idle one side by side needs a fleet with real token history. Happy to record if you want it.
Binaries
Touches
crates/clionly → the relevant binary isconstruct:/Users/moon/agentd/.claude/worktrees/dim-idle-legend-rate/target/debug/construct