Repository navigation
Conversation
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryLow-battery warnings now use a dedicated sender name and disappear when AC connects.
|
|
Thanks for this. I read the diff at 4797f44 against Two models classified it separately and disagreed. Claude Opus 5.5 called it a bug: on Which reading applies decides how it is verified: a reproduction that fails on |
|
Closing in favour of #16562, which fixes the low battery warning staying up on the new notification engine (#15932). Thank you, Chris. Your change was written against the old engine's |
Connecting AC should dismiss the low-battery warning, even when a battery-low hook blocks after the notification has been sent. Give the warning a dedicated sender identity so dismissal works with translated titles and the critical alert still bypasses Do Not Disturb. The sender prints its notification ID after delivery; the battery service uses that completion event to queue dismissal behind popup insertion while hooks continue.
The tests run the real warning command with stubs, check the sender and urgency passed to the notification policy, preserve another sender with the same translated title, and cover send completion while a hook is blocked.
Tests:
bash test/shell.d/notifications-test.sh,bash test/shell.d/battery-test.sh