fix: persist local gateway mode in configure wizard

This commit is contained in:
Peter Steinberger committed 2026-01-16 01:05:55 +00:00
1 parent f17dcb6213
commit bb665bf22c
4 files changed
+155 -1

No files matched your search

+16
View File
@@ -256,6 +256,17 @@ export async function runConfigureWizard(
}
let nextConfig = { ...baseConfig };
let didSetGatewayMode = false;
if (nextConfig.gateway?.mode !== "local") {
nextConfig = {
...nextConfig,
gateway: {
...nextConfig.gateway,
mode: "local",
},
};
didSetGatewayMode = true;
}
let workspaceDir =
nextConfig.agents?.defaults?.workspace ??
baseConfig.agents?.defaults?.workspace ??
@@ -512,6 +523,11 @@ export async function runConfigureWizard(
}
if (!ranSection) {
if (didSetGatewayMode) {
await persistConfig();
outro("Gateway mode set to local.");
return;
}
outro("No changes selected.");
return;
}