Repository navigation
Make first-run onboarding recoverable - #12415
harshithnadig wants to merge 1 commit into
Conversation
Automated AI review
Verified:
Two assertions in
|
| Line | Assertion | Why it never catches a regression |
|---|---|---|
| 39 | ! grep -Fq -- '--exec omarchy-menu$' |
-F makes $ a literal character, so the pattern never matches. A ! pipeline also does not trigger set -e. |
| 46 | grep -Fq -- '--exec omarchy-menu' |
This also matches --exec omarchy-menu-keybindings, which is always present in the --all log. |
Optional test improvement: with the current test, a --all notification whose click target was changed to another command, or duplicated as omarchy-menu-keybindings, still passed. With the change below, both of those variants failed, and so did a default run that sends both notifications. The unmodified command still passed.
-! grep -Fq -- '--exec omarchy-menu$' "$TEST_LOG"
+if grep -q -- '--exec omarchy-menu$' "$TEST_LOG"; then
+ echo "default run sent the menu notification" >&2
+ exit 1
+fi
...
-grep -Fq -- '--exec omarchy-menu' "$TEST_LOG"
+grep -q -- '--exec omarchy-menu$' "$TEST_LOG"Optional test improvement: no test runs the changed first-run step. The new test calls a copy of bin/omarchy-setup-welcome directly. test/shell.d/first-run-test.sh stubs first-run as already complete, so it exits at the completion gate before any step runs. That test still passed with welcome.sh replaced by exit 1. A small case could run install/user/first-run/welcome.sh with a stub omarchy-notification-send first on PATH and expect two sends. That would catch a renamed command or a dropped --all.
Documentation: docs/file-layout.md (lines 288-291 at this head) still describes welcome.sh as a single keybindings toast. The removed comment explaining real newlines and the three-line card limit applies to the body that now lives in bin/omarchy-setup-welcome. Moving it there would keep that guidance next to the text it protects.
Optional: the new notification uses --exec omarchy-menu, which defaults to toggle. From source, a pointer click cannot reach the toast while the menu is open. However, invoking the newest notification with Super + Alt + comma while the menu is open closes the menu instead of showing it. --exec omarchy-menu summon (as setup-agent.hook already does) would always show the root menu. One trade-off: unlike toggle, summon replaces an active scripted picker without signalling its caller. This was traced in source only, not tested in a running session.
Review information
Test scope: pinned head 58aa72c. The command, the first-run welcome.sh step, the PR test with mutated copies of the command, omarchy commands --check and first-run-test.sh were run in an isolated sandbox with a stub notification sender. No notification daemon, desktop session or real clicks were involved. Notification and menu click behavior was assessed from source, including Hyprland 0.56.2 and Quickshell 0.3.1 source for input routing (installed versions not confirmed). The full test/cli and test/shell suites were not run.
AI process: Opus 5.5 Medium coordination and synthesis, independent Opus 5.5 Xhigh and GPT 6 Sol Xhigh technical assessments with targeted follow-up questions, Opus 5.5 Medium editorial check.
Opt out: To stop receiving these reviews, reply to this comment saying so.
Summary
Adds
omarchy setup welcomeso users can reopen the getting-started notifications after dismissing them or helping another user configure Omarchy.First-run provisioning now uses the same command and can also offer a direct Omarchy Menu shortcut.
Tests