Repository navigation
Say there is nothing to pick instead of opening an empty plugin or background picker - #18561
Merged
Merged
Conversation
plugin remove only checked that the plugins folder exists, and removing the last plugin leaves the folder, so gum choose got no options and the command ended on "cancelled". It now collects the list first and says there are no plugins installed, and a folder it cannot read says so rather than ending silently under pipefail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A theme with only colors.toml has no backgrounds, and menu-images opened the image picker on no rows. The picker reveals itself on its first preview, so it never appeared but held the keyboard until Escape. menu-images now exits 3 when it has nothing to offer, after the preload branch so the shell's cached copy is still refreshed, and the switcher sends the "No background was found for theme" notification that theme set and bg next already send. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Medium impact] The PR appears safe to merge. SummaryThe PR stops two pickers from opening without choices.
No actionable issues were found. Tests were not run during this review. Acknowledged behavior: Reviews (1) · Last reviewed commit: "Tell the background switcher's user ther..." · Reviewed by Greptile |
This was referenced Nov 13, 2026
omarchybot
added a commit
to pucedoteth/omarchy
that referenced
this pull request
Nov 16, 2026
omacom#18561 added a background switcher test at the same spot in test/shell.d/menu-images-test.sh as this branch's glob filename test. Both are kept: quattro's first, where it sits on quattro, then the glob filename test, which starts from an empty cache and has to finish before the gated stub that follows. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two pickers opened on an empty list instead of saying there was nothing to pick.
omarchy plugin removeafter the last plugin is gone. With no id, it checked only that~/.config/omarchy/pluginsexists. Removing a plugin leaves that folder behind, so once the last plugin was removed,gum choosegot no options. It printedno options provided, see gum choose --helpand the command ended onomarchy-plugin-remove: cancelled. The list is now collected first. An empty list givesno plugins installed, the message it already gives when the folder is missing. A folderfindcannot read givescould not read <folder>. Before, that case also ended on gum's message, and collecting the list underpipefailwithout a check would have made it exit silently.The background switcher on a theme with no backgrounds. A theme that ships only
colors.toml, as many community themes do, has no backgrounds. The switcher (Super+Ctrl+Space, Appearance > Background) handed its empty folders toomarchy-menu-images, which opened the image picker on no rows. The picker reveals itself only once a preview is ready, so it never appeared, but it still held the keyboard until Escape.omarchy-menu-imagesnow exits 3 when it has nothing to offer. The check sits after its--cache-only,--prepare-only,--print-rowsand--preloadbranches, so the shell's cached rows are still refreshed as before. The switcher then sends the "No background was found for theme" notification thatomarchy theme setandomarchy theme bg nextalready send. The theme and Plymouth switchers always have previews to show, and they pass the 3 through unchanged.This stands on its own. #7320 fixes the same empty-list problem in
omarchy-menu-selectandomarchy-menu-file(transcode and the retro game installer), and it also uses 3 for "nothing to offer". Neither pull request needs the other.One consequence: exit 3 means no row the picker could show. If a theme's only background is a video
ffmpegthumbnailerrejects, or an imagevipsthumbnailfails on, the notification says no background was found even though a file exists. Before, the same theme opened the invisible picker. #16803 rewritesomarchy-theme-bg-switcher, so whichever of the two lands second needs a rebase. #17442 also changes howomarchy-menu-imagesopens the picker.🤖 Generated by Opus 5.5 in Claude Code. Reviewed by Codex Medium and muse-wonder High.