From 61a7f08e7bcb2afa19f3b43ad6031b9a4c67b26a Mon Sep 17 00:00:00 2001 From: Conrad Date: Mon, 26 Jan 2026 22:53:06 -0800 Subject: [PATCH] macOS: keep Not configured from snapping back to remote --- apps/macos/Sources/Moltbot/AppState.swift | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/macos/Sources/Moltbot/AppState.swift b/apps/macos/Sources/Moltbot/AppState.swift index 627e5851f..00419a571 100644 --- a/apps/macos/Sources/Moltbot/AppState.swift +++ b/apps/macos/Sources/Moltbot/AppState.swift @@ -533,6 +533,15 @@ final class AppState { gateway["remote"] = remote changed = true } + } else if connectionMode == .unconfigured { + // Prevent implicit remote-mode re-selection when the user explicitly + // chooses "Not configured" in the UI. Leaving gateway.remote.url + // behind causes applyConfigOverrides to force .remote. + if var remote = gateway["remote"] as? [String: Any], remote["url"] != nil { + remote.removeValue(forKey: "url") + gateway["remote"] = remote + changed = true + } } guard changed else { return }