Repository navigation
Conversation
omarchy-theme-set-pi always wrote to ~/.pi/agent, so on a machine that points pi elsewhere with PI_CODING_AGENT_DIR the theme and its settings landed where pi never looks. It now follows that variable, as the Claude and Hermes theme syncs follow CLAUDE_CONFIG_DIR and HERMES_HOME. Fixes omacom#13691 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tested commit Verification Summary
Test Suite Execution Details
|
|
Thanks for the independent verification, @sanjyay. |
|
theme path looks good. skill symlinks had the same hardcoded ~/.pi/agent hole — that half is in #13836 if you want them to land together. |
|
Thanks @chessing234, that's the half I left out. #13836 and this touch different files, so they can land in either order or together. |
pi resolves PI_CODING_AGENT_DIR through its own tilde expansion, so a value like ~/.config/pi set somewhere a shell never expands it is one pi reads from $HOME/.config/pi. The script took it literally: a theme switch found no such directory and skipped the sync, and the install-time --activate created a ~ directory under the working directory and themed that instead. Co-Authored-By: Codex Medium <noreply@openai.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed and verified on a disposable Omarchy worker, with Codex Medium as a second opinion. The bug is real and this fixes it. With One thing pushed to your branch (8559e78). pi expands a leading Tests. What it waits on: the suite going green on |
[Medium impact] The PR appears safe to merge. SummaryPi theme sync now follows
No new actionable issues found. Tests were inspected, not run. Reviews (4) · Last reviewed commit: "Merge upstream/quattro into fix/pi-theme..." · Reviewed by Greptile |
|
Re-checked at e5f7265 on a disposable Omarchy worker, with Codex Medium as a second opinion. The fix still holds. The new commit only adds the ordinary-sync check to The new test is real. Against Tests. Second opinion. Codex Medium agreed on the reproduction and the test (it reads the same session, so its agreement is not guaranteed to be independent). It also pointed out that pi 1.0.3 accepts a What it waits on: the maintainer. #13836 handles the skill symlinks from the issue, and #13713 and #13718 change this same script for unrelated reasons; each merges cleanly with this one. |
|
+1, tested on my laptop (ASUS Vivobook, Intel Arc) with a headless harness (synthetic HOME and a stub On quattro, |
|
@paulogeyer Thanks for testing both the configured directory and leading-tilde path independently. The missing live Pi-agent soak is already the remaining limitation, so this gives the maintainer another useful reproduction without overstating it. |
|
I merged current |
a42f167 to
143b6bc
Compare
|
I re-checked this at 143b6bc, which merges current What ran, on a disposable Omarchy worker:
Second opinion: Codex Medium and muse-wonder (via pi, thinking high) reviewed the diff and the merge resolution. Codex found no defects, judged the change proportionate, and confirmed by reading that the new tests fail without the fix. muse-wonder agreed on the main paths. It also noted three things this change doesn't handle:
The last two come from how the variable is set rather than from this change. Independence of the reviews isn't guaranteed. Nothing was pushed to the branch. This now waits on the maintainer. The skill-symlink half of #13691 is still in #13836. |
…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.
|
This still merges cleanly, and every reported check passes. The configured-directory and leading-tilde paths have focused coverage plus an independent laptop reproduction; the default path remains unchanged. Is there any remaining proof or scope change you would like before this lands? |
|
Closing to keep the review queue clean; happy to reopen if this is still wanted. |
|
Please reopen this. |
Fixes #13691.
omarchy-theme-set-pihardcodedPI_AGENT_DIR="$HOME/.pi/agent". Pi reads its config fromPI_CODING_AGENT_DIRwhen that variable is set, so theme changes wrote the generated theme and activation setting into a directory Pi never reads.The script now uses
${PI_CODING_AGENT_DIR:-$HOME/.pi/agent}, matching the existing configurable-directory behavior for Claude and Hermes. It also expands the exact leading-tilde forms Pi supports (~and~/...), including values supplied by a service or config file where a shell never expands them.The focused regression covers both command paths. An existing configured directory receives ordinary theme sync without changing
settings.json;--activatecreates the configured directory when needed and selectsomarchy-system. The same ordinary-sync check against currentquattroleaves the configured theme file missing, while this branch passes. The focused run also covers the default path, missing-directory skip, settings preservation, and leading-tilde expansion: 6 cases passed.bash -n bin/omarchy-theme-set-pi test/cli,git diff --check, the added-line security scan, and a fresh Codex review pass with no blocking findings.The skill-symlink paths from the issue remain separate in #13836 because they do not run during theme changes. I did not run the broad local suite on this machine; GitHub CI remains the broad check.