Repository navigation
Reload Hyprland resiliently from outside the session - #17420
Conversation
Running omarchy update from a remotely started herdr left the Superwhisper migration failing silently: the shell had no HYPRLAND_INSTANCE_SIGNATURE, so `hyprctl reload >/dev/null` exited 1 with its error discarded on stdout, and the update stopped with nothing to show for why. omarchy-restart-hyprctl now finds the newest live Hyprland instance when the signature is missing or stale, does nothing when no Hyprland is running, and reports a real reload failure on stderr. The dictation installers and removers reload through it and no longer fail once their config is saved. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…session hyprctl already finds the running instance itself, with no signature and no XDG_RUNTIME_DIR, so the instance discovery and stale-signature handling go. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The budget test runs theme-set without a Hyprland signature, so the helper took the --instance 0 path the test didn't expect. Drop the repeated caller comments. Co-Authored-By: Claude Opus 5.5 <[email protected]>
[High impact] The shared reload path reaches commands across Omarchy's Hyprland workflows. Update the two appearance tests before merging so they keep working outside a Hyprland session. Findings
SummaryCentralizes Hyprland reloads through
Reviews (3) · Last reviewed commit: "Reload Hyprland through omarchy-restart-..." · Reviewed by Greptile |
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Go back to the original name, route every bin/ reload through it, and let the helper absorb a missing Hyprland so callers need no || true. Co-Authored-By: Claude Opus 5.5 <[email protected]>
| done | ||
|
|
||
| hyprctl reload >/dev/null || exit 1 | ||
| omarchy-restart-hyprctl |
There was a problem hiding this comment.
Appearance tests fail outside sessions
When HYPRLAND_INSTANCE_SIGNATURE is unset, this call now sends hyprctl --instance 0 reload. But hyprland-corners-test.sh and hyprland-window-transparency-test.sh still require the exact log entry hyprctl reload. Both tests stub hyprctl without setting a signature, so they now fail on headless machines.
Update both tests to stub omarchy-restart-hyprctl or set a test signature, as theme-set-budget-test.sh already does.
* Reload Hyprland resiliently from outside the session Running omarchy update from a remotely started herdr left the Superwhisper migration failing silently: the shell had no HYPRLAND_INSTANCE_SIGNATURE, so `hyprctl reload >/dev/null` exited 1 with its error discarded on stdout, and the update stopped with nothing to show for why. omarchy-restart-hyprctl now finds the newest live Hyprland instance when the signature is missing or stale, does nothing when no Hyprland is running, and reports a real reload failure on stderr. The dictation installers and removers reload through it and no longer fail once their config is saved. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Simplify omarchy-restart-hyprctl to hyprctl --instance 0 outside the session hyprctl already finds the running instance itself, with no signature and no XDG_RUNTIME_DIR, so the instance discovery and stale-signature handling go. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Rename to omarchy-restart-hyprland and fix theme-set budget test The budget test runs theme-set without a Hyprland signature, so the helper took the --instance 0 path the test didn't expect. Drop the repeated caller comments. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Test that a failed Hyprland reload doesn't fail Superwhisper setup Co-Authored-By: Claude Opus 5.5 <[email protected]> * Reload Hyprland through omarchy-restart-hyprctl everywhere Go back to the original name, route every bin/ reload through it, and let the helper absorb a missing Hyprland so callers need no || true. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Resolve the dictation test stub list by keeping the wtype and wl-copy stubs from this branch alongside the omarchy-restart-hyprctl stub added in omacom#17420. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018nY32cjvLYnzrixgw19o1Y
* Reload Hyprland resiliently from outside the session Running omarchy update from a remotely started herdr left the Superwhisper migration failing silently: the shell had no HYPRLAND_INSTANCE_SIGNATURE, so `hyprctl reload >/dev/null` exited 1 with its error discarded on stdout, and the update stopped with nothing to show for why. omarchy-restart-hyprctl now finds the newest live Hyprland instance when the signature is missing or stale, does nothing when no Hyprland is running, and reports a real reload failure on stderr. The dictation installers and removers reload through it and no longer fail once their config is saved. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Simplify omarchy-restart-hyprctl to hyprctl --instance 0 outside the session hyprctl already finds the running instance itself, with no signature and no XDG_RUNTIME_DIR, so the instance discovery and stale-signature handling go. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Rename to omarchy-restart-hyprland and fix theme-set budget test The budget test runs theme-set without a Hyprland signature, so the helper took the --instance 0 path the test didn't expect. Drop the repeated caller comments. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Test that a failed Hyprland reload doesn't fail Superwhisper setup Co-Authored-By: Claude Opus 5.5 <[email protected]> * Reload Hyprland through omarchy-restart-hyprctl everywhere Go back to the original name, route every bin/ reload through it, and let the helper absorb a missing Hyprland so callers need no || true. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
* Reload Hyprland resiliently from outside the session Running omarchy update from a remotely started herdr left the Superwhisper migration failing silently: the shell had no HYPRLAND_INSTANCE_SIGNATURE, so `hyprctl reload >/dev/null` exited 1 with its error discarded on stdout, and the update stopped with nothing to show for why. omarchy-restart-hyprctl now finds the newest live Hyprland instance when the signature is missing or stale, does nothing when no Hyprland is running, and reports a real reload failure on stderr. The dictation installers and removers reload through it and no longer fail once their config is saved. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Simplify omarchy-restart-hyprctl to hyprctl --instance 0 outside the session hyprctl already finds the running instance itself, with no signature and no XDG_RUNTIME_DIR, so the instance discovery and stale-signature handling go. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Rename to omarchy-restart-hyprland and fix theme-set budget test The budget test runs theme-set without a Hyprland signature, so the helper took the --instance 0 path the test didn't expect. Drop the repeated caller comments. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Test that a failed Hyprland reload doesn't fail Superwhisper setup Co-Authored-By: Claude Opus 5.5 <[email protected]> * Reload Hyprland through omarchy-restart-hyprctl everywhere Go back to the original name, route every bin/ reload through it, and let the helper absorb a missing Hyprland so callers need no || true. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 5c0d91a)
Problem
Running
omarchy updatefrom a remotely started herdr failed on migration1793667581(finish Superwhisper setup) with no visible error. The shell had noHYPRLAND_INSTANCE_SIGNATURE, sohyprctl reload >/dev/nullinomarchy-install-dictation-superwhisperexited 1. hyprctl prints that error on stdout, so the update just stopped with "Something went wrong during the update!"Fix
omarchy-restart-hyprctluseshyprctl --instance 0 reloadwhen there's no signature, so it reaches the running Hyprland from ssh or a remote herdr.|| true.hyprctl reloadinbin/now goes through the helper. Shipped migrations are left as they are.Tests
restart-hyprctl-test.shcovers the in-session, outside-session and no-Hyprland cases.theme-set-budget-test.shruns theme-set with a signature, as a real session has.🤖 Generated with Claude Code