Skip to content

Route sibling-package omarchy-* commands via a /usr/bin fallback (fixes #7185) - #9290

Closed
WhiskeyTuesday wants to merge 5 commits into
omacom:quattrofrom
WhiskeyTuesday:dispatcher-secondary-bin-dir
Closed

WhiskeyTuesday wants to merge 5 commits into
omacom:quattrofrom
WhiskeyTuesday:dispatcher-secondary-bin-dir

Conversation

@WhiskeyTuesday

@WhiskeyTuesday WhiskeyTuesday commented Aug 31, 2026 •

Copy link
Copy Markdown

Fixes #7185. Adjacent to #6977 and #7060 (both symptoms of the same split).

Problem

bin/omarchy resolves subcommands by globbing its own directory (OMARCHY_BIN_DIR), so on a production install it only sees /usr/share/omarchy/bin. Sibling packages install their own omarchy-* binaries into /usr/bin without symlinking them into /usr/share/omarchy/bin, which puts every one of their routes out of the dispatcher's reach. Today that hides at least five commands — three from omarchy-settings (omarchy-debug, omarchy-debug-idle, omarchy-upload-log) and two from omarchy-nvim (omarchy-nvim-setup, omarchy-nvim-refresh) — and every optional package following the same pattern (omarchy-emacs, omarchy-fish, omarchy-zsh, future ones) hits the same wall. The three from omarchy-settings are the most user-visible because the bug template and the shipped omarchy agent skill both instruct people to run omarchy debug --no-sudo --print, which currently exits 127 on production installs.

The split is deliberate on the packaging side (omarchy-settings must be usable on the ISO live env before omarchy is installed), so bin/omarchy's PKGBUILD deliberately excludes those three from the standard install -Dm755 … + ln -s /usr/share/omarchy/bin/… loop. Fixing this on the dispatcher side keeps the invariant in one place instead of asking every sibling-package PKGBUILD to remember to drop a symlink into a directory another package owns.

Change

When the dispatcher runs as a production install (OMARCHY_BIN_DIR == /usr/share/omarchy/bin), also scan /usr/bin/omarchy-* as a secondary source. The primary directory always wins on name collision, so the omarchy package's own binaries stay authoritative.

The touch points are the six discovery/resolution paths in bin/omarchy — load_commands, load_command_by_binary, load_child_commands_by_binary, group_has_child_commands, group_has_binary_commands, load_group_commands, resolve_direct_route — plus the two binary_path= sites in dispatch_fast_or_help/dispatch_or_help and the missing-binary check in commands --check. All of those funnel through a single resolve_binary_path helper (primary first, then secondary), and resolve_direct_route now returns DIRECT_RESOLVED_PATH so the fast path can exec the right file without recomputing.

Dev-link and test invocations honour the env variable OMARCHY_SECONDARY_BIN_DIR themselves — set it to a directory to override, set it to the empty string to disable the fallback. The tests use that seam to drive the new code paths against scratch directories rather than /usr/bin.

Metadata check behavior

Once sibling-package binaries become visible to the dispatcher, they also become visible to omarchy commands --check. omarchy-nvim's two binaries ship without an # omarchy:summary= line today, so a strict check regressed from green to red on any machine with omarchy-nvim installed.

To avoid pinning the fix to a coordinated release with a sibling package, commands --check now tracks per-command origin (primary vs secondary). Missing-summary and metadata-validation errors from primary binaries still fail the check exactly as before — that guardrail on the project's own tree is untouched. The same errors from secondary binaries surface as warnings with a (foreign) tag and do not count toward the failure total. Missing-binary errors continue to fail regardless of origin. Happy to invert that decision if the preference is to fail hard and use it as pressure to fix sibling-package metadata.

Tests

test/cli gains a block that reuses the existing symlink-into-tmpdir pattern:

  • secondary-only top-level command dispatches and forwards args
  • secondary-only child of a shared group dispatches
  • group help renders and lists secondary-only children
  • commands --all --json lists secondary-dir commands
  • commands --check passes when a well-formed command lives only in secondary
  • primary wins on name collision, no shadow execution, no double-register
  • empty OMARCHY_SECONDARY_BIN_DIR disables the fallback
  • foreign missing-summary is a warning, not a failure
  • primary-tree missing-summary still fails the check (regression guard)

Full suite is green (bash test/cli — 126 tests pass).

Verification against the real system

With OMARCHY_SECONDARY_BIN_DIR=/usr/bin (i.e. simulating a production install from a dev checkout), the previously-invisible routes now resolve on my machine:

$ OMARCHY_SECONDARY_BIN_DIR=/usr/bin ./bin/omarchy commands --all | grep -E '^  omarchy (debug|upload log|nvim setup|nvim refresh|debug idle)'
  omarchy debug idle [log-lines]         Show idle, screensaver, and lock diagnostics
  omarchy debug [--no-sudo] [--print]    Print debugging information
  omarchy nvim refresh                    Setup/refresh script for omarchy-nvim
  omarchy nvim setup                      Setup/refresh script for omarchy-nvim
  omarchy upload log <log-file>           Upload logs to logs.omarchy.org

$ OMARCHY_SECONDARY_BIN_DIR=/usr/bin ./bin/omarchy debug --help
Usage:
  omarchy debug [--no-sudo] [--print]
...

$ OMARCHY_SECONDARY_BIN_DIR=/usr/bin ./bin/omarchy commands --check
Missing metadata summary (foreign): omarchy-nvim-refresh
Missing metadata summary (foreign): omarchy-nvim-setup
Command metadata check passed (439 commands)

Relationship to #7239

PR #7239 (open, targets default/hypr/envs.lua) fixes the PATH-shadowing side of #6977 — with it landed, an interactive shell in Hyprland has /usr/bin ahead of /usr/share/omarchy/bin on PATH, so omarchy resolves from /usr/bin/omarchy, and that dispatcher then scans /usr/bin/omarchy-* and finds everything. It functionally papers over #7185 for interactive shells. This PR fixes the dispatcher itself, so any invocation of /usr/share/omarchy/bin/omarchy debug (scripts, non-interactive shells, scoped OMARCHY_PATH uses) also routes correctly. The two are orthogonal — either can land first.

Fixes #12629

Fixes #7060

…ary bin dir

The dispatcher scans its own directory (OMARCHY_BIN_DIR, /usr/share/omarchy/bin
on a production install) and only that directory, so any omarchy-* binary a
sibling package installs into /usr/bin without also symlinking into
/usr/share/omarchy/bin becomes unroutable through the CLI. Today that hides
five commands (omarchy-debug, omarchy-debug-idle, omarchy-upload-log from
omarchy-settings; omarchy-nvim-setup, omarchy-nvim-refresh from omarchy-nvim)
and every future sibling-package command hits the same wall.

Scan a secondary directory as a fallback when running as a production install
(OMARCHY_BIN_DIR == /usr/share/omarchy/bin). The primary directory always wins
on name collision so the omarchy tree remains authoritative. Dev-link and
test invocations honour OMARCHY_SECONDARY_BIN_DIR themselves; an empty value
disables the fallback, which the tests use to drive the new code paths against
scratch directories rather than /usr/bin.

Track a per-command origin so `omarchy commands --check` stays strict for the
project's own binaries but only warns for sibling-package binaries. Without
this, users who install optional packages that ship an omarchy-* binary
without a metadata summary (currently omarchy-nvim) would see a
previously-green check start failing.

Fixes omacom#7185. Related: omacom#6977, omacom#7060.
@omarchybot

Copy link
Copy Markdown
Collaborator

Reviewed at ee539e8 and verified on a worker built from the Omarchy ISO, which has omarchy-debug, omarchy-debug-idle, omarchy-upload-log and omarchy-nvim-* in /usr/bin only.

Reproduction. With each dispatcher installed as /usr/share/omarchy/bin/omarchy: on current quattro and on this branch's fork point, omarchy debug --no-sudo --print, omarchy debug idle --help, omarchy upload log --help and omarchy nvim all exit 127, and none of them appear in omarchy commands --all. On this head, and on this head merged into current quattro (it merges cleanly), all of them route: debug --no-sudo --print prints the full report, the nvim group help lists both children, commands --all lists all five, commands --check passes with the two omarchy-nvim binaries reported as foreign warnings, and an unknown command still exits 127.

Tests. ./test/cli is green on this head. On the merge with current quattro all 13 new tests pass, and the only failure is vscode generated theme clears obsolete extension marker, which fails on quattro without this change too. bin-style, crash-capture, screenshot-sanity and theme-set-herdr-machines from test/shell.d pass.

Review. Claude Opus 5.5 read the diff against current quattro and found no defects: every place the dispatcher looked a binary up in its own directory now goes through resolve_binary_path or scans the secondary directory after the primary, including the routes quattro added since the fork. The fallback is limited to root-owned /usr/bin and to a dispatcher running from /usr/share/omarchy/bin, so a dev-linked checkout behaves as before. No second opinion ran: the configured reviewer, Codex Medium, had used up its daily review budget, so this review rests on one model.

Related. #12750 fixes the same bug differently, with a last-resort PATH lookup in dispatch_or_help. That one is smaller, but it does not list the commands in omarchy commands, does not give omarchy nvim group help, and can route to any omarchy-* on PATH, including the user's own directories. This pull request now also links #12629 and #7060, which report the same omarchy debug exit 127 that it fixes.

Next. This waits on the maintainer, who has two decisions to make: which of this and #12750 to take, and whether metadata errors in sibling-package binaries should warn, as here, or fail commands --check. Separately, it waits on a second-opinion review.

quattro's router now resolves alias and metadata-moved routes by loading only the commands that can own a route under its first word (omacom#15041). Those candidates came from the primary directory alone, so a sibling package's alias could lose to a shorter primary route on the fast path while the full load would have picked it. The candidates now include secondary binaries the primary directory does not shadow, in the full load's order, and reset_commands clears COMMAND_ORIGIN with the rest of the table.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Oct 12, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This branch had gone into conflict with quattro, so I merged current quattro into it (6c49c7a) and re-verified it on a worker built from the Omarchy ISO.

What changed in the merge. quattro gained a fast path for alias and metadata-moved routes in #15041: load_route_candidates loads only the commands that can own a route under its first word. That function only read /usr/share/omarchy/bin, so on the fast path a sibling package's alias could lose to a shorter primary route, while a full load would have chosen the sibling's. It now also considers /usr/bin binaries the primary directory does not shadow, in the same order a full load registers them, and reset_commands clears COMMAND_ORIGIN with the rest of the table. A new test in test/cli covers it, and that test fails without the change. The test/cli conflict was the two new test blocks landing in the same spot, so both are kept.

Reproduction. With quattro's dispatcher installed as /usr/share/omarchy/bin/omarchy, omarchy debug --no-sudo --print, omarchy debug idle --help, omarchy upload log --help and omarchy nvim all exit 127. With this head they all route: commands --all lists all five sibling commands, commands --check passes with the two omarchy-nvim binaries reported as foreign, and an unknown command still exits 127. Restoring quattro's dispatcher brings the 127s back.

Tests. On the worker, ./test/cli passes on this head and on quattro, and so do bin-style and command-operand-boundaries from test/shell.d.

Review. Claude Opus 5.5 found no defects in the merged change. Codex Medium, the second opinion, ran this time. It found no lookup still limited to the primary directory and called the fast-path change sound. It raised two points:

  • On a dev-linked checkout, the dispatcher is outside /usr/share/omarchy/bin, so the fallback is off. omarchy debug still works there because those binaries are in the checkout, but omarchy nvim setup and omarchy nvim refresh stay unreachable, as they are on quattro. The comment at the top of bin/omarchy says dev-link sets OMARCHY_SECONDARY_BIN_DIR, but omarchy-dev-link doesn't. Turning the fallback on there would let the installed copies in /usr/bin stand in for commands the checkout has removed, so I've left that choice open.
  • A /usr/bin binary whose filename matches a primary command's alias would win on the direct path, while help would name the primary command. No such collision exists today: commands --check passes on the ISO, and it fails on route collisions. So this is a question about future packages, not a current bug.

Competing fix. #12750 fixes the same bug with a last-resort PATH lookup. This pull request is older and does more: it lists sibling commands in omarchy commands, gives omarchy nvim its group help, and only falls back to root-owned /usr/bin. Codex Medium prefers #12750 for the two points above, because #12750 also works on a dev-linked checkout and keeps primary aliases ahead of sibling filenames. Independence is not guaranteed, but the reviewers disagree here, so I'm not choosing between them.

Next. This is labelled verified at 6c49c7a. It waits on the maintainer to decide between this and #12750, and whether sibling-package metadata errors should warn, as they do here, or fail commands --check.

@greptile-apps

greptile-apps Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The changes reach command routing across the Omarchy CLI and its sibling packages.

The PR should not merge until longer secondary aliases stop losing to shorter direct filename matches.

Findings

  1. P1 Longer sibling aliases get skipped ▶

Summary

Adds a second directory for sibling-package commands.

  • Sibling-package commands now route through the Omarchy CLI.
  • The command check warns about metadata owned by sibling packages.

Reviews (3) · Last reviewed commit: "Describe the /usr/bin fallback where the..." · Reviewed by Greptile

@omarchybot omarchybot removed the verified Omarchy Triage has verified that this issue is ready for final review label Oct 13, 2026
Both sides added a test block after the alias fast-path test in test/cli; keep both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Oct 13, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

This branch went into conflict with quattro again, so I merged current quattro into it (7cddb52) and re-verified it on a worker built from the Omarchy ISO. Only test/cli conflicted: this pull request's sibling-package tests and quattro's new timed alias-dispatch test landed in the same spot, and both are kept. bin/omarchy has not changed on quattro since the last merge.

Reproduction. On a stock install, /usr/share/omarchy/bin/omarchy is a symlink to /usr/bin/omarchy, and Omarchy's own scripts put $OMARCHY_PATH/bin first on PATH. So the dispatcher runs from /usr/share/omarchy/bin and only sees that directory. Run that way on the worker, the shipped 4.0.4 dispatcher and quattro's both exit 127 for omarchy debug --no-sudo --print, omarchy debug idle --help, omarchy upload log --help, omarchy nvim and omarchy nvim setup --help. With this head, all five work, commands --all lists the sibling commands, commands --check passes, and an unknown command still exits 127. Putting quattro's dispatcher back brings the 127s back.

Tests. On the worker, ./test/cli passes, including quattro's timed alias test (31ms against 462ms), and so do bin-style, command-operand-boundaries and panel-command-path from test/shell.d.

Review. Claude Opus 5.5 found no defects in the merge. Codex Medium, the second opinion, agreed the merge kept both test blocks correctly, and that the per-invocation OMARCHY_SECONDARY_BIN_DIR doesn't leak into the timed test. Independence is not guaranteed. It repeated one point from the last round: on a dev-linked checkout the fallback stays off, so omarchy nvim setup remains unreachable there, as it is on quattro. The comment at the top of bin/omarchy still says dev-link sets OMARCHY_SECONDARY_BIN_DIR, and omarchy-dev-link does not.

Competing fix. #12750 is still open and also conflicts with quattro. Codex Medium prefers it because its PATH fallback also works on a dev-linked checkout. #12750 is a last resort for bare command names only. It doesn't list sibling commands in omarchy commands, and bare omarchy nvim still exits 127 because no omarchy-nvim binary exists. Each pull request covers a case the other misses. This one is older, but the two reviewers disagree, so the choice is left open.

Next. This is labelled verified at 7cddb52. It waits on the maintainer to choose between this and #12750, and to decide whether the dev-link case should turn on the /usr/bin fallback.

Comment thread bin/omarchy
Comment on lines +526 to +530
if resolve_binary_path "$binary"; then
DIRECT_RESOLVED_BINARY="$binary"
DIRECT_RESOLVED_COUNT="$prefix_count"
DIRECT_RESOLVED_ROUTE="$route"
DIRECT_RESOLVED_PATH="$RESOLVED_BINARY_PATH"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Longer sibling aliases get skipped

If a sibling command declares the alias omarchy update plugin, calling omarchy update plugin payload selects the shorter primary omarchy-update filename match and forwards plugin payload to it. The dispatcher executes that command before load_route_candidates can find the longer secondary alias, so the wrong command runs. Compare matching secondary routes before executing the shorter direct match.

@omarchybot

Copy link
Copy Markdown
Collaborator

On Greptile's finding at bin/omarchy:530, that a longer sibling alias such as omarchy update plugin loses to the omarchy-update filename match: that is true, but this pull request doesn't introduce it. On quattro, the dispatcher already tries filename prefixes longest-first and runs the match before it looks at any aliases, wherever the alias is declared. I checked this on a worker built from the Omarchy ISO. A test command declaring omarchy update plugin, run as omarchy update plugin payload, ran omarchy-update with plugin payload on quattro's dispatcher. It did the same on this head, both with the alias in the primary directory and with it in the /usr/bin fallback. None of the sibling commands on the ISO (omarchy-debug, omarchy-debug-idle, omarchy-upload-log, omarchy-nvim-refresh, omarchy-nvim-setup) declares an alias at all. Letting aliases outrank filenames would change the dispatcher's precedence rule for every command, so it is not a change for this pull request.

Codex Medium, the second opinion, read the same code at 7cddb52 and agreed: the precedence comes from quattro, and it found no new defect in the diff. Independence is not guaranteed.

Nothing else has changed since the last comment. This is still verified at 7cddb52. It waits on the maintainer to choose between this and #12750, and to decide whether a dev-linked checkout should turn on the fallback.

omarchybot and others added 2 commits October 31, 2026 19:26
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The comment at the top of bin/omarchy said dev-link sets OMARCHY_SECONDARY_BIN_DIR, but omarchy-dev-link does not: away from /usr/share/omarchy/bin the fallback is simply off unless the variable is set. docs/cli-router.md said every command lives in the router's own directory, which is no longer true on an installed system.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@omarchybot

Copy link
Copy Markdown
Collaborator

The maintainer asked for this to be brought up to date with current quattro, verified again, and given a recommendation on the dev-link question. The branch was 522 commits behind, so I merged current quattro into it (a1bc59d). The merge was clean. On quattro, bin/omarchy had only gained new group descriptions and a logout | reboot | shutdown shortcut, and that shortcut goes through dispatch_fast_or_help, which already resolves through resolve_binary_path. On top of the merge, d277b05 makes two changes. The comment at the top of bin/omarchy used to say that dev-link sets OMARCHY_SECONDARY_BIN_DIR, which omarchy-dev-link doesn't do, so the comment now says the fallback is off outside /usr/share/omarchy/bin unless that variable is set. And docs/cli-router.md now describes the /usr/bin fallback and the foreign-metadata warnings in commands --check.

Reproduction. I ran this on a worker built from the Omarchy ISO, calling the dispatcher as /usr/share/omarchy/bin/omarchy, which is how Omarchy's own scripts run it. With quattro's dispatcher (178d68c), omarchy debug --no-sudo --print, omarchy debug idle --help, omarchy upload log --help, omarchy nvim and omarchy nvim setup --help all exit 127. With this head, all five work, commands --all lists the sibling commands, and commands --check passes, reporting the two omarchy-nvim binaries as foreign. An unknown command still exits 127. Putting quattro's dispatcher back brings the 127s back. Dispatch through the installed path costs about the same on both: 4ms for a filename route, and 155ms against 160ms for help.

Tests. On the worker, ./test/cli passes, including the alias-dispatch budget (9ms against 159ms). bin-style, command-operand-boundaries and panel-command-path from test/shell.d also pass.

Review. Claude Opus 5.5 checked every place in the merged bin/omarchy that reads the dispatcher's own directory and found no lookup that skips the fallback. The second opinion came from Codex Medium and muse-wonder (via pi, thinking high). Both read the merged diff at d277b05 and found no defects. Both also found the comment and the docs accurate to the code. This agrees with what I'd already concluded, and their independence is not guaranteed.

Dev-linked checkouts: my recommendation is to leave the fallback off there, as this pull request does. On an installed system, /usr/bin doesn't only hold sibling packages. On the ISO worker it held 558 real omarchy-* files, and 552 of them belong to the omarchy package itself, with /usr/share/omarchy/bin holding symlinks to them. If a dev-linked checkout fell back to /usr/bin, any command the checkout deletes or renames would quietly come back from the installed release, and commands --check would not catch it. The only gain would be the two omarchy-nvim commands, because the omarchy-settings ones already exist in the checkout's bin/. A developer who wants them can set OMARCHY_SECONDARY_BIN_DIR=/usr/bin. If dev-link should get them automatically, do it as a follow-up that falls back only to /usr/bin names with no entry in /usr/share/omarchy/bin, which picks up only the sibling packages. Both reviewers advised against turning it on unconditionally. muse-wonder would add a gated dev-link fallback as a follow-up, and Codex Medium agrees that a follow-up should discover only sibling-package commands.

This is labelled verified at d277b05 and waits on the maintainer. One question is still open from earlier rounds: whether a sibling package's metadata errors should only warn in commands --check, as they do here, or fail it.

@omarchybot

Copy link
Copy Markdown
Collaborator

A smaller fix may be possible here. It's for the maintainer to weigh against this one, and it isn't a defect in this pull request.

On a stock install, every entry in /usr/share/omarchy/bin is a symlink to the same name in /usr/bin. The omarchy and omarchy-settings PKGBUILDs in omarchy-pkgs install each command to /usr/bin and then link it into the share directory. So /usr/bin holds everything the share directory holds, plus the sibling packages' commands. That is why /usr/bin/omarchy debug already works and only the dispatcher run from the share directory exits 127. bin/omarchy could switch directories when it finds itself there, with one line after line 5:

[[ $OMARCHY_BIN_DIR == "/usr/share/omarchy/bin" ]] && OMARCHY_BIN_DIR=/usr/bin

Every existing lookup would then see the full installed set, and a checkout or dev-linked tree would keep using its own bin/ as it does now. The secondary directory, origin tracking, duplicate filtering and the (foreign) warning would no longer be needed.

Checked on a worker built from the Omarchy ISO. All 589 entries in /usr/share/omarchy/bin link to the same name in /usr/bin, which has 594 omarchy-* commands. Run from /usr/share/omarchy/bin, the installed dispatcher exits 127 for omarchy debug --no-sudo --print, debug idle --help, upload log --help, nvim and nvim setup --help. quattro's bin/omarchy (551dc62) with that one line added runs all five, and an unknown command still exits 127. There is one behaviour change. With the line added, commands --check fails on omarchy-nvim-setup's missing summary, exactly as /usr/bin/omarchy commands --check already does today, where this pull request only warns. The better fix for that is the omarchy-nvim package's metadata, not a softer check.

Codex Medium raised the idea as the second opinion on our own QA review of this bug. Claude Opus 5.5 checked it against bin/omarchy on quattro and the omarchy-pkgs PKGBUILDs, and ran the check above. Nothing is needed from you. This still waits on the maintainer, who can take this pull request as it is or ask for the one-line version.

@azazelpy

Copy link
Copy Markdown

Tested on a stock Omarchy 4.5.0-3 install (omarchy-settings 4.5.0-3). With this change omarchy debug routes and runs.

How I tested without touching the install. omarchy is run through /usr/share/omarchy/bin/omarchy, a symlink to /usr/bin/omarchy, so OMARCHY_BIN_DIR is /usr/share/omarchy/bin, as in production. I applied this PR's bin/omarchy hunk to a copy of the installed /usr/bin/omarchy (git apply --include=bin/omarchy, clean; the result differs from the PR head d277b05 by one line) and bind-mounted the copy over /usr/bin/omarchy in a private mount namespace (unshare -rm). Nothing on the system changed.

installed 4.5.0-3 with this PR
omarchy debug --bogus exit 127, Unknown Omarchy command routes to omarchy-debug: Unknown option: --bogus and its usage line, exit 1
omarchy debug --no-sudo --print Unknown Omarchy command exit 0, writes /tmp/omarchy-debug.log
omarchy debug idle --help Unknown Omarchy command the route's help
omarchy commands --all 568 lines, no debug or upload routes 573 lines: omarchy debug, omarchy debug idle and omarchy upload log are listed, plus the two omarchy-nvim routes
omarchy commands --check passes, 556 commands passes, 561 commands; prints Missing metadata summary (foreign) for omarchy-nvim-refresh and omarchy-nvim-setup and does not fail

The PR's own test/cli at d277b05, run as a normal user with a temporary HOME and TMPDIR: 139 ok, 0 not ok, including the new secondary-directory cases.

Not tested: omarchy upload log (it uploads, so I only checked that the route is listed), running the omarchy-nvim routes, the ISO live environment, and a dev-linked checkout.

@omarchybot

Copy link
Copy Markdown
Collaborator

Closing in favour of #19093. The maintainer chose to route the one command that matters by hand rather than give the router a general /usr/bin fallback: on a packaged install only omarchy debug is advertised and unreachable, so #19093 routes debug to omarchy-debug on PATH when nothing in the router's own folder answers, and leaves everything else in the router as it is. Thanks for the careful work on this; it is what made the cause clear.

Reviewed by Claude Opus 5.5 with Codex Medium as a second opinion; its independence is not guaranteed.

@omarchybot omarchybot closed this Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

3 participants