From d772bdf87817dc2ab67fab83c0c3987b56e6d730 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Sun, 4 Oct 2026 14:25:08 -0400 Subject: [PATCH] fix(plugins): find the new copy via _existing_install, as install_plugin does Co-Authored-By: Claude Opus 5.5 --- src/plugin_system/store_install.py | 2 +- src/plugin_system/store_update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin_system/store_install.py b/src/plugin_system/store_install.py index 6e9da62a..8e8a90b4 100644 --- a/src/plugin_system/store_install.py +++ b/src/plugin_system/store_install.py @@ -95,7 +95,7 @@ class _InstallMixin: if installed: self._discard_backup( plugin_id, backup_path, "install", - new_path=self._find_plugin_path(plugin_id) or plugin_path) + new_path=self._existing_install(plugin_id) or plugin_path) return True self._restore_backup(plugin_id, plugin_path, backup_path, "Install") diff --git a/src/plugin_system/store_update.py b/src/plugin_system/store_update.py index 92f8816f..4c1ec480 100644 --- a/src/plugin_system/store_update.py +++ b/src/plugin_system/store_update.py @@ -309,7 +309,7 @@ class _UpdateMixin: # rather than the old directory name. self._discard_backup( plugin_id, backup_path, "update", - new_path=self._find_plugin_path(plugin_id) or plugin_path) + new_path=self._existing_install(plugin_id) or plugin_path) return True # Bad network, registry error...: the user keeps a working plugin.