fix: persist local gateway mode in configure wizard

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

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;
}