From 2365e5ede991fbccfbaae8434bdc7537acac98d3 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 9 Nov 2026 09:24:51 +1100 Subject: [PATCH] fix(archied): model catalog load no longer reverts control-plane execution budgets to the file's --- internal/app/archied/bootstrap.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/app/archied/bootstrap.go b/internal/app/archied/bootstrap.go index f28e59338..c6b260b21 100644 --- a/internal/app/archied/bootstrap.go +++ b/internal/app/archied/bootstrap.go @@ -813,7 +813,12 @@ func (b *boot) loadCatalog(ctx context.Context) { return } models := modelcatalog.Apply(&b.cfg, snapshot) - b.cfgHolder.Set(b.cfg.Clone()) + // Layer the catalog over the live config, not b.cfg: b.cfg predates the + // execution-settings watch, so publishing it would put the file's budgets + // back over the control plane's. + live := b.cfgHolder.Get().Clone() + modelcatalog.Apply(&live, snapshot) + b.cfgHolder.Set(live) b.catalog.Set(snapshot) b.log.InfoContext(ctx, "model catalog loaded", "providers", len(snapshot.Providers), "models", len(models)) }