Skip to content

feat: add a pace indicator to the usage bars#25

Open
carlosresu wants to merge 1 commit into
CodeZeno:mainfrom
carlosresu:feat/pace-indicator
Open

feat: add a pace indicator to the usage bars#25
carlosresu wants to merge 1 commit into
CodeZeno:mainfrom
carlosresu:feat/pace-indicator

Conversation

@carlosresu

@carlosresu carlosresu commented May 15, 2026

Copy link
Copy Markdown

Summary

Adds an opt-in pace indicator that marks where usage should be if spread evenly across the window, so each bar shows at a glance whether you can keep working or are about to run out. Rebased on v1.4.8 and extended to the Antigravity model.

  • The expected position is derived from each section's resets_at and the fixed window length (5h / 7d).
  • Green — behind pace: headroom to ramp up before the window resets.
  • Red — ahead of pace: on a trajectory to exhaust the quota before it resets.
  • Two styles: Tick (a thin vertical bar at the expected-pace position) and Solid (a filled band between actual usage and expected pace).
  • Drawn on the bars of all three models — Claude, Codex, and Antigravity.

Screenshots

Green = headroom to ramp up; red = trajectory to exceed quota — in either style.

Style Red — over pace Green — headroom
Solid solid red solid green
Tick tick red tick green

Settings control

A right-click Settings → Show pace indicator submenu with Off (default) / Tick / Solid as a radio group; the parent entry shows a checkmark while a style is active. Off by default; persists to settings.json via #[serde(default)]. The indicator draws inside the existing bar segments, so it does not change the widget width.

Localization

All pace strings (Show pace indicator, Off (default), Tick, Solid) are translated across all 10 supported locales.

Independence & compatibility

Branches directly off v1.4.8 main (single commit) and contains only this feature — merge it alone, or alongside the detailed-remaining-time (#24) and ETD (#38) PRs in any order: every combination merges with 0 conflicts (verified via git merge-tree + a triple-merge that builds and passes tests).

Test plan

  • cargo build + cargo test clean on v1.4.8
  • Settings → Show pace indicator lists Off/Tick/Solid; selecting one draws on the 5h/7d bars across Claude/Codex/Antigravity
  • Red when over pace, green when behind; Off clears it; widget width unchanged
  • Selected style persists across restart

@dustingraham

Copy link
Copy Markdown

This feature is exactly what I was starting to look into. I think the "where am I in the 5 hours" and "where am I in the 7 days" is so useful.

@rohal12

rohal12 commented Jun 24, 2026

Copy link
Copy Markdown

yes I built the exact same thing. this is what I need. am I on track or am I overshooting and run out of tokens on the last day?

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.

3 participants