fix: allow variant override even with agent model config (#3163)

model-selection.ts now separates model selection from variant/reasoning
tier, so agent model overrides don't lock the variant.

34 tests pass, 5009 total, tsc clean.

Closes #3163
This commit is contained in:
YeonGyu-Kim
2026-04-07 15:24:19 +09:00
parent be562905d6
commit ee8410ce03
3 changed files with 103 additions and 1 deletions
@@ -197,7 +197,7 @@ describe("resolveCategoryExecution", () => {
if (!result.actualModel || !result.categoryModel) {
throw new Error("Expected resolved model and category model")
}
expect(result.actualModel).toBe("openai/gpt-5.4 high")
expect(result.actualModel).toBe("openai/gpt-5.4")
expect(result.categoryModel).toEqual({
providerID: "openai",
modelID: "gpt-5.4",