[BUG] /usage bars render correctly on mount then collapse to broken layout
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Summary
In the /usage dialog, the quota bars render correctly for a split second on mount and then flip to a broken layout. Once in the broken state, the "Current session" bar is missing entirely, the "Current week (all models)" bar is squeezed onto the same line as the Resets … text instead of appearing on its own line, and the "Extra usage" line has the trailing word used jammed onto the reset text with no separator or bar. The "Current week (Sonnet only)" bar, which has no reset text preceding it, renders correctly. Resizing the terminal has no effect.
Reproduces in every terminal I've tried. Screenshot and video attached.
<img width="918" height="600" alt="Image" src="https://github.com/user-attachments/assets/17dfbfa5-c412-4e27-b989-eb2f717fedaa" />
https://github.com/user-attachments/assets/b672d0b2-321a-4f0d-b208-728a48e69a94
What Should Happen?
Each section ("Current session", "Current week (all models)", "Current week (Sonnet only)", "Extra usage") should render as:
- Header label
Resets …line- Progress bar on its own line
N% used(or$X / $Y spent) to the right of the bar
Error Messages/Logs
Steps to Reproduce
- Open Claude Code in any terminal
- Run
/usage - Switch to the Usage tab
- Watch the first frame render — bars are correct — then the dialog re-renders into the broken state
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.112 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
Environment
- Claude Code version: 2.1.112
- OS: macOS (Darwin 25.3.0)
- Terminals tested: iTerm2, Superset.sh — bug reproduces in both
- Shell: zsh + oh-my-zsh (also reproduces with
zsh -f) $TERM:xterm-256color
Notes (written by claude)
The only section that survives the re-render correctly is "Current week (Sonnet only)", which is also the only section without a Resets … line immediately preceding the bar. That suggests the post-mount layout pass isn't reserving bar width before laying out the reset-text line, so the bar gets pushed onto the wrong line or dropped when the Resets … text is long (full date + timezone). Because the bug is terminal-agnostic, it's almost certainly in the Ink/React TUI layout logic rather than terminal emulation.
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗