From 166568edea4c9ab23fdd75c1786f151c0c7dd691 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Thu, 23 Apr 2026 19:14:30 +0200 Subject: [PATCH] fix(ui): preserve environment selection across logout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit handleLogout explicitly cleared the env from localStorage, forcing the env switcher modal to re-open on every login. Drop that clear so the last selected env is restored from localStorage on the next session — the expected behavior for a personal-preference store. Co-Authored-By: Claude Opus 4.7 (1M context) --- ui/src/components/LayoutShell.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/src/components/LayoutShell.tsx b/ui/src/components/LayoutShell.tsx index 833807fb..aa06515e 100644 --- a/ui/src/components/LayoutShell.tsx +++ b/ui/src/components/LayoutShell.tsx @@ -729,7 +729,6 @@ function LayoutContent() { // --- Callbacks ---------------------------------------------------- const handleLogout = useCallback(() => { logout(); - useEnvironmentStore.getState().setEnvironment(undefined); navigate('/login'); }, [logout, navigate]);