claude-code - 💡(How to fix) Fix Statusline usage indicators: replace bars with percentages, fix Current Session bar fill, add countdown reset label

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

1. Bars overflow on normal-width terminals. The 7D bar gets truncated to `...` because three filled bars take too much horizontal space. Users with narrow panes lose the third indicator entirely.

RAW_BUFFERClick to expand / collapse

The bottom-of-terminal usage indicators (`CT ████ | 5h ████ | 7D █..`) have three issues that compound:

1. Bars overflow on normal-width terminals. The 7D bar gets truncated to `...` because three filled bars take too much horizontal space. Users with narrow panes lose the third indicator entirely.

2. Current Session bar visually oversells the percentage. On `claude.ai/settings/usage`, "All Models" at 50% renders exactly half-full and "Sonnet only" at 4% renders a tiny sliver — both visually accurate. But "Current Session" at 35% renders to roughly 50-60% fill, side-by-side with the other (correct) bars on the same page. The terminal `5h` bar shows the same inflation. Appears to be a specific rendering issue on the Current Session bar (different cap style / padding / scale), not a global bar bug.

3. Count-up bar with countdown label is contradictory. Bars fill towards 100% (count up = used), while reset-text is countdown ("Resets in 1h 43m"). Two opposite directions for the same session creates mental load when judging remaining capacity at a glance.

Proposed compact format:

``` CT 35% | 5h 75% RS 43m | 7d 4% RS 6d ```

  • Usage as `%` instead of bar — compact, no overflow, no rendering ambiguity
  • Reset-time label `RS 43m` (minutes inside hour) or `RS 6d` (days for week-window) in green next to the percentage
  • Lowercase duration units consistently: `7d` not `7D`, matching `5h`

Color suggestion: percentage in red >80%, amber 60-80%, neutral below. Reset label always green (informational, time-until-recovery).

Why this matters: every Claude Code user sees this every interaction. Current display takes mental parsing (bar visual + reset text + interpreting direction). `35% RS 43m` is a single glance. EOF

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING