Claude Code enforces an 80% context window limit as a safety mechanism. The statusline was showing the raw percentage, which meant the bar never reached 100% before Claude ran out of context. This change scales the percentage so that: - 0% real usage = 0% displayed - 80% real usage (the actual limit) = 100% displayed Color thresholds are adjusted accordingly to maintain the same visual progression (green -> yellow -> orange -> red with skull). Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
3.1 KiB
Executable File
3.1 KiB
Executable File