From 7bcf9940645b4d0a58c6a600e2731b194c9deb09 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 6 Mar 2026 15:48:31 +0000 Subject: [PATCH] Fix server: remove DEFAULT_OPENCODE_LOCAL_MODEL from agents route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same issue as the UI fix — merge conflict resolution kept HEAD's reference to the removed constant. OpenCode uses strict model selection with no default. Co-Authored-By: Claude Opus 4.6 --- server/src/routes/agents.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/src/routes/agents.ts b/server/src/routes/agents.ts index e91f00f9..2358a7b4 100644 --- a/server/src/routes/agents.ts +++ b/server/src/routes/agents.ts @@ -37,7 +37,6 @@ import { DEFAULT_CODEX_LOCAL_MODEL, } from "@paperclipai/adapter-codex-local"; import { DEFAULT_CURSOR_LOCAL_MODEL } from "@paperclipai/adapter-cursor-local"; -import { DEFAULT_OPENCODE_LOCAL_MODEL } from "@paperclipai/adapter-opencode-local"; import { ensureOpenCodeModelConfiguredAndAvailable } from "@paperclipai/adapter-opencode-local/server"; export function agentRoutes(db: Db) { @@ -196,9 +195,7 @@ export function agentRoutes(db: Db) { } return next; } - if (adapterType === "opencode_local" && !asNonEmptyString(next.model)) { - next.model = DEFAULT_OPENCODE_LOCAL_MODEL; - } + // OpenCode requires explicit model selection — no default if (adapterType === "cursor" && !asNonEmptyString(next.model)) { next.model = DEFAULT_CURSOR_LOCAL_MODEL; }