Repository navigation
Conversation
Critical toasts always used duration 0, so senders like omarchy-battery-low (-t 30000) never expired and were restored forever. Keep untimed critical immortal; honour a positive expireTimeout (omacom#13100). Co-authored-by: AnPod <AnPod@users.noreply.github.com>
31c0ab9 to
77ab58b
Compare
|
Thanks for the fix, @AnPod. This makes the same change as #13100, which was opened four days earlier against I compared the two diffs. Both change That cluster also has #12964, the oldest open fix for this bug, which takes a slightly different approach (no 8s floor on a timed critical toast) and is already verified. Which of them lands is the maintainer's call. If I've misread this and it does something #13100 doesn't, say so and it can be reopened. |
Summary
Critical toasts always used duration 0, so senders like
omarchy-battery-low(-u critical -t 30000) never expired and were restored on every shell restart.Keep untimed critical immortal; honour a positive
expireTimeoutwith the same 8s–30s window as normal toasts.Fixes #13100
Test plan
test/shell.d/notifications-test.shnotify-send -u critical -t 3000 testexpires; untimed critical stays