From 6798f098b55f1adf3904ba6b9e9223d0ec18d136 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Thu, 18 Jun 2026 22:39:30 +0800 Subject: [PATCH] =?UTF-8?q?[moz]=20fix(spawner):=20=5Fget=5Ftask=5Finfo=20?= =?UTF-8?q?SELECT=20=E8=A1=A5=20must=5Fhaves=20=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:_get_task_info 只 SELECT id, title, status,漏查 must_haves。 续杯/retry 路径从返回 dict 中 .get('must_haves') 永远拿到空值, 导致 PromptContext.event_type 为空,toolchain 通知显示「事件类型: 未知」。 修复:SELECT 补 must_haves 字段。 发现方式:L1 自蒸馏端到端验证中识别到 Recurrence-Count=2 信号 --- src/daemon/spawner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/spawner.py b/src/daemon/spawner.py index 6046527..9cfbbaf 100644 --- a/src/daemon/spawner.py +++ b/src/daemon/spawner.py @@ -1261,7 +1261,7 @@ curl -X POST http://{api_host}:{api_port}/api/projects/{project_id}/tasks/{task_ conn = get_connection(db_path) try: row = conn.execute( - "SELECT id, title, status FROM tasks WHERE id=?", ( + "SELECT id, title, status, must_haves FROM tasks WHERE id=?", ( task_id,) ).fetchone() if not row: