From 1236ab8007439e3dfb665fdf66fb4b6181f17a64 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 22 Dec 2025 01:44:54 +0100 Subject: [PATCH] Add default agentDir to loadCustomModels for consistency --- packages/coding-agent/src/core/model-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/coding-agent/src/core/model-config.ts b/packages/coding-agent/src/core/model-config.ts index 8208bab3..d9b82260 100644 --- a/packages/coding-agent/src/core/model-config.ts +++ b/packages/coding-agent/src/core/model-config.ts @@ -98,7 +98,7 @@ export function resolveApiKey(keyConfig: string): string | undefined { * Load custom models from models.json in agent config dir * Returns { models, error } - either models array or error message */ -function loadCustomModels(agentDir: string): { models: Model[]; error: string | null } { +function loadCustomModels(agentDir: string = getAgentDir()): { models: Model[]; error: string | null } { const configPath = join(agentDir, "models.json"); if (!existsSync(configPath)) { return { models: [], error: null };