Repository navigation
Report failed theme removal before announcing success - #12385
yashranaway wants to merge 9 commits into
Conversation
Automated AI review
Verified: the fix does what the description says. With a real permission failure, the patched Same synthetic theme with a read-only subdirectory, real
Verified: by GNU coreutils source, Menu removals now fail with no feedbackRemove > Theme runs This was traced in source and not run from a live menu. Impact: from the menu, a failed removal used to show a false "Theme removed" notification. It now shows nothing at all, so the user cannot tell whether the removal failed. Suggested change: send a failure notification in the error branch, following existing uses such as if ! rm -rf "$THEME_PATH"; then
echo "Error: Could not remove theme '$THEME_NAME'." >&2
omarchy-notification-send -u critical "Could not remove theme" "$THEME_NAME" || true
exit 1
fiThe test's Review informationTest scope: Source review of AI process: Opus 5.5 Medium coordination and synthesis, independent Opus 5.5 Xhigh and GPT 6 Sol Xhigh technical assessments, Opus 5.5 Medium editorial check. Opt out: To stop receiving these reviews, reply to this comment saying so. |
The menu runs omarchy-theme-remove detached, so the error on stderr reaches nobody and a failed removal from Remove > Theme was silent. Send a critical notification on failure, and write the two outcomes as an if/else per the style guide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed and verified on a disposable Omarchy worker VM. The bug is real and this fixes it. Reproduction. I gave a theme a read-only subdirectory so a real Pushed to your branch. I added two small commits:
Tests. Second opinion. Codex at medium effort reviewed the diff in two rounds. It agreed the bug is real and the fix proportionate, and found no defects. Its one note, the stub's shape, is the second commit above. Its agreement is not guaranteed to be independent of my review. What happens next. The fix is verified at |
[Medium impact] The PR appears safe to merge; no outstanding finding or new actionable issue remains. SummaryThe PR reports a failed theme deletion instead of announcing success.
Reviews (5) · Last reviewed commit: "Translate theme removal failure notifica..." · Reviewed by Greptile |
|
The head moved to What changed. I read the new commits. Why it stops here. Every item is classified by two models working separately, and a push means asking both again. The second model (Codex Medium) could not answer this time because today's review budget is used up. Without that second answer the classification is unsettled, so I did not run the worker again and added no labels. Nothing was found wrong with the new commits. Claude Opus 5.5 read them; no second model reviewed them. What happens next. This is waiting on the maintainer to send it back for review once a second model can answer. Nothing is needed from you. |
…-remove # Conflicts: # bin/omarchy-theme-remove
|
Verified again at What changed. The new commits merge Reproduction. A theme with a read-only subdirectory makes a real Tests. Second opinion. Codex at medium effort reviewed the diff at this head and found no defects. It agreed the problem is real and the fix proportionate, and checked that the CLI dispatch and the menu entry both keep the new exit status. Its agreement is not guaranteed to be independent of my review. What happens next. This is waiting on the maintainer. Nothing is needed from you. |
Stops theme removal from announcing success when it could not delete the theme directory.
<<<< AI wording below >>>>
Problem
omarchy-theme-removeignores a failedrm -rf, sends a "Theme removed" notification, prints "Removed", and exits successfully. A permissions or filesystem error therefore looks like a completed removal even when the theme remains installed.Fix
Preserve the deletion diagnostic, identify the theme, and send a failure notification instead of announcing success.
Verification
bash test/shell.d/theme-remove-failure-test.shpasses. Changed Bash files pass syntax checks andgit diff --checkpasses.