From 10436a641cae549ad2641c38303e07b17dc54e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 3 Oct 2026 12:21:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=EF=BC=9A=E8=A1=A5=E5=85=85?= =?UTF-8?q?=20ShouldContinue=20=E5=8F=98=E4=BD=93=E7=9A=84=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E7=B1=BB=E5=9E=8B=E8=AE=BE=E8=AE=A1=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src-tauri/src/agent/codex_app_server/turn_error.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server/turn_error.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server/turn_error.rs index 2cedfbbb3..707674fbf 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server/turn_error.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server/turn_error.rs @@ -575,6 +575,9 @@ pub(crate) enum TurnErrorClassified { /// 真失败:这一轮到此为止。载荷已投影并脱敏,可直接下发。 ShouldStop(TurnFailure), /// 控制流(返修 / 复核要求继续):这一轮还没结束,调用方**不得**写终态。 + // TODO string-typed: `detail` 是字符串,但当前没有任何按变体或按内容的行为分支——消费方只有 + // 返修 prompt 拼接和一条 debug_assert。先保留字符串形态;等 typed 控制流层 + // (`ReviewRequired` / `RepairRequired`)落地后再收口。 ShouldContinue { detail: String }, }