Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Automated AI review
Outcome: The new source lookup can make Source lookup can fail the command after removalThe new Suggested change: Make the lookup best effort ( Reproducer: lookup failure (fails at 91d3868)Reproducer: a failed source lookup now fails
|
The source lookup runs after the clone has been moved to its backup, so under set -e a shell that stops answering there made remove exit 1 with the plugin already gone. It is now best effort, and the enable hint is printed only when the shell lists the source as disabled: a source it does not list at all, such as a built-in renamed since the clone was made, would be told to run an enable that fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Reviewed and verified on a disposable Omarchy worker. The bug in #13507 is real: I pushed one commit on top (9095a39), for two points from @llstrk's review above that I confirmed:
On the worker, Codex Medium reviewed the final diff as a second opinion and found nothing blocking. It agreed with the above, and its independence from my review is not guaranteed. One gap it pointed out was already there before this PR: a failed Not covered here, and also already there before this PR: for a source that is both a bar widget and a menu or service, Waiting on the maintainer. |
[Low impact] The PR appears safe to merge; no actionable issues were found. Summary
Reviews (3) · Last reviewed commit: "Merge quattro to refresh translation che..." · Reviewed by Greptile |
listPlugins reports a bar widget as enabled when it sits in the bar, but a widget that is also a menu or service, like omarchy.menu, does not load while it is in disabledPlugins. restoreCloneSource puts the source's bar entry back and lifts that disable only when enabling the clone is what set it, so a source the user had disabled first came back to the bar, still disabled, and was reported restored. Read disabledPlugins too, ignoring it unless it is an array as the registry does, and best effort like the listPlugins lookup, so a shell that stops answering costs only the report. From omacom#15250. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
|
I pushed one more commit (ae6f3ee). It folds in a check from #15250, a newer fix for the same #13507. This pull request is the one carried forward, and the commit credits #15250. The gap my last comment left for the maintainer is now closed. For a source that is both a bar widget and a menu or service, like
Codex Medium reviewed this change as a second opinion. In its first round it found two cases where a hand-edited config would produce the wrong report. The non-array case is fixed in this commit. It withdrew the other, a bar in Waiting on the maintainer. The full shell suite is not green on |
…ssions Keep both the clone-source status cases and quattro’s empty-plugin-picker regression while bringing in the corrected locale test fixture. The historical CI logs are no longer available, so this refresh is checked against the current translation gate rather than claiming to explain that run. Co-Authored-By: GPT-6 (effort not exposed) <noreply@openai.com>
|
Merged current On a disposable Omarchy worker linked to this head, I also exercised the real shell with distinct clone IDs. For a source disabled before its clone was enabled, the base removal script falsely reported restoration, this head printed the enable hint, and restoring the base script brought back the false report. The same held for a menu/widget source that was back in the bar but still in Reviewed by GPT-6 High in Codex and Opus 5.5 High and muse-wonder via pi, thinking high. Both second-opinion reviewers found no code defects; Opus noted an optional persistent test gap for stale status, which the live normal-restoration check above exercised. Their independence from my review is not guaranteed. The historical translation run’s logs and job details are no longer available, so its original failure remains unexplained. On df332b3, GitHub has marked both Tests and Check translation structure as |
Fixes #13507
omarchy plugin removeprintsRestored <source>.for any enabled clone, but the registry only re-enables the source when enabling the clone is what disabled it.removenow checks the source after the rescan and only reports it restored if it's enabled; otherwise it says it's still disabled and how to enable it:Tests:
test/shell.d/plugin-clone-test.shhas a new case that fails onquattroand passes with this change;plugins,plugin-enable,plugin-addandplugin-registry-contractalso pass.🤖 Generated with Claude Code