Skip to content

fix(tui): dim the token meter's idle rate - #1061

Merged
edwin-zvs merged 1 commit into
mainfrom
dim-idle-legend-rate
Aug 1, 2026
Merged

fix(tui): dim the token meter's idle rate#1061
edwin-zvs merged 1 commit into
mainfrom
dim-idle-legend-rate

Conversation

@edwin-zvs

Copy link
Copy Markdown
Contributor

What

A model with no work in the last minute is listed as idle rather than 0/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.
  • the rate word — legend_rate_style(color, dim, rate). A live reading keeps full strength; idle blends 70% toward theme.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: idle must differ from the live style and from the plain gray.

specs/0167-fleet-token-meter.md gets 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/cli only → the relevant binary is construct:

/Users/moon/agentd/.claude/worktrees/dim-idle-legend-rate/target/debug/construct

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.
@edwin-zvs
edwin-zvs merged commit cd0bd64 into main Aug 1, 2026
1 check passed
@edwin-zvs
edwin-zvs deleted the dim-idle-legend-rate branch August 1, 2026 03:18
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