Skip to content

Omarchy 4.5: theme pipeline catches up (#36) - #65

Merged
dividendsolo merged 5 commits into
mainfrom
agent/36
Nov 11, 2026
Merged

dividendsolo merged 5 commits into
mainfrom
agent/36

Conversation

@dividendsolo

@dividendsolo dividendsolo commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Closes #36.

Brings the Omarchy 4.5 theme fixes to bin/theme and hammerspoon/init.lua:

Owner QA: after the merge, git pull in the clone and check each Done-when line on the Mac.

Plan

  • bin/theme: --remove, --herdr-sync, --herdr-push, wallpaper memory, Catppuccin rename. Done.
  • hammerspoon/init.lua: ⌘⌫ delete in the theme chooser, Herdr Theme Sync toggle. Done.
  • Kickback (review of 95e28b3): one unreachable herdr machine must not stop the push to the machines after it. Done.
  • tests/theme-test.sh, tests/theme-picker-test.sh: cover each item. Done.
  • CHANGELOG entry, uninstall cleans per-theme cycler indexes. Done.

Progress

  • All items built on ezio (commit b2ffd34). The gate failed only because the Jog runner did not pick up CI; main now runs CI on a GitHub macOS runner.
  • This run merged origin/main (menu fixes, Omarchy 4.5: menu fixes #38): resolved conflicts in hammerspoon/init.lua (the theme chooser is now themeChooser with main's close-on-second-press, plus the ⌘⌫ delete) and CHANGELOG.md (both entries kept). Test stubs updated for main's code: hs.styledtext and isVisible in theme-picker-test, hs.hotkey.new in menu-test.
  • On altair: theme-test, theme-picker-test, menu-test, keys-test, default-agent-test, appearance-test pass.
  • Kickback fix: in herdr_push, the ssh pipeline's exit status no longer ends the script under set -e; ssh exit 255 logs <target>: unreachable and the loop goes on. New theme-test case (two enabled machines, the first ssh exits 255) failed before the fix (both checks) and passes after.
  • Left: nothing.

Aftermath sweep

aftermath: secrets scrub clean, copy N/A, demos N/A, help text fixed earlier (kickback: N/A) (theme --help, chooser placeholder "⌘⌫ deletes"), tour N/A, pricing N/A, promises N/A, privacy N/A, terms N/A, value (Omarchy parity card), money N/A, share artifact N/A, indexable page N/A, AI answers N/A, conversation N/A, milestone N/A, blog post N/A (parity update, changelog entry), changelog entry added, UTM N/A, Lighthouse N/A, worktrees: none removed (other builds active), MCP N/A.

Security audit (diff)

Security audit (diff): 0 confirmed, 0 filed; hunters run in this session, no sub-agents. Kickback diff: only the exit-status handling in herdr_push changed; no new input reaches ssh or the log. Checked: theme names reach ssh only as a %q-quoted stdin assignment and must pass valid_name; ssh targets starting with - are skipped; --remove validates the name before rm -rf "${CACHE:?}/$name"; the chooser passes the name to theme --remove as one argv element.

Verify gate: passed @ fd95bd4

The Foreman on ezio ran the repo's checks itself on the branch head. The unit tests ran in the repo's CI on Jog (agent-stack#296).

The repo has no checks to run (no package.json scripts, no bin/ci).

dividendsolo and others added 2 commits November 11, 2026 20:18
Herdr theme sync (opt-in, theme --herdr-sync, Trigger > Toggle), each theme
reopens with its last wallpaper, theme --remove and ⌘⌫ in the theme chooser,
Catppuccin starts Neovim on catppuccin-mocha.
@dividendsolo

Copy link
Copy Markdown
Owner Author

Kickback (review of 95e28b3)

What this change does: bin/theme gets per-theme wallpaper memory, --remove, herdr theme sync and the Catppuccin Neovim rename. hammerspoon/init.lua gets ⌘⌫ delete in the theme chooser and a Herdr Theme Sync toggle. Tests cover each item.

  1. One unreachable herdr machine stops the push to every machine after it (bin/theme, herdr_push, the result="$(printf … | ssh … | tail -n 1)" line).
    • Problem: bin/theme runs under set -euo pipefail (line 27). When ssh cannot reach a machine it exits 255. pipefail gives the assignment that status, and set -e ends the script. No log line is written, so ${result:-unreachable} is never used, and the machines later in herdr machine list get no push. Case: machines A (laptop asleep) and B (on). A theme switch logs nothing and B stays on the old theme. I reproduced the pattern in /bin/bash 3.2 with a stub ssh that exits 255: the script stopped at the first machine with status 255.
    • Done looks like: the ssh pipeline cannot end the loop (for example result="$(… | tail -n 1)" || true, or set +e in herdr_push). An unreachable machine logs <target>: unreachable and the next machine still gets the theme. Add a theme-test case with two enabled machines where the first ssh exits 255: the log shows unreachable for the first and set <theme> for the second. Run the test before the fix and watch it fail.

Everything else in the diff reads right: the per-theme cycler index matches bin/omarchy-cycle-wallpaper, the herdr machine list column order matches the real output, and the theme name reaches ssh only as a %q stdin assignment.

@dividendsolo

Copy link
Copy Markdown
Owner Author

Kickback item 1 (one unreachable herdr machine stops the push): fixed.

  • bin/theme herdr_push: the ssh pipeline now ends in && rc=0 || rc=$?, so set -e cannot stop the loop. When ssh exits 255, the result is cleared and the log line is <target>: unreachable. The loop then goes to the next machine.
  • Note: ssh writes its error to stderr, which the pipeline merges, so without the 255 check the log would show the ssh error text instead of unreachable. The fix clears it so the log says unreachable.
  • tests/theme-test.sh: new case with two enabled machines (me@down, me@box); the stub ssh exits 255 for me@down. Before the fix both checks failed ("an unreachable machine is logged", "the next machine still gets the theme"). After the fix both pass, and the whole theme-test.sh passes.

Verify gate: passed @ fd95bd4

The Foreman on ezio ran the repo's checks itself on the branch head. The unit tests ran in the repo's CI on Jog (agent-stack#296).

The repo has no checks to run (no package.json scripts, no bin/ci).

@dividendsolo

Copy link
Copy Markdown
Owner Author

Review of 39100c4: approved. Merge of origin/main resolved CHANGELOG.md and removed conflict markers that fd95bd4 carried. Kickback item 1 is fixed with a test. Spec checklist on #36.

@dividendsolo

Copy link
Copy Markdown
Owner Author

Verify gate: passed @ 39100c4

The Foreman on ezio ran the repo's checks itself on the branch head. The unit tests ran in the repo's CI on Jog (agent-stack#296).

The repo has no checks to run (no package.json scripts, no bin/ci).

@dividendsolo
dividendsolo merged commit 2c55dec into main Nov 11, 2026
2 checks passed
@dividendsolo
dividendsolo deleted the agent/36 branch November 11, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Omarchy 4.5: theme pipeline catches up

1 participant