Q167: the model in effect and what a default change reaches are shown

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-09 03:44:23 -04:00
1 parent e8722cd815
commit 26c3365896
10 files changed
+97 -19

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
import { agentModel } from "../../shared/agent-model";
import { TASK_APPROVAL_KINDS_SQL, TASK_SNAPSHOT_SQL } from "./task-approval";
import type { DatabaseSync } from "node:sqlite";
import { APPROVAL_STATE, RISK_LEVEL } from "../../shared/domain";
@@ -73,7 +74,7 @@ export function assertModelSelectable(providerKey: string, agentModelId: string
/** The model a run calls: the agent's own choice, or else its provider's default. */
export function effectiveModel(agentModelId: string | null, providerModel: string | null): string | null {
return agentModelId?.trim() || providerModel;
return agentModel(agentModelId, providerModel).model;
}
export function requireAgentProvider(db: DatabaseSync, orgId: string, agent: TaskExecutionAgentRow): TaskExecutionProviderRow {