From 35733f0e33e511076872a35ee8d19ac457c624a7 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 17:54:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=20canonical=20=E8=8D=89?= =?UTF-8?q?=E7=A8=BF=E4=B8=AD=E7=9A=84=E7=A9=BA=E7=99=BD=E8=BE=93=E5=85=A5?= =?UTF-8?q?=20part?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在统一 user item 转换入口移除纯空白 input_text,覆盖恢复草稿和所有提交路径。 --- .../src/features/project-workspace/resourceReferences.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/resourceReferences.ts b/apps/ai-game-creator-shell/src/features/project-workspace/resourceReferences.ts index 2b6ac4d06..3f8cada72 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/resourceReferences.ts +++ b/apps/ai-game-creator-shell/src/features/project-workspace/resourceReferences.ts @@ -120,7 +120,9 @@ export function chatComposerDraftToDirectCodexUserItem( ): DirectCodexUserItem { let content: DirectCodexUserContentPart[]; if (draft.content?.length) { - content = draft.content; + content = draft.content.filter( + (part) => part.type !== 'input_text' || part.text.trim().length > 0, + ); } else if (draft.references.length > 0) { content = [ ...(draft.text