Files
Jiang Bohan 627d1b4fbc fix(desktop): prevent false onboarding trigger for users with existing workspaces
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
2026-04-15 20:55:10 +08:00
..