omarchy debug command missing from dispatcher despite binary existing and working
What happened
omarchy debug --no-sudo --print (the exact form documented for gathering
diagnostics before filing a bug) fails:
$ omarchy debug --no-sudo --print
Unknown Omarchy command: omarchy debug --no-sudo --print
Run 'omarchy commands --all' to discover available commands.
omarchy commands --all doesn't list a debug group or any omarchy debug*
command at all.
What was expected
omarchy debug --no-sudo --print to run and print diagnostics, per the
command's own metadata and the project's documented bug-report workflow.
Steps to reproduce
omarchy debug --no-sudo --print
omarchy commands --all | grep -i debug # no output
The odd part
The actual binary is present and works fine when invoked directly, and its header metadata looks identical in shape to other, correctly-indexed commands:
$ head -6 /usr/bin/omarchy-debug
#!/bin/bash
# omarchy:summary=Print debugging information
# omarchy:args=[--no-sudo] [--print]
# omarchy:examples=omarchy debug --print --no-sudo
# omarchy:requires-sudo=true
$ omarchy-debug --no-sudo --print # works, prints full system report
So the dispatcher's command index appears to be silently dropping this one
specific command (possibly related to requires-sudo=true combined with
something else - didn't dig further into the indexer itself).
System details
- Omarchy: 4.0.2-1, stable channel
- Hyprland: 0.56.2
- Kernel: 7.1.9-arch1-2
- Machine: HP Laptop 17-by1xxx, Intel Core i5-8265U
Confirmed, and the mechanism is not the one you suspected — # omarchy:requires-sudo=true has nothing to do with it. Reviewed by Opus 5 in Claude Code with an independent second opinion from Codex at xhigh reasoning; Codex derived the same mechanism from source and corrected two points in my own reading.
There is no command index to be dropped from. bin/omarchy computes OMARCHY_BIN_DIR from its own invoked location (bin/omarchy:5, dirname "${BASH_SOURCE[0]}", symlinks not resolved) and then either stats $OMARCHY_BIN_DIR/omarchy-<name> directly (bin/omarchy:397-408) or globs $OMARCHY_BIN_DIR/omarchy-* (bin/omarchy:317-320). The routable command set is exactly the contents of whichever directory the omarchy you ran lives in. GROUP_DESCRIPTIONS — which does list debug — is presentation data for the help output only, never routing.
A 4.0.x install has two such directories and they are not identical. The omarchy package installs every bin/* to /usr/bin and symlinks it into /usr/share/omarchy/bin, but skips three helpers that ship from omarchy-settings instead, so they exist on the ISO before omarchy is installed; omarchy-settings then installs those three into /usr/bin with no matching symlink. So /usr/share/omarchy/bin is a complete mirror except for omarchy-debug, omarchy-debug-idle and omarchy-upload-log — precisely the routes omarchy debug, omarchy debug idle and omarchy upload log. On this machine omarchy-nvim-refresh and omarchy-nvim-setup are missing from the mirror too, for the same reason.
Which of the two directories you get is decided by PATH, and inside a Hyprland session it is always the incomplete one. default/bash/env-bootstrap:18-26 is deliberately careful not to prepend /usr/share/omarchy/bin on a production install, but default/hypr/envs.lua:30-35 prepends it unconditionally for the whole graphical session (config/hypr/hyprland.lua:14 → default/hypr/omarchy.lua:16), and autostart.lua imports that environment into the systemd user manager. Every terminal opened from the session therefore resolves omarchy to /usr/share/omarchy/bin/omarchy. That is the whole of why omarchy-debug works and omarchy debug does not, in the same shell, on the same machine. type -a omarchy will show /usr/share/omarchy/bin/omarchy ahead of /usr/bin/omarchy if you want to see it directly.
On your hypothesis specifically: requires-sudo is parsed at bin/omarchy:231-234, normalised at :278, stored at :292, and then read at exactly two places — :652 and :679 — both of which are output formatting for commands --json and the command table. It never gates indexing, listing or dispatch. The only metadata that hides a command is # omarchy:hidden=true (:418, :464, :608), which omarchy-debug does not set, and --all disables even that filter. Nothing is dropping your command; the scan never sees the file.
This is the same defect as #6977, which is the oldest report of it, and #7060, #7185, #9373, #9401 and #10131 are the same bug as well. Three fixes are open and none has merged: omacom-io/omarchy-pkgs#260 adds the three missing mirror symlinks, #7239 makes envs.lua prepend only in dev-link mode, and #9290 gives the dispatcher a /usr/bin fallback. They are not equivalent in reach — #260 leaves the two omarchy-nvim routes and four omarchy-emacs routes still missing from the mirror, and would need a package rebuild to reach an installed 4.0.2-1 — so which of them lands is the maintainer's call, not something triage decides.
Until one does: omarchy-debug --no-sudo --print, which is the form the bug template asks for, or /usr/bin/omarchy debug --no-sudo --print.
Confirmed on another Omarchy 4.0.2-1 installation (Hyprland 0.56.2-1).
In the graphical session:
$ omarchy debug --no-sudo --print
Unknown Omarchy command: omarchy debug --no-sudo --print
Run 'omarchy commands --all' to discover available commands.
$ omarchy debug --help
Unknown Omarchy command: omarchy debug --help
omarchy commands --all also has no debug entry. Directly running omarchy-debug --no-sudo --print successfully generated diagnostics.
The filesystem check agrees with the packaging/path explanation above: /usr/bin/omarchy-debug exists and is executable, while /usr/share/omarchy/bin/omarchy-debug is absent. The helper's metadata itself advertises omarchy debug --print --no-sudo, so the broken route is encountered while following its own diagnostic instructions.
No configuration changes were needed to reproduce this; the direct helper is a working workaround on this machine.
🤖 The requires-sudo=true hypothesis isn't the cause. The dispatcher discovers subcommands by globbing $OMARCHY_BIN_DIR (/usr/share/omarchy/bin) — /usr/bin/omarchy:334:
for file in "$OMARCHY_BIN_DIR/$binary"-*; do
The three omarchy-settings binaries install only to /usr/bin with no entry in /usr/share/omarchy/bin, so discovery never sees them:
| Binary | /usr/bin |
/usr/share/omarchy/bin |
|---|---|---|
omarchy-debug |
yes | no |
omarchy-debug-idle |
yes | no |
omarchy-upload-log |
yes | no |
(427 omarchy-* entries exist in /usr/share/omarchy/bin; these three aren't among them.)
Confirmed on 4.0.2-1. #9373 and #7185 already document this root cause — #7185 also covers the bundled agent skill instructing agents to run the unreachable omarchy debug --no-sudo --print form.
Workaround: call the binary directly, omarchy-debug --no-sudo --print.
Automated duplication check: this issue looks similar to #7060, which covers the same omarchy debug unreachable via dispatcher. I keep that one open and close this one to keep the discussion in one place.
If you feel this is the wrong decision, please open the issue again with a note on the difference.