From 30e27abc609eb39b918582f6bce43f4919644112 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:16:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BB=BA=E8=AE=AE=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E8=8D=89=E7=A8=BF=E6=AE=8B=E7=95=99=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 准备命令草稿前先清空编辑器 - 避免提交用户上一轮选择的素材引用 --- apps/ai-game-creator-shell/src/App.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index c42c14175..458b5bcc4 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -4615,6 +4615,7 @@ export function App({ } function prepareChatCommandDraft(commandDraft: string) { + chatComposerRef.current?.clear(); chatComposerRef.current?.replaceText(commandDraft); window.setTimeout(() => chatInputRef.current?.focus(), 0); }