Repository navigation
Conversation
|
Reviewed, reproduced and tested on a disposable Omarchy worker running the real Quickshell notification server. The second opinion was Codex Medium. The bug is real, and this fixes it. On the fork point of One defect, fixed in 763ea6d on your branch. The saved id was reused after the notification server changed, and that can overwrite an unrelated notification. Each Quickshell server numbers ids from 1, and its Tests on the worker at 763ea6d: For the maintainer, not blocking:
This is waiting on CI, which has not run on this pull request yet, and then on the maintainer. |
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryThe PR reuses the critical warning shown when the screen fails to lock before suspend.
No new actionable issues were found. The ancestry checks did not pass, so this review used the full PR diff.
|
763ea6d to
ed0a01e
Compare
|
Re-reviewed after the rebase onto The restart case is fixed. On Two defects in ed0a01e, fixed in 2352461 on your branch:
Tests on the worker at 2352461: Not changed, for the maintainer: the content match ignores urgency. A restored critical card can be replaced by an identical low-urgency notification that then expires. That is the policy #13522 already applies to live cards, now extended across restarts. The shell part also touches the same files as #10146 and #13161. The PR description still says that a lock that cannot be taken falls back to a plain warning. That holds again, except for a timeout. The description also doesn't mention the notification service changes. This is waiting on |
|
68f62c4 changes how the warning is delivered, so this was classified again before re-reviewing it, and the two models classifying it did not agree. Claude Opus 5.5 read it as a bug fix: #10651's pile-up of permanent critical cards is still what it fixes. Codex Medium, asked separately, read it as an enhancement: the new push moves the warning into a transient user service sent after the inhibitor is released, adds a Because the classification is unsettled, the This is waiting on the maintainer to say which it is. Once that is settled it will be re-reviewed and tested at the then-current head. |
854e520 to
3021954
Compare
|
e4eb27a and 3021954 moved the head since the last classification, so this was classified again before any re-review. It is still unsettled. Claude Opus 5.5 reads it as a bug fix: #10651's pile-up of permanent critical cards is still what it fixes. The second opinion, Codex Medium, could not be asked this time. It answers on the machine, but omabot's daily limit on reviews was already used up, so no independent classification was made. The previous round, at 68f62c4, Codex Medium read it as an enhancement because of the transient user service, the new No class label is on, nothing has been run on a worker at 3021954, and nothing was pushed to your branch. This is waiting on the classification being settled, either by the maintainer or by a run where the second opinion can be asked. After that, it will be re-reviewed and tested at the then-current head. |
Each notification server numbers its ids from 1, and Quickshell's Notify replaces whatever live notification holds replaces_id without checking who sent it. An id saved before a shell restart or a reboot could therefore overwrite an unrelated card that happened to get the same number in the new server, such as a critical battery warning. Save the id with the boot and the server's pid, and offer it only to that same server. A saved id too long for Notify's uint32 made the send fail, and the file kept it, so every later warning failed too; such an id now falls back to a fresh notification. The server lookup is bounded like the script's other busctl call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
The restore reads popupStateDir asynchronously, so it can read back a file this shell wrote for a notification that arrived meanwhile. Matching that file by content against another fresh row deleted the live row's file, and once its row had been dismissed and archived, the delete took the image copies its history entry still uses. Files this shell wrote before the restore settles are now skipped, which also stops a popup dismissed during the read from reappearing. A lock attempt that errors, rather than timing out behind another reporter, sends the unlocked-suspend warning again, so a state directory that cannot be locked still gets one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
3021954 to
941291c
Compare
|
Rebased onto current quattro (81fd2d2) and resolved the conflicts, preserving upstream localization, RTL, and notification placement changes. Added coverage for localized sleep-lock warnings. Focused Linux-container checks passed: sleep-lock, notification-send, notifications, and CLI. The broad suite was not green in the limited container (128/459 shell files failed; not individually baseline-attributed). No live suspend or Quickshell visual validation was performed. |
|
Thanks for the rebase. The head moved to 941291c, so this was classified again before any re-review, and the two models still do not agree. Claude Opus 5.5 reads it as a bug fix, since #10651's pile-up of permanent critical cards is what it fixes. Codex Medium, asked separately, reads it as an enhancement, as it did at 68f62c4. The transient user service, the new It no longer merges into This is waiting on two things. The maintainer needs to settle whether this is a bug fix or an enhancement. The shell half needs porting to the new engine, or dropping if the sleep-lock half is enough there. After that it will be re-reviewed and tested on a worker at the then-current head. |
Fixes #10651
Every failed pre-suspend lock attempt sent a fresh critical notification. Those cards do not expire and are restored after shell restarts, so a repeating lock fault could leave dozens of permanent warnings.
The lock helper now saves the notification ID returned by
omarchy-notification-sendand reuses it on later failures. It saves any reassigned ID, serializes concurrent reporters with a bounded lock, and replaces the state file atomically. If state or locking is unavailable, it still sends a normal best-effort warning.Tests:
bash test/shell.d/sleep-lock-test.sh— 22 assertionsgit diff --check./test/all: CLI passed; shell passed 234/235 files. The remainingconfig-test.shpackage-manifest failure also occurs on unmodifiedquattro.#10146 groups identical cards visually but keeps each underlying notification and persistence file. This call-site fix prevents those duplicate records from being created.