修复直接创作首轮消息被误抑制
仅在顾问态切换到 GameAgent 时禁止自动首轮调用 恢复普通直接创作入口的初始需求投递
This commit is contained in:
@@ -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
|
||||
: []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user