From fe813802a576287d569f1e78f80b4360692619ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 4 Sep 2026 16:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E6=A3=80=E6=9F=A5=E6=8F=90=E7=A4=BA=E6=8B=BC=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除请检查文案探测逻辑 终态文案统一直接追加检查提示 --- .../view/ui-editor/components/workflowCompletionNotice.ts | 1 - .../tests/workflowCompletionNotice.test.ts | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.ts b/apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.ts index 02fd867f8..1c0bfbfa0 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.ts +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/workflowCompletionNotice.ts @@ -9,7 +9,6 @@ export type WorkflowCompletionNotice = { export function appendWorkflowCheckPrompt(message: string): string { const trimmed = message.trim(); if (!trimmed) return '请检查。'; - if (trimmed.includes('请检查')) return trimmed; return `${trimmed.replace(/[。!?!?]+$/u, '')},请检查。`; } diff --git a/apps/ai-game-creator-shell/tests/workflowCompletionNotice.test.ts b/apps/ai-game-creator-shell/tests/workflowCompletionNotice.test.ts index d583aa737..01016c4ae 100644 --- a/apps/ai-game-creator-shell/tests/workflowCompletionNotice.test.ts +++ b/apps/ai-game-creator-shell/tests/workflowCompletionNotice.test.ts @@ -6,13 +6,10 @@ import { } from '../src/view/ui-editor/components/workflowCompletionNotice'; describe('workflow completion notice helpers', () => { - it('appends the review prompt without duplicating it', () => { + it('appends the review prompt to a terminal status', () => { expect(appendWorkflowCheckPrompt('已应用 3 条建议。')).toBe( '已应用 3 条建议,请检查。', ); - expect(appendWorkflowCheckPrompt('已应用 3 条建议,请检查。')).toBe( - '已应用 3 条建议,请检查。', - ); }); it('maps every workflow step to a user-facing label', () => {