From edfd1f9143c461f792fac47056fa23fd128044b7 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 18:51:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20Godot=20=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E5=9B=9E=E5=90=88=E7=94=A8=E4=BE=8B=E5=AF=B9=20canonical=20con?= =?UTF-8?q?tent=20=E7=9A=84=E6=96=AD=E8=A8=80=20-=20appSurface=20Godot=20?= =?UTF-8?q?=E7=94=A8=E4=BE=8B=E4=B8=8D=E5=86=8D=E6=96=AD=E8=A8=80=E8=A2=AB?= =?UTF-8?q?=E8=A3=81=E5=89=AA=E8=BF=87=E7=9A=84=E7=BA=AF=E6=96=87=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E4=B8=BA=E6=96=AD=E8=A8=80=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E5=AE=9E=E9=99=85=E6=8F=90=E4=BA=A4=E7=9A=84=20canoni?= =?UTF-8?q?cal=20content=EF=BC=88Shift+Enter=20=E4=B8=8E=E7=BB=84=E5=90=88?= =?UTF-8?q?=E6=80=81=20Enter=20=E6=8F=92=E5=85=A5=E7=9A=84=E6=8D=A2?= =?UTF-8?q?=E8=A1=8C=E5=8E=9F=E6=A0=B7=E4=BF=9D=E7=95=99=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tests/appSurface/project-development.suite.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts index 2438d7657..df819a4ab 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/project-development.suite.ts @@ -9341,6 +9341,8 @@ export function registerProjectSupervisorSurfaceTests() { expect(fireEvent.keyDown(composer, { key: 'Enter' })).toBe(false); await waitFor(() => { + // canonical content 原样保留编辑器内容:上面的 Shift+Enter 与组合态 Enter + // 在编辑器里各插入一个真实换行,提交时不能被悄悄丢掉。 expect(invoke).toHaveBeenCalledWith( 'chat_with_game_creator_direct_codex', { @@ -9351,7 +9353,7 @@ export function registerProjectSupervisorSurfaceTests() { id: expect.stringMatching(/^direct-codex:[A-Za-z0-9-]+:user$/), type: 'message', role: 'user', - content: [{ type: 'input_text', text: '修改玩家移动脚本' }], + content: [{ type: 'input_text', text: '修改玩家移动脚本\n\n' }], }, }, );