From e3870d19de3e4bce3544340087defe7fe65e1afb Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 15 Sep 2026 12:35:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(extension):=20run=20=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=AE=88=E5=8D=AB=E4=B8=8E=20trial=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E2=80=94=E2=80=94=E9=80=82=E9=85=8D=E5=99=A8=20=5Freal=20?= =?UTF-8?q?=E9=9D=9E=20None=20=E5=8D=B3=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bioflow_service/app/services/bioflow/extensions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bioflow_service/app/services/bioflow/extensions.py b/bioflow_service/app/services/bioflow/extensions.py index 0e3c143..b6b9ede 100644 --- a/bioflow_service/app/services/bioflow/extensions.py +++ b/bioflow_service/app/services/bioflow/extensions.py @@ -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)"