omarchy debug is unreachable through the dispatcher
What happened
omarchy debug is unreachable through the dispatcher, even though omarchy --help
advertises it under "Common commands":
$ omarchy debug
Unknown Omarchy command: omarchy debug
Run 'omarchy commands --all' to discover available commands.
$ omarchy debug --no-sudo --print
Unknown Omarchy command: omarchy debug --no-sudo --print
$ omarchy debug idle
Unknown Omarchy command: omarchy debug idle
The binaries themselves are present and work fine when called directly:
$ /usr/bin/omarchy-debug --no-sudo --print
Date: ...
Hostname: ...
Omarchy Package: omarchy 4.0.4-1
[full diagnostic output]
What was expected
omarchy debug --no-sudo --print runs the diagnostics, as documented in
omarchy --help and in the binary's own metadata
(# omarchy:examples=omarchy debug --print --no-sudo).
This matters because omarchy debug is the command users are asked to run when
filing bug reports.
Root cause pointer
No route for debug is registered at all:
$ omarchy commands --all | grep -cE '^\s+omarchy debug( |$)'
0
For comparison, version — which also has a parent binary plus children —
registers 4 routes and works. The difference appears to be that
omarchy-debug-idle declares # omarchy:group=debug, which opens a debug
group, while omarchy-debug itself declares neither omarchy:group= nor
omarchy:name=. Other parents in the same situation (toggle, hook, menu)
are not standalone commands, so the gap is invisible there; for debug the
parent is the primary command, so it becomes unreachable.
Sibling binaries that need an explicit route declare it via # omarchy:name=
(e.g. omarchy-install-gaming-gpu-lib32 uses name=gaming gpu-lib32), which
suggests omarchy-debug may simply be missing such a declaration.
Also worth noting
The built-in metadata check does not catch this:
$ omarchy commands --check
Command metadata check passed (440 commands)
An advertised command that cannot be dispatched arguably should fail that check.
Steps to reproduce
On a stock Omarchy 4.0.4-1 install:
omarchy --help— observeomarchy debuglisted under "Common commands"omarchy debug— fails with "Unknown Omarchy command"/usr/bin/omarchy-debug --no-sudo --print— works
System details
- Omarchy 4.0.4-1
- Kernel: stock Arch
linux7.2.3.arch1-3
Thank you for the detailed report and the fresh 4.0.4 reproduction. I can reproduce the dispatcher failure on an installed system while the same command works from a source checkout. That difference points to the packaging/discovery problem already tracked in #7185: omarchy-debug is supplied by the settings package under /usr/bin, while the dispatcher can be searching the Omarchy package directory. The checkout keeps the commands together, so a passing checkout metadata check does not establish that the packaged route works.
Open PR #9290 addresses that discovery path. It would be reasonable to consolidate this report under #7185 while retaining your 4.0.4 evidence. The fix is still unmerged, so this should not be marked resolved.
Thanks for the clear reproduction. This is the same bug as #7185, which was reported earlier and is still open, so I'm closing this one as a duplicate of it. Both report the same Unknown Omarchy command for omarchy debug and omarchy debug idle, from the same cause, and one fix covers both.
The cause is the packaging, not a missing # omarchy:name= or # omarchy:group= header. The dispatcher only looks for commands in the directory it was started from (bin/omarchy:5, :319, :413). The omarchy package installs every bin/ command to /usr/bin and links it into /usr/share/omarchy/bin, but it skips omarchy-debug, omarchy-debug-idle and omarchy-upload-log. Those three come from omarchy-settings, which installs them only to /usr/bin. A dispatcher started as /usr/share/omarchy/bin/omarchy never sees them, so omarchy commands --all lists no debug routes and --check has nothing to flag. Without the headers the routes are still inferred from the filenames, and that is why the same command works from a source checkout.
I reproduced this on a clean worker running the stock omarchy and omarchy-settings 4.0.4-1 packages. /usr/share/omarchy/bin/omarchy debug idle fails with Unknown Omarchy command and its commands --all lists 0 debug routes. /usr/bin/omarchy debug routes correctly. So whether you hit it depends on which omarchy runs first: /usr/share/omarchy/bin comes first on the PATH that Omarchy's own scripts set up (omarchy-update, for one), and in any shell that inherits that PATH.
Codex Medium reviewed this as a second opinion. It agreed that the header theory is not the cause and that this is the same failure as #7185. It also pointed out that the failure depends on the dispatcher's path, which is what the worker run above confirms. It read the same notes I had written, so it is not a fully independent check. The fix is being tracked on #7185, where #9290 is the open pull request. If this turns out to be a different problem, it can be reopened.