修复直接创作首轮消息被误抑制
Project CI / Repository checks (pull_request) Successful in 2m26s
Project CI / Frontend tests (pull_request) Successful in 3m2s
Project CI / Backend tests (pull_request) Successful in 5m38s
Project CI / Native shell tests (pull_request) Successful in 19m38s

仅在顾问态切换到 GameAgent 时禁止自动首轮调用

恢复普通直接创作入口的初始需求投递
This commit is contained in:
2026-09-11 12:12:24 +00:00
parent 3047434b33
commit 8528c5ffce
@@ -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
: []
}