From 28e776d58e7b738a7fbedacb5385c0c423196cea Mon Sep 17 00:00:00 2001 From: kaitranntt Date: Wed, 4 Feb 2026 21:36:20 -0500 Subject: [PATCH] fix(ui): allow backend switching in remote mode When in Remote mode, local proxy running status no longer blocks backend switching. Introduced `isBackendSwitchBlocked` computed variable that only evaluates true in Local mode with running proxy. Closes #463 --- ui/src/pages/settings/sections/proxy/index.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ui/src/pages/settings/sections/proxy/index.tsx b/ui/src/pages/settings/sections/proxy/index.tsx index 38879cc2..da4bf7f2 100644 --- a/ui/src/pages/settings/sections/proxy/index.tsx +++ b/ui/src/pages/settings/sections/proxy/index.tsx @@ -155,6 +155,8 @@ export default function ProxySection() { } const isRemoteMode = config.remote.enabled ?? false; + // Only block backend switching in local mode when proxy is running + const isBackendSwitchBlocked = !isRemoteMode && isProxyRunning; const remoteConfig = config.remote; const fallbackConfig = config.fallback; @@ -318,8 +320,8 @@ export default function ProxySection() { Backend Binary - {/* Warning when proxy is running - must stop to change backend */} - {isProxyRunning && ( + {/* Warning when local proxy is running - must stop to change backend (not applicable in remote mode) */} + {!isRemoteMode && isProxyRunning && ( @@ -331,12 +333,12 @@ export default function ProxySection() { {/* Plus Backend Card */}