Skip to content

fix: hide the 5h window on a Claude plan that has none - #616

Merged
dhkts1 merged 1 commit into
mainfrom
fix/tcrbar-hide-5h-on-ultra
Nov 1, 2026
Merged

dhkts1 merged 1 commit into
mainfrom
fix/tcrbar-hide-5h-on-ultra

Conversation

@dhkts1

@dhkts1 dhkts1 commented Nov 1, 2026

Copy link
Copy Markdown
Owner

🍄 After #614 an Ultra row knows its plan has no five-hour window (5h=none in tcr status), but TcrBar 1.2.24 still drew a 5h meter reading n/a on 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 reports quotaWindows: ["sevenDay"], the provider-neutral key Codex rows already use. Every other row serializes byte for byte as before (the status-contract fixtures are unchanged).
  • TcrBar: reportedWindows, the card's window rows and the fleet strip's room no longer gate on provider == .codex, so a Claude row honours quotaWindows the 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 --json test for the new key and its absence on a sibling row; Swift tests for reportedWindows/lineSlotLabels on 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

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
@dhkts1
dhkts1 merged commit 4272866 into main Nov 1, 2026
13 checks passed
@dhkts1
dhkts1 deleted the fix/tcrbar-hide-5h-on-ultra branch November 1, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant