From c4c1428126d9739d1c26777228bd10e3389b5313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Tue, 15 Sep 2026 19:50:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=20DirectProject=20=E7=A9=BA?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=B8=B4=E6=97=B6=E5=9B=9E=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reducer 没有累计文本时同步清空旧的瞬时回复。 --- apps/ai-game-creator-shell/src/App.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index e0c77dfe7..a8e5c83fc 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -1947,6 +1947,10 @@ export function App({ setDirectCodexTransientReply(state.accumulatedText); directCodexTransientReplyRef.current = state.accumulatedText; setDirectCodexTransientReplyUpdatedAt(Date.now()); + } else { + setDirectCodexTransientReply(''); + directCodexTransientReplyRef.current = ''; + setDirectCodexTransientReplyUpdatedAt(null); } };