From 28df49fd60e5eccc143418c29d4e26ea767ea544 Mon Sep 17 00:00:00 2001 From: LukeParkerDev <10430890+Hona@users.noreply.github.com> Date: Thu, 23 Apr 2026 14:38:50 +1000 Subject: [PATCH] reconsile config --- packages/app/src/context/global-sync/bootstrap.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app/src/context/global-sync/bootstrap.ts b/packages/app/src/context/global-sync/bootstrap.ts index be789a5e53..087202285a 100644 --- a/packages/app/src/context/global-sync/bootstrap.ts +++ b/packages/app/src/context/global-sync/bootstrap.ts @@ -78,7 +78,7 @@ export async function bootstrapGlobal(input: { () => retry(() => input.globalSDK.global.config.get().then((x) => { - input.setGlobalStore("config", x.data!) + input.setGlobalStore("config", reconcile(x.data!, { merge: false })) }), ), ] @@ -245,7 +245,7 @@ export async function bootstrapDirectory(input: { input.setStore("provider", input.global.provider) } if (Object.keys(input.store.config).length === 0 && Object.keys(input.global.config).length > 0) { - input.setStore("config", input.global.config) + input.setStore("config", reconcile(input.global.config, { merge: false })) } if (loading || input.store.provider.all.length === 0) { input.setStore("provider_ready", false) @@ -265,7 +265,7 @@ export async function bootstrapDirectory(input: { input.queryClient.ensureQueryData( loadAgentsQuery(input.directory, input.sdk, (x) => input.setStore("agent", normalizeAgentList(x.data))), ), - () => retry(() => input.sdk.config.get().then((x) => input.setStore("config", x.data!))), + () => retry(() => input.sdk.config.get().then((x) => input.setStore("config", reconcile(x.data!, { merge: false })))), () => retry(() => input.sdk.session.status().then((x) => input.setStore("session_status", x.data!))), !seededProject && (() => retry(() => input.sdk.project.current()).then((x) => input.setStore("project", x.data!.id))),