fix(cli-run): move resolveRunModel inside try block

This commit is contained in:
YeonGyu-Kim
2026-03-17 15:49:26 +09:00
parent 2c7ded2433
commit d493f9ec3a
2 changed files with 44 additions and 3 deletions
+2 -1
View File
@@ -47,10 +47,11 @@ export async function run(options: RunOptions): Promise<number> {
const pluginConfig = loadPluginConfig(directory, { command: "run" })
const resolvedAgent = resolveRunAgent(options, pluginConfig)
const resolvedModel = resolveRunModel(options.model)
const abortController = new AbortController()
try {
const resolvedModel = resolveRunModel(options.model)
const { client, cleanup: serverCleanup } = await createServerConnection({
port: options.port,
attach: options.attach,