mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-28 05:46:58 +02:00
When logging in via email/OTP, verifyCode sets `user` in the auth store before listWorkspaces + hydrateWorkspace complete. This causes AppContent to render DesktopShell with workspace=null, and OnboardingGate freezes that state — permanently showing the "create workspace" wizard. Three-part fix: - Add `workspaceHydrated` flag to workspace store (true once hydrateWorkspace has run, regardless of result) - Reorder AuthInitializer to hydrate workspace before flipping isLoading - Gate DesktopShell rendering on workspaceHydrated in AppContent