From b1a9a296e8870a21d0707579c7ca348f4f416d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 2 Sep 2026 19:24:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8DDirect=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=80=81=E4=B8=B4=E6=97=B6=E5=9B=9E=E5=A4=8D=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 失败事件到达时清空界面中的临时回复。 保留ref中的partial供中断持久化流程使用。 --- apps/ai-game-creator-shell/src/App.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index 3f524a8f1..a7cc70883 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -1188,6 +1188,8 @@ export function App({ : Date.now(); if (payload.status === 'failed') { activeDirectCodexTurnRef.current = null; + setDirectCodexTransientReply(''); + setDirectCodexTransientReplyUpdatedAt(null); setDirectCodexProgress('处理失败,正在同步错误'); setDirectCodexProgressUpdatedAt(updatedAt); return;