feat(sisyphus-task): inherit parent model for categories and show fallback warning

- Change model priority: user override > parent model > category default
- Add ModelFallbackInfo to track model resolution type
- Show warning toast when category uses inherited or default model
- Add tests for model fallback info in task toast
This commit is contained in:
Nguyen Khac Trung Kien
2026-01-13 08:58:47 +07:00
parent dbe51e4253
commit 16c38d7230
8 changed files with 130 additions and 9 deletions
+3 -2
View File
@@ -84,13 +84,14 @@ export const SISYPHUS_JUNIOR_DEFAULTS = {
} as const
export function createSisyphusJuniorAgentWithOverrides(
override: AgentOverrideConfig | undefined
override: AgentOverrideConfig | undefined,
systemDefaultModel?: string
): AgentConfig {
if (override?.disable) {
override = undefined
}
const model = override?.model ?? SISYPHUS_JUNIOR_DEFAULTS.model
const model = override?.model ?? systemDefaultModel ?? SISYPHUS_JUNIOR_DEFAULTS.model
const temperature = override?.temperature ?? SISYPHUS_JUNIOR_DEFAULTS.temperature
const promptAppend = override?.prompt_append