refactor(shared): add normalizeFallbackModels utility function

Add shared utility to normalize fallback_models config values.

Handles both single string and array inputs consistently.

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

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
um1ng
2026-02-05 23:15:31 +09:00
committed by YeonGyu-Kim
parent bf02d57ffb
commit 5822d8b8f5
3 changed files with 13 additions and 0 deletions
+1
View File
@@ -100,6 +100,7 @@ export type AgentName = BuiltinAgentName
export type AgentOverrideConfig = Partial<AgentConfig> & {
prompt_append?: string
variant?: string
fallback_models?: string | string[]
}
export type AgentOverrides = Partial<Record<OverridableAgentName, AgentOverrideConfig>>