fix: 保留插件开发热重载与代际候选 (#6483)

* fix(plugin): preserve development source admission

* test(plugin): cover runtime payload hot reload
This commit is contained in:
InfinityPacer
2026-08-27 20:16:24 +08:00
committed by GitHub
parent 011ebfbe5f
commit 8e7a553c1e
6 changed files with 184 additions and 8 deletions
+6
View File
@@ -586,6 +586,12 @@ def select_plugin_candidate(
and local_selection.status is PluginSelectionStatus.INCOMPLETE
):
return local_selection
# 精确本地来源用于开发同步;未指定来源的启动与更新才参与在线版本协调。
if explicit_source and local_candidates is not None:
return local_selection or PluginSelection(
status=PluginSelectionStatus.UNAVAILABLE,
reason="所选本地仓库中没有该插件",
)
online = inventory.candidates_for(plugin_id)
if not online: