Repository navigation
Keep the default layout getter quiet without a Hyprland session - #21999
Open
TechLuddite wants to merge 1 commit into
Open
TechLuddite wants to merge 1 commit into
TechLuddite wants to merge 1 commit into
Conversation
With no saved default, omarchy-hyprland-workspace-layout-default falls back to hyprctl getoption piped to jq. Outside a Hyprland session hyprctl prints its reason on stdout, which jq cannot parse, so omarchy update over SSH logged "jq: parse error: Invalid numeric literal at line 1, column 28" while migration 1796068911.sh ran. Discard jq's stderr on that fallback. Output and exit status are unchanged. Co-Authored-By: Claude Fable 5.2 (high effort, Claude Code) on behalf of TechLuddite
Contributor
Confidence Score: 5/5
[Low impact] The PR appears safe to merge. SummaryKeeps
Reviews (2) · Last reviewed commit: "Keep the default layout getter quiet wit..." · Reviewed by Greptile |
Collaborator
|
Recommend: Hold — waiting for a maintainer to arrange worker verification of the PR head. An ISO worker reproduced the error on , where the getter still printed and exited successfully. GitHub CI passed on this head. The bot credential scope prevented a separate worker run of the head. Codex High, Opus 5.5 High and muse-wonder via pi, thinking high agreed on the fix. The model reviews may have shared context. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
Running
omarchy updatefrom outside a Hyprland session (SSH, tmux) prints a stray error in the update log while migration1796068911.shruns:With no saved default,
omarchy-hyprland-workspace-layout-defaultfalls back tohyprctl getoption general.layout -j | jq. Outside a sessionhyprctlprintsHYPRLAND_INSTANCE_SIGNATURE not set! (is hyprland running?)on stdout, whichjqcannot parse. The command still printsdwindle, and the migration's choice is unaffected because a floating default only lives in the saveddefault.lua. The only effect is the misleading line.This discards
jq's stderr on that fallback. Output and exit status are unchanged.Verification
omarchy-hyprland-workspace-layout-defaultover SSH with noHYPRLAND_INSTANCE_SIGNATURE.test/shell.d/hyprland-floating-workspaces-test.sh: thehyprctlstub answersgetoptionwith the real no-session message, and the command must printdwindleand nothing else. It fails without the fix, showing thejqparse error, and passes with it.bash test/shell.d/hyprland-floating-workspaces-test.sh(passes). Did not run./test/all.hyprctl | jqpattern exists inomarchy-hyprland-monitor-focused,omarchy-hyprland-monitor-laptop,omarchy-hw-touchpad,omarchy-hyprland-workspace-layout-currentandomarchy-hyprland-workspace-layout-toggle.Screenshots
No visible change: removes one stderr line from the update log.
Co-Authored-By: Claude Fable 5.2 (high effort, Claude Code) on behalf of TechLuddite