Repository navigation
Conversation
…dated reloadPlugins() starts with unloadPanels(), so installing, removing or updating any plugin closed every open plugin panel. A plugin manager closed itself on every change it made, and a settings window lost its place because an unrelated plugin updated. reloadPlugins() now takes the ids that changed and tears down only their panels; everything else keeps its instance and state. With no ids it is the full reload it was. The directory watcher passes the plugins it saw change, plugin add/remove/update name theirs through a new reloadPluginsFor IPC call, and kept panels are handed their plugin's new service after the scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 14, 2026
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.
Problem
Adding, removing or updating any plugin closes every open plugin panel.
omarchy-plugin-add,-removeand-updatefinish withomarchy-shell shell rescanPlugins, and the plugin directory watcher triggers the same reload on any change under~/.config/omarchy/plugins.reloadPlugins()starts withunloadPanels(), which hides every panel and clearspanelEntryModel, so every panel instance is destroyed and rebuilt.That hurts most in panels whose job is managing plugins: a plugin manager closes itself on every install, uninstall or update it performs, and a settings window loses its page and edits because an unrelated plugin updated.
The recent
syncPanelEntrieswork already stops ordinary plugin changes from rebuilding every panel. This extends the same idea to the reload itself.Reproduce
omarchy plugin remove <another plugin> --yes.Change
reloadPlugins(changedIds)takes an optional list of plugin ids. With ids,unloadPanelsFor(ids)tears down only those plugins' panels: it hides them and drops theirpanelEntryModelrows, loaders, pending payloads and open marks. Every other panel keeps its instance. Without ids it is exactly today's full reload, sorescanPluginsand other callers behave as before.onLocalPluginChanged(pluginId)). It now collects ids over its 150 ms debounce and passes them on.serviceget their plugin's new instance throughrebindPanelServices()after_syncServices(), so they never hold a destroyed one.shellIPC methodreloadPluginsFor "<id> [<id>…]". The add, remove and update scripts call it with the plugins they touched instead ofrescanPlugins. It's documented indocs/omarchy-shell.mdandagents/skills/shell-dev.md.What each case does:
syncPanelEntries()doesn't re-add it.syncPanelEntries()appends it as today.Not covered (deliberately small)
rescanPluginsstays a full reload for callers that can't name what changed.omarchy-plugin-clonestill usesrescanPlugins.Testing
Opened as a draft because it hasn't been run in a live stock shell yet.
quattroat d679824.bash -npasses on the three scripts.qmllintshows no new errors or warnings inshell/shell.qml. The twoGlobalShortcut [required]warnings already exist onquattro.Checks still to run in a live shell:
omarchy plugin remove B --yesleaves A open with its state, and B's panel is gone.omarchy plugin update Bleaves A open, and B's panel loads the new code.omarchy-shell shell rescanPluginsstill does a full reload.servicestill talks to a live service after another plugin reloads.