diff --git a/apps/ai-game-creator-shell/src/App.tsx b/apps/ai-game-creator-shell/src/App.tsx index 458b5bcc4..42dabda45 100644 --- a/apps/ai-game-creator-shell/src/App.tsx +++ b/apps/ai-game-creator-shell/src/App.tsx @@ -3080,7 +3080,10 @@ export function App({ return; } const draft = chatComposerRef.current?.getDraft(); - persistSupervisorChatDraft(initialProjectPath, draft?.text ?? ''); + if (!draft?.text.trim()) { + return; + } + persistSupervisorChatDraft(initialProjectPath, draft.text); }, [initialProjectPath, supervisorChatOnly]); useEffect(() => {