Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; both previous findings are fixed and no new actionable issues remain. SummaryAdds a separate notification allowance for each sender and for critical alerts. Excess notifications become history entries and update one summary card.
Reviews (2) · Last reviewed commit: "Translate flood summary in Toast and hol..." · Reviewed by Greptile |
|
@dhh @omarchybot holding back a notification flood from one sender is in #21030. The token bucket is 10, refilled one every 3s, with a separate bucket for criticals. The excess is one summary card and a
Please consider closing this as superseded only after #21030 is accepted. Leaving the close to you. |
Part of #12262.
A sender in a loop (a crashing plugin, a script, a site) can fill the screen with cards until the 100-card cap. The notification daemon now gives each sender an allowance and folds the excess into one card.
Delivery.floodAdmit, an integer token bucket).flooded, as a silenced notification is, so the history key brings it back. Ephemeral ones (transient,notify-send,omarchy-action) are dropped, as under Do Not Disturb. One summary card per sender counts what was held back.replaces_idupdate, an identical copy that takes over a live card, a notification with a verification code, and anything Do Not Disturb or a fullscreen window already held back.Limits, stated in
docs/notifications.md: there is no global limit beyond the existing 100 live cards, and a sender that changes its app name on every notification is not limited.Testing
test/shell.d/notifications/logic.cjs(run bynotifications-test.sh): the bucket arithmetic (burst, refill, a clock going back, pruning), the sender key, and the admission path against the fake model: excess held back and recorded, per app and per site, the critical allowance, free updates, copies and codes (with and without a token left, also for a card not yet inserted), ephemeral excess, Do Not Disturb and fullscreen spending nothing, the 100-card cap coming first, and the summary card under dismissal and impersonation.flooded; another app's notification still appeared. Onquattrothe same storm shows 40 cards.#16975 and #10157 (crash-card storms) are separate and touch
Store.jsandMarkup.js, which this leaves alone.