From fa99d9ad62b0cc1bdb645f5b0a4632d68220fe40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 16 Sep 2026 13:20:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E6=80=BB=E6=8E=A7=E8=8D=89?= =?UTF-8?q?=E7=A8=BF=E5=88=9D=E5=A7=8B=E5=8C=96=E8=AF=AF=E5=88=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 编辑器尚未恢复时跳过空草稿持久化 - 保留已有会话草稿等待输入区完成恢复 --- apps/ai-game-creator-shell/src/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index 458b5bcc4..42dabda45 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -3080,7 +3080,10 @@ export function App({ return; } const draft = chatComposerRef.current?.getDraft(); - persistSupervisorChatDraft(initialProjectPath, draft?.text ?? ''); + if (!draft?.text.trim()) { + return; + } + persistSupervisorChatDraft(initialProjectPath, draft.text); }, [initialProjectPath, supervisorChatOnly]); useEffect(() => {