fix(delegate-task): trust user-configured category models without fuzzy validation (fixes #2740)
This commit is contained in:
@@ -102,6 +102,16 @@ describe("resolveModelForDelegateTask", () => {
|
||||
|
||||
expect(result).toEqual({ model: "anthropic/claude-sonnet-4-6" })
|
||||
})
|
||||
|
||||
test("#then trusts user-configured category model without fuzzy validation", () => {
|
||||
const result = resolveModelForDelegateTask({
|
||||
categoryDefaultModel: "new-api-openai/gpt-5.4-high",
|
||||
isUserConfiguredCategoryModel: true,
|
||||
availableModels: new Set(["openai/gpt-5.4"]),
|
||||
})
|
||||
|
||||
expect(result).toEqual({ model: "new-api-openai/gpt-5.4-high" })
|
||||
})
|
||||
})
|
||||
|
||||
describe("#when user fallback models include variant syntax", () => {
|
||||
|
||||
Reference in New Issue
Block a user