Merge remote-tracking branch 'upstream/dev' into fix/log-agent-skip-on-missing-model
This commit is contained in:
@@ -39,7 +39,7 @@ export function maybeCreateAtlasConfig(input: {
|
||||
const orchestratorOverride = agentOverrides["atlas"]
|
||||
const atlasRequirement = AGENT_MODEL_REQUIREMENTS["atlas"]
|
||||
|
||||
const atlasResolution = applyModelResolution({
|
||||
let atlasResolution = applyModelResolution({
|
||||
uiSelectedModel: orchestratorOverride?.model !== undefined ? undefined : uiSelectedModel,
|
||||
userModel: orchestratorOverride?.model,
|
||||
requirement: atlasRequirement,
|
||||
@@ -47,6 +47,12 @@ export function maybeCreateAtlasConfig(input: {
|
||||
systemDefaultModel,
|
||||
})
|
||||
|
||||
if (!atlasResolution && orchestratorOverride?.model) {
|
||||
// User explicitly configured a model but resolution failed (e.g., cold cache, no system default).
|
||||
// Honor the user's choice directly instead of dropping Atlas entirely.
|
||||
atlasResolution = { model: orchestratorOverride.model, provenance: "override" as const }
|
||||
}
|
||||
|
||||
if (!atlasResolution) {
|
||||
log("[agent-registration] Agent skipped: model resolution returned no result", {
|
||||
agent: "atlas",
|
||||
|
||||
Reference in New Issue
Block a user