fix(athena): include MODE=all agents in uiSelectedModel passthrough

The general-agents.ts isPrimaryAgent check only considered mode=primary,
causing Athena (now mode=all) to lose uiSelectedModel resolution.
Also adds metadata tests for non-interactive triggers.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
ismeth
2026-03-02 22:28:13 +01:00
committed by YeonGyu-Kim
parent 6fb6d1256c
commit 61ccd7f9a7
2 changed files with 31 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ export function collectPendingBuiltinAgents(input: {
}
}
const isPrimaryAgent = isFactory(source) && source.mode === "primary"
const isPrimaryAgent = isFactory(source) && (source.mode === "primary" || source.mode === "all")
let resolution = applyModelResolution({
uiSelectedModel: (isPrimaryAgent && override?.model === undefined) ? uiSelectedModel : undefined,