Skip to content

menubar: notify when a quota window crosses 80% and when it hits the limit - #1361

Merged
iamtoruk merged 1 commit into
mainfrom
feat/menubar-quota-crossing-notifications
Sep 13, 2026
Merged

iamtoruk merged 1 commit into
mainfrom
feat/menubar-quota-crossing-notifications

Conversation

@iamtoruk

@iamtoruk iamtoruk commented Sep 13, 2026

Copy link
Copy Markdown
Member

One notification per crossing per provider, window and reset cycle: "Claude · Weekly at 80%" and "Claude · Weekly limit reached". A window on a new reset instant re-arms; a window that vanishes between fetches keeps what it fired, since absence is not a reset; a limit crossing also marks the 80% key so the quieter notice never follows the louder one. Notification permission is requested on the first real crossing, never at launch. The fired set persists in defaults so a relaunch does not repeat an announcement. Settings gains a "Quota crossings (80% and 100%)" toggle in the Notifications section, default on. The warning banner and the notifier now read one flattened window list, so they cannot disagree. Three catalog keys added in both languages; 649 Swift tests pass.

Every connected provider's windows are checked on the existing quota
refresh. A crossing fires once per (provider, window, reset instant);
the next cycle re-arms it. Authorization is requested on the first real
crossing, not at launch. Settings gains a toggle, default on.
@iamtoruk
iamtoruk force-pushed the feat/menubar-quota-crossing-notifications branch from b5d5edc to a496cf6 Compare September 13, 2026 20:59
@iamtoruk
iamtoruk merged commit f27f40a into main Sep 13, 2026
11 checks passed
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