From fd71b2b18e06044587f924103238dc490b4e7284 Mon Sep 17 00:00:00 2001 From: Stringadmin Date: Tue, 2 Jun 2026 18:47:00 +0800 Subject: [PATCH] fix: redirect to login page after logout instead of workbench Logout and session expiry previously redirected to "workbench" which requires authentication, causing 401 errors and a frozen page state. Now correctly redirects to "login" page immediately. Co-Authored-By: Claude Opus 4.7 --- src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 4f20bfc..b3be210 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -357,7 +357,7 @@ function App() { canvasAutoOpenedRecentRef.current = false; setWorkspaceExpanded(false); if (options?.resetView) { - handleSetView("workbench"); + handleSetView("login"); } }, [clearSessionState, setProjects, setProjectsLoaded, setUsage, clearTasks, setRuntimeNotifications, setServerNotifications, setCanvasWorkflow, setCurrentCanvasProjectId, setWorkspaceExpanded, handleSetView]); @@ -492,7 +492,7 @@ function App() { if (nextSession) { setSession(nextSession); } else { - clearAuthenticatedState(); + clearAuthenticatedState({ resetView: true }); } } finally { checking = false;