diff --git a/src/components/agent/chat/hooks/useAgentSession.ts b/src/components/agent/chat/hooks/useAgentSession.ts index cdbf62d2f..22fed35ed 100644 --- a/src/components/agent/chat/hooks/useAgentSession.ts +++ b/src/components/agent/chat/hooks/useAgentSession.ts @@ -902,6 +902,8 @@ export function useAgentSession(options: UseAgentSessionOptions) { saveTransient(scopedKeys.currentSessionKey, null); savePersisted(scopedKeys.persistedSessionKey, null); hydratedSessionRef.current = null; + restoredWorkspaceRef.current = null; + skipAutoRestoreRef.current = false; }) .finally(() => { if (missingSessionVerificationRef.current === sessionId) {