mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-22 12:59:06 +00:00
The resting rail shows one number per provider, and that number was always the weekly (else monthly) billing window. A user watching Claude's 5-hour limit had to expand the dock and read the glance card every time, which defeats the point of an always-visible usage monitor. Clicking the provider that already rests in the rail now switches its gauge to the provider's short rolling window and back. The preference is stored per provider rather than as a Claude-only switch: the dock's collapsed row is provider-agnostic, and Codex publishes a 5-hour and a weekly window too, so the question is "which horizon for this provider", stored under CodeBurnCapacityDockGlanceWindows alongside the other dock preferences. The two horizons are named rather than labelled, so the policy works for any adapter: billing reuses QuotaSummary.headlineWindow, the app's single definition of the weekly/monthly glance, and burst matches the short rolling rows the adapters emit (5-hour, Hourly, Daily, session) while excluding anything weekly or monthly, so Claude's per-model "Weekly · Opus" row can never be read as a short window. CapacityDockGlanceWindow keeps that policy pure and testable, including the fallbacks: a provider with one window shows it whichever horizon is stored, and a stored horizon the provider stops reporting resolves to the one it does report instead of blanking the gauge. The click cannot fight the hover expansion: this branch only ever pins, never collapses, and it is reached only when the provider actually has two windows, so a single-window provider keeps the existing click-to-pin toggle. Escape and an outside click still unpin. Keyboard and VoiceOver users get the same switch as a named accessibility action on the provider cell, and the cell's accessibility value now names the window feeding the ring. The rail's geometry is untouched. Closes #1243 |
||
|---|---|---|
| .. | ||
| design | ||
| providers | ||
| release-acceptance | ||
| sync | ||
| architecture.md | ||
| optimize.md | ||