From 3774d7c1e188bba0d018c52f3b315163e53dafd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 11 Sep 2026 18:53:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=BF=AE=E5=A4=8D=E9=87=8D?= =?UTF-8?q?=E8=AF=95=E6=B5=81=E7=A8=8B=E4=B8=AD=E7=9A=84=E9=9A=90=E5=BC=8F?= =?UTF-8?q?=E6=81=90=E6=85=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在循环意外结束时返回可恢复错误而不是触发 unreachable。 --- .../src-tauri/src/ui_editor/commands/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs index 84f7fa178..e40a2805d 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/utils.rs @@ -67,7 +67,7 @@ where Err(error) => return Err(error), } } - unreachable!("repair history runner always returns within requested retries") + Err("LLM 修复重试流程未产生结果".to_string()) } pub(crate) fn parse_limited_llm_tool_arguments(