omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

omarchy-update reloads Hyprland config against the running compositor, fails when the package was just bumped (unknown config key 'misc.bell_sound')

Open hasky00 opened this issue 1 month ago • 3 comments

System details

Try Omarchy 1.2.0 VM on Apple Silicon (aarch64), Omarchy 4.0.0.r7218 edge channel, Hyprland 0.56.2 running

What's wrong?

What happened

Ran omarchy-update on an edge-channel install (Omarchy 4.0.0.r7218, Hyprland 0.56.2 running). The update installed Hyprland 0.57.0 and Omarchy r7569, then migration 1793667581 (Superwhisper) reloaded the Hyprland config.

The reload was validated by the running compositor (still 0.56.2), which does not know misc.bell_sound (added in Hyprland c019850d, 31 Oct 2026, hyprwm/Hyprland#17152). Result:

Compositor rejected shortcuts ... unknown config key 'misc.bell_sound'

The update was marked failed and shortcuts were reverted.

Verified

$ hyprland --version   # on disk
0.57.0
$ hyprctl version      # running
0.56.2

Why it matters

Any config change that lands in the same update as a Hyprland package bump will fail this way until the user reboots, because the config is checked against the old compositor while the new package is already installed. Users see a "failed update" that is really just "reboot pending".

Suggested fix

Before reloading in the migration/update path, compare hyprctl version with the installed package version. If they differ, defer the reload (or at least don't mark the update failed) and tell the user to reboot/relaunch Hyprland.

Steps to reproduce

  1. Edge-channel install with Hyprland 0.56.x running.
  2. omarchy-update when the repo has Hyprland 0.57.0 and a migration that touches a new config key (misc.bell_sound).
  3. Observe the rejected reload and failed update.

hasky00 avatar Nov 03 '26 15:11 hasky00

I traced this on quattro (5eb922f). #17420 doesn't cover it.

  • misc.bell_sound comes from Omarchy's own default/hypr/looknfeel.lua (#17152) and needs Hyprland 0.57. When one update installs both, the 0.56 compositor keeps running until the next login.
  • Migration 1793667581 runs omarchy-install-dictation-superwhisper --background, which calls superwhisper shortcuts set ... under set -e.
  • "Compositor rejected shortcuts ... reverted" isn't Omarchy text. It comes from the superwhisper CLI. That CLI reloads Hyprland and reads its config errors. The error belongs to looknfeel.lua, not to the shortcuts, but Superwhisper blames its shortcuts, reverts them and exits non-zero. The migration fails, and the update is marked failed.
  • omarchy-restart-hyprctl isn't the problem: it already ignores reload failures.

omarchy-update-restart already detects this state: readlink /proc/$(pgrep -x Hyprland)/exe ends in (deleted) after a Hyprland upgrade, and it offers a reboot at the end. Two possible fixes:

  1. The Superwhisper CLI could only fail on config errors in its own bindings file, or skip validation when the running compositor is older than the one installed.
  2. Omarchy could check that same "Hyprland replaced" condition in the installer and tolerate a failed shortcuts set there. The migration would still need to re-run after the reboot, or the profile would be left unconfigured, because app/current already exists by then.

Which side should own this is your call, so I haven't opened a PR. I'm happy to do either.

jamesponwith avatar Nov 04 '26 03:11 jamesponwith

Thanks @jamesponwith! Fixed in #18047

emirb avatar Nov 08 '26 00:11 emirb

Update from my side: the case I reported is fixed. #18047 (merged Nov 8) makes misc.bell_sound apply only when the running compositor knows the key, so an update that lands Hyprland 0.57 while 0.56 is still running no longer fails on it. Thanks for that.

The general case is still open though. Any future config key that arrives together with a Hyprland bump will fail the same way, because the config is reloaded against the compositor that is still running, not the one just installed.

Would you take a PR that guards this in one place? My idea: compare the running version (hyprctl version) with the installed package, and when they differ, skip or tolerate the reload during the update, since the new config gets read at the next login anyway. Happy to write it if that's the direction you want, or to close this issue if #18047 is the intended fix.

hasky00 avatar Nov 19 '26 18:11 hasky00