From caf61be460c2d11276fd62681693b3760d66e016 Mon Sep 17 00:00:00 2001 From: Vedant Mahajan Date: Tue, 23 Jun 2026 19:54:28 +0530 Subject: [PATCH] Remove comments about guest page session handling Removed comments explaining guest page rendering logic. --- apps/web/components/ensure-workspace.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/web/components/ensure-workspace.tsx b/apps/web/components/ensure-workspace.tsx index 688e61a9..0d4a69bb 100644 --- a/apps/web/components/ensure-workspace.tsx +++ b/apps/web/components/ensure-workspace.tsx @@ -25,10 +25,6 @@ export function EnsureWorkspace({ children }: { children: React.ReactNode }) { const isPublicAppPage = pathname === "/" && ["integrations", "mcp"].includes(searchParams.get("view") ?? "") - // Only treat this as a guest page once the session state is actually known. - // While the session is still pending we can't tell guest from logged-in, so - // rendering the public page optimistically here causes a logged-in user to - // see public content → loading shell → authenticated content (a double flash). const isGuestPublicAppPage = isPublicAppPage && !session && !isSessionPending const isOnboarding = pathname.startsWith("/onboarding")