From 731e3c3f000fec8ee302fd35e0aed41a25bff5b9 Mon Sep 17 00:00:00 2001 From: Linghong Date: Sun, 13 Sep 2026 09:36:27 +0000 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=8C=96=E9=98=B6=E6=AE=B5=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E7=8A=B6=E6=80=81=E7=A1=AE=E8=AE=A4=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 审批通过后要求 Agent 先调用 get_workflow_status 在状态确认前禁止开始阶段工作或断言阶段状态 --- .../src-tauri/src/agent/design_runtime.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs index 959081636..3cd44b4bd 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/design_runtime.rs @@ -229,15 +229,18 @@ fn prepare_design_decision( } if approved { let phase = approve_design_phase(session, request_id)?; - let suffix = if phase == "consultant" { - "" - } else { - "请开始该阶段工作。" - }; append_design_user( session, id, - format!("用户已批准上一阶段,现在进入 {phase} 阶段。{suffix}"), + if phase == "consultant" { + format!( + "用户已批准上一阶段,现在进入 {phase} 阶段。开始本轮工作前,先调用 get_workflow_status 确认 Runtime 当前阶段;在工具返回前,不要开始顾问工作或断言阶段状态。" + ) + } else { + format!( + "用户已批准上一阶段,现在进入 {phase} 阶段。开始本轮工作前,先调用 get_workflow_status 确认 Runtime 当前阶段;在工具返回前,不要开始新阶段工作、写入文件、提交审批或断言阶段状态。" + ) + }, ); begin_design_turn(session, id); } else {