forked from admin/PlantAI-rag-new
fix(extension): run 方法守卫与 trial 统一——适配器 _real 非 None 即执行
This commit is contained in:
@@ -804,7 +804,9 @@ class ExtensionStore:
|
||||
|
||||
executor = self.executor or ExtensionExecutor()
|
||||
started = now_iso()
|
||||
if isinstance(executor, ExtensionExecutor) and type(executor) is ExtensionExecutor:
|
||||
if isinstance(executor, ExtensionExecutor) and executor._real is None:
|
||||
# 与 trial 守卫同语义:适配器实例(ExtensionExecutor)在未注入真实执行器时
|
||||
# 才拒绝;TL 接线后的适配器 _real 非 None,正常执行。
|
||||
raise ExtensionRunError(
|
||||
"扩展执行器未接入(extension_exec.py 由 Dev-B 实现;"
|
||||
"接口签名见 extensions.ExtensionExecutor)"
|
||||
|
||||
Reference in New Issue
Block a user