Repository navigation
Conversation
IdleMonitor.enabled was bound to idleEnabled, so a shell that started with stay-awake already on never subscribed to ext-idle-notify-v1. Turning stay-awake off then left screensaver and lock dead until a shell restart. Stay-awake still cancels idle cycles; the compositor notification stays up so disabling stay-awake can re-arm.
Custom idle timeouts can leave automatic screensaver and lock inactiveReviewed The always-enabled monitor is created before its effective timeout is knownThe initialization order in the reproduced runs was: Removing the That matrix used the unchanged service and a private synthetic Wayland server. Separate actual-shell tests on nested Hyprland reproduced the lost idle propagation with a five-second screensaver timeout; baseline rearmed normally. Impact: automatic locking can silently stop under this initialization/runtime combination. Address reuse is allocator-dependent, so this is not a claim that every customized installation fails. Suggested change: initialize the monitor only when the effective initial configuration is resolved, and handle subsequent timeout changes without losing idle-state propagation. Supplying a non-null shell reference alone is insufficient if its configuration still changes asynchronously. Add a behavioral test using the production creation order and nondefault deadlines. Verified: continuous observation and stay-awake action suppression work when configuration is settled before subscription. The supplied tests pass, but their source-text check misses this interaction. Original report: baseline successfully resubscribed here, so the stated never-resubscribe diagnosis was not independently reproduced. Runtime timeout edits also expose the underlying Quickshell problem on baseline; that pre-existing case is distinct from the new startup exposure. Review informationTest scope: real Quickshell and nested Hyprland, plus an isolated native-protocol matrix. Screensaver/lock/wake commands were recorded substitutes; no actual lock authentication, suspend or DPMS tested. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra inspected source and ran supplied tests; independent Fable 5.1 and Astra reviewers performed runtime investigations. Both final reports, supporting evidence and subsequent qualifications were read before synthesis. |
The always-on monitor was created against the builtin 150s timeout, then replaced when shell.json loaded. That replacement can drop idled, so a custom screensaver timeout never arms. Wait until both shell config files have loaded, create the notification at that timeout, and on a later change disable the monitor before writing the new timeout.
|
The startup finding is right. Taken:
The runtime test follows that creation order with a nondefault deadline (builtin 150, then 1s, and a later change to 2s) and requires |
|
Verified by source inspection: Later timeout changes disable the subscription before writing the new timeout, then re-enable it. Stay-awake remains an action gate rather than a subscription gate. No new production issue was identified in this scoped source review. This resolves the specific early-subscription finding, not a claim of runtime validation across compositors. Review informationTest scope: Pinned startup, timeout-update and stay-awake paths, supplied test source, and relevant Quickshell 0.3.1/Qt 6.11.2 source. No tests or native idle events were executed in this follow-up; actual screensaver, lock, suspend and DPMS behavior remain untested here. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra Medium inspected source and synthesized fresh independent reviews by Opus 5.5 High and GPT 6 Sol Xhigh, checking both full reports and material supporting source evidence. |
|
Reviewed at e20b54c and run on a stock Omarchy worker VM (x86_64, quickshell 0.3.1, hyprland 0.56.2) with this branch linked as the running shell, The stay-awake bug from #12302 does not reproduce on The second commit does fix a real bug. On Three other open pull requests fix that same bug, and #9570 is the best of them. #9570 (+36/-1) turns the monitor off for one 150ms tick, and only when the timeout the monitor actually uses changes. That covers both the startup swap from the built-in 150s to
I compared #9570, #8086 and #12731 by reading their diffs against Quickshell's source. Only this branch and The second opinion came from Codex at medium effort. Without seeing my conclusion, it also picked #9570, explained the same address-reuse mechanism, and found the zero-timeout problem in #12731, which I confirmed against This now waits on the maintainer, who decides which of the four lands. If it turns out to be this one, the smallest version would keep only the disable-then-retime change. |
|
Thank you for this, @z23. #9570 fixes the same problem in a way the review judged better, so this is closed in favour of it. If it does not cover your case, please say so there. Closed at the maintainer's request. The review comment above has the details; it was done by Claude Opus 5.5 with Codex Medium as a second opinion, whose agreement is not independent. |
Fixes #12302.
Turning stay-awake off (
omarchy toggle idle allow-idle) did not re-arm screensaver or lock if the shell had started with stay-awake already on.omarchy-shell idle statusthen reportedenabled:truewhile the compositor never sent another idle event.IdleMonitor.enabledwas bound toidleEnabled. That property is false until the stay-awake state file is read, and stays false for the whole session when the file is present. Quickshell'sIdleMonitoronly creates theext-idle-notify-v1notification fromenabled; a monitor that begins disabled does not re-subscribe whenenabledlater becomes true.Stay-awake still cancels idle cycles and
handleIdleChangedstill ignores events while stay-awake is on. The compositor subscription now stays up so disabling stay-awake can re-arm without restarting the shell.