fix(plugins): find the new copy via _existing_install, as install_plugin does

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chuck
2026-10-04 14:25:08 -04:00
co-authored by Claude Opus 5.5
parent dce0072b44
commit d772bdf878
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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")
+1 -1
View File
@@ -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.