diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index 9cf7ad4c0..ea305a8bc 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -1243,6 +1243,9 @@ export function App({ const initialProjectOpenedRef = useRef(false); const pendingUiConfirmationActionRef = useRef<(() => void) | null>(null); const queueRunLocalShortcutRef = useRef<() => void>(() => undefined); + const executeRunLocalRef = useRef<(announceToChat: boolean) => void>( + () => undefined, + ); function requestRuntimeConfigOpen() { if (projectSupervisorOnly && !supervisorChatOnly && !gameChatOnly) { @@ -3283,6 +3286,7 @@ export function App({ ]); } queueRunLocalShortcutRef.current = queueRunLocalShortcut; + executeRunLocalRef.current = executeRunLocal; useEffect(() => { const nextProjectPath = localProject?.projectPath; @@ -3300,7 +3304,7 @@ export function App({ } handledPlayRequestRef.current = requestKey; onPlayRequestHandled?.(playRequest.requestId); - queueRunLocalShortcutRef.current(); + void executeRunLocalRef.current(true); }, [ localProject?.projectPath, onPlayRequestHandled, 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 139446dee..10e4fd343 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 @@ -34,7 +34,7 @@ export function WorkspaceLauncherShell({ ProjectSupervisor, }: WorkspaceLauncherShellProps) { const accountWallet = useAccountWallet(currentUser.id); - const [status, setStatus] = useState('请选择项目'); + const [status, setStatus] = useState(''); const recentProjects = useRecentProjects(setStatus); const { recentProjectRows, rememberRecentWorkspace } = recentProjects; const [launcherView, setLauncherView] = useState(initialView); @@ -273,7 +273,6 @@ export function WorkspaceLauncherShell({ {launcherView === 'home' ? ( 0} - status={status} onStatusChange={setStatus} recentProjectRows={recentProjectRows} onCreateDraftAutomatically={createHomeDraftAutomatically} diff --git a/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx b/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx index 10a88f942..d7f3dbd3b 100644 --- a/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx +++ b/apps/ai-game-creator-shell/src/features/project-workspace/ProjectSupervisorView.tsx @@ -1,4 +1,4 @@ -import { Send } from 'lucide-react'; +import { ArrowUp } from 'lucide-react'; import type { ComponentProps, Dispatch, @@ -251,14 +251,7 @@ export function ProjectSupervisorView({ type="submit" disabled={runtimePanelProps.controlBusy || needsUserInput} > -