From 8528c5ffce54ef8462fe2b264f0465ab90fe02c4 Mon Sep 17 00:00:00 2001 From: Linghong Date: Fri, 11 Sep 2026 12:12:24 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=B4=E6=8E=A5=E5=88=9B?= =?UTF-8?q?=E4=BD=9C=E9=A6=96=E8=BD=AE=E6=B6=88=E6=81=AF=E8=A2=AB=E8=AF=AF?= =?UTF-8?q?=E6=8A=91=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 仅在顾问态切换到 GameAgent 时禁止自动首轮调用 恢复普通直接创作入口的初始需求投递 --- .../src/features/app-shell/WorkspaceLauncher.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx b/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx index d3f8f2667..8ee4cde5c 100644 --- a/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx +++ b/apps/ai-game-creator-shell/src/features/app-shell/WorkspaceLauncher.tsx @@ -61,6 +61,7 @@ export function WorkspaceLauncherShell({ const [agentRuntimeMode, setAgentRuntimeMode] = useState<'design' | 'game'>( 'game', ); + const [suppressInitialGameTurn, setSuppressInitialGameTurn] = useState(false); const developerAgent = useDeveloperAgentPanel(launcherView); const homeProject = useHomeProjectCreation({ setStatus, @@ -85,6 +86,7 @@ export function WorkspaceLauncherShell({ openProject, } = homeProject; useEffect(() => { + setSuppressInitialGameTurn(false); setAgentRuntimeMode( currentProjectContext?.startMode === 'planning' ? 'design' : 'game', ); @@ -253,6 +255,7 @@ export function WorkspaceLauncherShell({ projectPath: nextProjectPath, activeRuntime: 'game', }); + setSuppressInitialGameTurn(true); setAgentRuntimeMode('game'); } @@ -363,17 +366,17 @@ export function WorkspaceLauncherShell({ initialProjectManifest={currentProjectContext.manifest} initialProjectKind={currentProjectContext.projectKind} initialSupervisorMessage={ - agentRuntimeMode === 'design' + !suppressInitialGameTurn ? currentProjectContext.initialPrompt : '' } initialCreationType={ - agentRuntimeMode === 'design' + !suppressInitialGameTurn ? currentProjectContext.creationType : null } initialAttachments={ - agentRuntimeMode === 'design' + !suppressInitialGameTurn ? currentProjectContext.attachments : [] }