From f9be9205ab6e11c13443535247cf72bfaacf91aa Mon Sep 17 00:00:00 2001 From: host Date: Tue, 27 Oct 2026 04:27:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20goal=5Fresume=5Ftask=20=E5=8F=AA?= =?UTF-8?q?=E5=9C=A8=20LocalExecutor=20=E4=B8=8A=E8=B0=83=EF=BC=8C?= =?UTF-8?q?=E5=85=B6=E4=BD=99=E5=9B=9E=E8=90=BD=20goal=5Ftask?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 与附件分支同款隐患:CloudExecutor 基类与假执行器没有 goal_resume_task,直接调会 AttributeError;回落到 goal_task 让 它们按原语义失败(CloudExecutor 即“不支持 goal”)。 --- cloud/worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cloud/worker.py b/cloud/worker.py index 733f598..5f29a4f 100644 --- a/cloud/worker.py +++ b/cloud/worker.py @@ -1700,6 +1700,7 @@ class Worker: # TypeError(2026-10-27 实测炸掉 3 个旧测试); # Docker 路径上面已有 is_docker 守卫,不走这里。 if goal_mode: + if task.get("_resume") and isinstance( self.executor, LocalExecutor): result = self.executor.goal_resume_task(