menubar: drop the early-reset dock band and history caption (#1452)
Some checks are pending
CI / semgrep (push) Waiting to run
macOS Menubar CI / test (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / test (24) (push) Waiting to run
Tests / test (26) (push) Waiting to run
Tests / test-platforms (macos-latest) (push) Waiting to run
Tests / test-platforms (windows-latest) (push) Waiting to run
Tests / desktop (push) Waiting to run

* fix(menubar): drop the early-reset dock band and history caption

* menubar: drop stale band references left by the caption removal
This commit is contained in:
Resham Joshi 2026-09-16 11:29:38 +02:00 • committed by GitHub
parent 47b7441dd6
commit 31bd0ff2cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 17 additions and 478 deletions

View file

@ -220,8 +220,8 @@ Add a `Capacity Dock` section to General Settings:
- `Appearance` menu with `Graphite` and `Liquid Glass`.
- Early-reset notifications are a switch in the General Settings
`Notifications` section, default on, stored under
`codeburn.quota.earlyResetNotificationsEnabled`. With it off the dock band
still appears; only the system notification is withheld.
`codeburn.quota.earlyResetNotificationsEnabled`. With it off the system
notification is withheld.
- A compact switch list containing only connected or usable stale providers.
Provider connection and credential entry remains in the Providers section;
General Settings never presents the entire 69-provider catalog as dock

View file

@ -67,20 +67,15 @@ Anthropic sometimes resets a usage window before its scheduled time. The menubar
notices on the existing refresh lifecycle — no extra request — by comparing each
fetch's windows against the previous fetch's readings, which are kept per window
in `UserDefaults` alongside the record of what has already been announced.
`SubscriptionSnapshotStore`'s 30 days of snapshots then give the local history
caption ("Last 3 weekly resets came ~18h early"), derived from the stored reset
times alone: a fixed window that starts at `t` ends at `t + length`, so a cycle
that ends sooner than a full window after the previous cycle's scheduled end
began early by the difference. Everything is local; nothing is fetched to
produce it.
Everything is local; nothing is fetched to produce it. A detected reset posts one
system notification and nothing else: there is no persistent UI for it.
The detection is deliberately quiet. It needs a validated window length (the
fixed 5-hour and 7-day limits), a stored reset that has not yet passed, and
either a reset time anchored to a genuinely new cycle or a fall of at least 40
points that lands at or under 10%. A scheduled reset, a plan change, clock or
timestamp skew, a window appearing or disappearing, a first observation and a
reconnect after a terminal failure all produce nothing. Short windows get no
history summary, the same discipline `QuotaPace` applies to its ETA.
reconnect after a terminal failure all produce nothing.
## When fixing a bug here