Repository navigation
fix(statusline): show extra usage only while active, dim the cost estimate - #234
Merged
Merged
Conversation
…imate The Ultra plan reports no five-hour window, which made the session cost fallback (shown when no five_hour limit exists) permanent, and the extra usage segment stayed up all month once any credit had been spent. - cost estimate is always shown when above $0, dim with a `~$` prefix and no colour thresholds - the extra-usage segment shows only while credits are in play: a reported limit is at 100%, the monthly cap is hit, or used credits just rose (held for 10 minutes), and renders as used/limit - poll the usage endpoint every 60s while in play, 5 minutes otherwise - bump statusline to 3.4.1 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Ultra plan has no five-hour window, so the statusline's session-cost fallback (shown when no
five_hourlimit exists) became permanent, and the extra-usage segment stayed up all month once any credit had been spent.~$prefix and no colour thresholds.⊕ $used/$limitextra-usage segment now shows only while credits are in play: any reported limit is at 100%, the monthly cap is hit (red), orused_creditsrose since the last poll (held for 10 minutes). With an unlimited cap it shows$usedalone.Extratype updated; plugin bumped to 3.4.1 (statusline is Claude-only, no Copilot mirror).Caveats
hooks/register.tsxhas no tests and has not been exercised live, so the segment has not been seen appearing.spend.balancewasnullwhen checked and its shape is unknown.Test plan
bash .github/scripts/validate-all.shpasses (703 plugin tests, structure, frontmatter, markdown, shell lint, CI parity)⊕appears and~$stays dim after hitting the weekly limit🤖 Generated with Claude Code