fix(archied): model catalog load no longer reverts control-plane execution budgets to the file's
deploy / plan (push) Successful in 7s
deploy / archied-image (push) Canceled after 0s
deploy / agent-image (push) Canceled after 0s
deploy / dist-zip (push) Canceled after 0s
deploy / gate (push) Canceled after 1m46s

This commit is contained in:
sam committed 2026-11-09 09:24:51 +11:00
1 parent c9248a251a
commit 2365e5ede9
1 file changed
+6 -1
+6 -1
View File
@@ -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))
}