menubar: notify when a quota window crosses 80% and when it hits the limit - #1361
Merged
Merged
Conversation
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
force-pushed
the
feat/menubar-quota-crossing-notifications
branch
from
September 13, 2026 20:59
b5d5edc to
a496cf6
Compare
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.
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.