Repository navigation
Conversation
|
11c697f to
c157e7e
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CkcTtVEmH9xSdHdmkXfkdM
c157e7e to
33b4be3
Compare
|
Heads up: there are already two open PRs for the same fix, #14739 and #14218 (issue #14639 tracks the never-expiring critical toast). It's probably worth comparing approaches there so maintainers only have to review one. Yours adds a nice touch by re-checking |
|
Read the diff at 33b4be3 against It will not be reviewed or tested until a second model has classified it. Nothing is needed from you in the meantime. |
|
Closing in favour of #16562, which fixes the low battery warning staying up on the new notification engine (#15932). Thank you for working on this. Your change pointed at the right moment to take the warning down, and #16562 credits it. #16562 matches the warning on its sender and icon rather than the English title, so it also works in other languages. It also covers the warning restored after a restart and one held behind an open notification deck. |
Summary
Plugging in the charger now clears the "Time to recharge!" toast. The toast is sent as critical, and critical notifications never time out (
durationForinshell/plugins/notifications/Service.qml), so until now it stayed on screen until clicked away, even while charging.warningProcessexit: catches a warning that was still being sent when the charger connected, which the plug-in dismiss would have missed.execDetached: every dismiss starts its own process, so a dismiss is never queued behind the warning or dropped while another is running.omarchy-power-present: the power source is checked when the toast is removed, so a dismiss that lands after a quick unplug leaves the new warning alone.Evidence
Tested on a Framework laptop with the patched shell, sending the same toast as
omarchy-battery-low. The screenshots were taken with an earlier version of this branch that had the same plug-in dismiss:Before: charger unplugged, "Time to recharge!" toast on screen
After: charger plugged back in, toast gone 2s later
test/shell.d/battery-test.sh,battery-status-test.shandpower-test.shpass. The race fallback is not covered by a test.Merge Danger
Door: two-way
One method and two calls to it in
shell/plugins/services/battery/Service.qml. Reverting the commit fully undoes it, and there is no migration or config change.Blast Radius: tiny
bin/omarchy-battery-lowchanges, this string has to change with it.omarchy-battery-lowruns thebattery-lowhook after sending the toast, so in the race case a slow hook delays the fallback dismiss until the hook finishes.🤖 Generated with Claude Code
https://claude.ai/code/session_01CkcTtVEmH9xSdHdmkXfkdM