Skip to content

Make first-run onboarding recoverable - #12415

Open
harshithnadig wants to merge 1 commit into
omacom:quattrofrom
harshithnadig:contrib/recoverable-onboarding
Open

harshithnadig wants to merge 1 commit into
omacom:quattrofrom
harshithnadig:contrib/recoverable-onboarding

Conversation

@harshithnadig

Copy link
Copy Markdown

Summary

Adds omarchy setup welcome so 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

  • setup welcome tests
  • first-run lifecycle test
  • command metadata check
  • git diff check

@llstrk

llstrk commented Sep 25, 2026

Copy link
Copy Markdown

Automated AI review

Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review.

Verified: omarchy setup welcome works as described. No runtime defect was found in the tested scope. The notes below cover two ineffective test assertions, untested first-run wiring and stale documentation.

  • The dispatcher resolves omarchy setup welcome [--all], lists it under omarchy setup and omarchy commands, and omarchy commands --check passes.
  • Without --all, the command sends the same "Learn Keybindings" notification as the previous welcome.sh: identical arguments, glyph, real newline and --exec omarchy-menu-keybindings target.
  • --all adds the "Getting Started" notification with --exec omarchy-menu. Unknown options exit 1 without sending anything.
  • install/user/first-run/welcome.sh now sends both notifications. A failed send still makes the step exit nonzero, so first-run retries it as before.

Two assertions in setup-welcome-test.sh cannot fail

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants