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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user