From e18b58f55671aec2927e93df5aaaecd52298e527 Mon Sep 17 00:00:00 2001 From: kdletters Date: Sun, 23 Aug 2026 22:59:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E8=BF=90=E8=A1=8C=E8=A7=86?= =?UTF-8?q?=E7=AA=97=E6=8F=90=E4=BA=A4=E8=BE=B9=E7=95=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 恢复提交钩子误格式化的主分支文件 保持 PR 仅包含运行视窗相关变更 --- apps/ai-game-creator-shell/src/App.tsx | 4 ++-- .../ai-game-creator-shell/tests/appSurface/home.suite.ts | 9 +++------ .../tests/appSurface/project-conversation.suite.ts | 4 ++-- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index 696b08de7..b1dc5ec60 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -11565,8 +11565,8 @@ export function App({ ); const projectSupervisorHasConversationControls = Boolean( projectSupervisorRuntime?.pendingToolAction || - projectSupervisorRuntime?.userInputRequest || - projectSupervisorNeedsUserInput, + projectSupervisorRuntime?.userInputRequest || + projectSupervisorNeedsUserInput, ); const visibleAgentConversationMessages = latestVisibleItems( agentConversationMessages, diff --git a/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts index ea125d6ec..791857f78 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts @@ -897,8 +897,7 @@ export function registerClientHomeTests() { ]; const streamedReply = '流式正文已经完整结束。'; let streamHandler: - | ((event: { payload: Record }) => void) - | null = null; + ((event: { payload: Record }) => void) | null = null; const invoke = vi.fn( async (command: string, args?: Record) => { if (command === 'read_local_conversation') { @@ -1576,11 +1575,9 @@ export function registerHomeProjectCreationTests() { expect(persistedTurnCall).toBeGreaterThanOrEqual(0); expect(persistedTurnCall).toBeLessThan(directTurnCall); const persistedTurnArgs = invoke.mock.calls[persistedTurnCall]?.[1] as - | Record - | undefined; + Record | undefined; const directTurnArgs = invoke.mock.calls[directTurnCall]?.[1] as - | Record - | undefined; + Record | undefined; expect(persistedTurnArgs).toEqual({ projectPath, agentId: null, diff --git a/apps/ai-game-creator-shell/tests/appSurface/project-conversation.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/project-conversation.suite.ts index 03ae80240..30e6e9177 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/project-conversation.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/project-conversation.suite.ts @@ -461,8 +461,8 @@ export function registerProjectConversationTests() { '未命名游戏原型', ); let finishConversationRead: - | ((value: { path: string; agentId: null; messages: [] }) => void) - | null = null; + ((value: { path: string; agentId: null; messages: [] }) => void) | null = + null; const invoke = vi.fn( async (command: string, args?: Record) => { if (command === 'append_local_permission_log') {