Repository navigation
fix: hide the 5h window on a Claude plan that has none - #616
Merged
Merged
Conversation
Scope: tcr status --json and TcrBar. An Anthropic row whose usage read said "five_hour": null (Ultra) now reports quotaWindows: ["sevenDay"] on tcr status --json; every other Anthropic row still carries no quotaWindows key, so the status-contract fixture is unchanged. TcrBar drops the provider == .codex gate on reportedWindows and on the card's quota rows, so a Claude row honours quotaWindows: an Ultra card draws one 7d row, its line leaves the 5h slot blank with its width kept, and its fleet-strip segment fills from the week instead of grey. The strip's Claude and Codex rules are now one function (liveRoom); a Claude row with a 5h window and no 5h reading still stays grey. Claude-Session: https://claude.ai/code/session_01MhoEKhygdXtUnsRotKmDT2
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.
🍄 After #614 an Ultra row knows its plan has no five-hour window (
5h=noneintcr status), but TcrBar 1.2.24 still drew a5hmeter readingn/aon every Ultra row and painted those rows grey in the fleet strip, because the JSON row said nothing and a nil window looks like "unmeasured".What changes:
tcr status --json: an Anthropic row whose plan has no five-hour window reportsquotaWindows: ["sevenDay"], the provider-neutral key Codex rows already use. Every other row serializes byte for byte as before (the status-contract fixtures are unchanged).reportedWindows, the card's window rows and the fleet strip's room no longer gate onprovider == .codex, so a Claude row honoursquotaWindowsthe way a Codex Pro row already did. The 5h slot in the compact line goes blank with its width kept (no layout shift), the card draws only the 7d row, and the strip paints the week's room instead of grey.Known and left for later: an Ultra card is one quota row shorter after its first usage read (Codex reserves rows for that; a Claude card does not), and the card's accessibility summary still lists the skipped 5h window on an Ultra row.
Tests: a
tcr status --jsontest for the new key and its absence on a sibling row; Swift tests forreportedWindows/lineSlotLabelson a Claude row with["sevenDay"]and for the strip segment filling from the week. Each was watched failing against the production line it guards before it went green.https://claude.ai/code/session_01MhoEKhygdXtUnsRotKmDT2