From 4ae5ab14fa76d821fc0787a5d6a47e018dfa02fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 18 Sep 2026 11:36:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=98=9F=E5=88=97=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E4=B8=8D=E5=8F=AF=E8=BE=BE=E5=85=9C=E5=BA=95=E5=88=86?= =?UTF-8?q?=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 队列标签统一复用 canonical content 的文本派生。 删除不会被现有引用类型触发的附件和素材兜底文案。 --- .../project-workspace/chatComposerQueue.ts | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/chatComposerQueue.ts b/apps/ai-game-creator-shell/src/features/project-workspace/chatComposerQueue.ts index 3132e0602..74601fa2e 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/chatComposerQueue.ts +++ b/apps/ai-game-creator-shell/src/features/project-workspace/chatComposerQueue.ts @@ -88,17 +88,9 @@ export function queuedChatTurnLabel( const text = directCodexContentToPromptText(turn.userItem.content, assets) .trim() .replace(/\s+/gu, ' '); - if (text) { - return text.length > 24 ? `${text.slice(0, 24)}…` : text; - } - const attachment = turn.userItem.content.find( - (part) => part.type === 'agc_attachment_reference', - ); - if (attachment?.type === 'agc_attachment_reference') { - return `附件 · ${attachment.name || '未命名'}`; - } - if (turn.userItem.content.some((part) => part.type !== 'input_text')) { - return '素材引用'; - } - return '未命名消息'; + return text + ? text.length > 24 + ? `${text.slice(0, 24)}…` + : text + : '未命名消息'; }