From 15dd720609e155d404fe7e240e539319056d4619 Mon Sep 17 00:00:00 2001 From: ScottN-PV Date: Thu, 8 Oct 2026 17:14:17 -0400 Subject: [PATCH] fix(web): Local environment switch stays reachable after turning it off With the local environment off there is no primary environment, so the Connections section rendered only "No environment selected" and the switch to turn it back on disappeared. Co-Authored-By: Claude Opus 5.5 --- apps/web/src/components/settings/ConnectionsSettings.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/src/components/settings/ConnectionsSettings.tsx b/apps/web/src/components/settings/ConnectionsSettings.tsx index 625efb562f97..4d35d789d850 100644 --- a/apps/web/src/components/settings/ConnectionsSettings.tsx +++ b/apps/web/src/components/settings/ConnectionsSettings.tsx @@ -4094,6 +4094,8 @@ export function ConnectionsSettings() { title="No environment selected" description="Connect an environment to view its settings and access." /> + {/* A turned-off local environment leaves no primary environment, so its switch lives here too. */} + {canReadRelay || canManageRelay ? ( ) : null}