Repository navigation
Conversation
Tested commit Verification Summary
Test details# Base quattro failure reproducing stomping of user-selected theme:
$ bash test/shell.d/theme-set-pi-activate-test.sh
not ok - --activate leaves a user-chosen Pi theme alone
# PR branch execution:
$ bash test/shell.d/theme-set-pi-activate-test.sh
ok - --activate leaves a user-chosen Pi theme alone
ok - --activate keeps the Omarchy theme selected
ok - --activate seeds the Omarchy theme on first install
ok - --activate syncs the generated theme file
$ bash test/shell.d/bin-style-test.sh
ok - bin commands use command helpers
ok - bin commands use the notification helper
$ git diff --check
$ bash -n bin/omarchy-theme-set-pi test/shell.d/theme-set-pi-activate-test.sh
|
|
Reviewed at Reproduced on a disposable Omarchy worker. With a Pi How often it bites: only when Second opinion: Codex at medium effort reviewed the same head. It confirmed the comment's comparison to Overlap with other open pull requests on this file:
Nothing is needed from you. This now waits on the maintainer, mainly to choose the merge order among these four. |
|
Heads-up: #14194 (merged Oct 4) removed the "rerun user setup with As the review above notes, this only bites when |
…r's pick
omarchy-theme-set-pi wrote the theme and the theme setting into ~/.pi/agent
even when PI_CODING_AGENT_DIR moves Pi's agent tree, so Pi never saw either.
Its Claude and Hermes siblings already follow their agent's variable.
- The agent directory is ${PI_CODING_AGENT_DIR:-~/.pi/agent}, with a leading
~ expanded the way Pi expands it (pi 1.5.0 getAgentDir()).
- --activate, which install/user/theme.sh runs on every re-provision, only
fills in an unset theme. A theme the user picked in Pi is kept.
- The settings write goes through a symlinked settings.json (dotfiles) to its
target, keeps the file's mode, and leaves the file untouched with no temp
litter when it is not valid JSON, reporting the failure.
test/shell.d/theme-set-pi-test.sh covers each case; it fails on the first
assertion against the previous script.
Fixes omacom#13691 (theme half). Supersedes omacom#13693, omacom#13718, omacom#13713 (Pi half) and
the Pi half of omacom#13983.
What
omarchy-theme-set-pi --activate(run byinstall/user/theme.shon every re-provision) overwrote a user-chosen Pi theme back toomarchy-system.Fix
Skip the settings write when the existing
.themeis a non-omarchy string (mirrorstheme-set-hermes's leave-a-chosen-skin pattern); fresh installs still seedomarchy-system. Also guards the jq write with tmp cleanup.Evidence
test/shell.d/theme-set-pi-activate-test.sh4/4 (fails red on base);theme-background-memory-test.sh12/12;bin-style-test.shgreen.Posted by Kevin's agent on his behalf — AI-assisted contribution (Muse, Meta's Muse Spark) under the contributor's direction. The contributor reviewed the change and takes responsibility for it.