From ae6087950777fc91c57de090d016256e5bf5e44f Mon Sep 17 00:00:00 2001
From: Aaron
Date: Fri, 6 Mar 2026 15:30:13 +0000
Subject: [PATCH] Fix TS errors: remove DEFAULT_OPENCODE_LOCAL_MODEL references
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
PR #62 uses strict model selection with no default — the merge
conflict resolution incorrectly kept HEAD's references to this
removed constant. Also remove dead opencode_local branch in
OnboardingWizard (already handled by prior condition).
Co-Authored-By: Claude Opus 4.6
---
ui/src/components/AgentConfigForm.tsx | 7 ++-----
ui/src/components/OnboardingWizard.tsx | 9 ---------
2 files changed, 2 insertions(+), 14 deletions(-)
diff --git a/ui/src/components/AgentConfigForm.tsx b/ui/src/components/AgentConfigForm.tsx
index 861c69f6..2ea08954 100644
--- a/ui/src/components/AgentConfigForm.tsx
+++ b/ui/src/components/AgentConfigForm.tsx
@@ -16,7 +16,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 {
Popover,
PopoverContent,
@@ -491,7 +490,7 @@ export function AgentConfigForm(props: AgentConfigFormProps) {
} else if (t === "cursor") {
nextValues.model = DEFAULT_CURSOR_LOCAL_MODEL;
} else if (t === "opencode_local") {
- nextValues.model = DEFAULT_OPENCODE_LOCAL_MODEL;
+ nextValues.model = "";
}
set!(nextValues);
} else {
@@ -506,9 +505,7 @@ export function AgentConfigForm(props: AgentConfigFormProps) {
? DEFAULT_CODEX_LOCAL_MODEL
: t === "cursor"
? DEFAULT_CURSOR_LOCAL_MODEL
- : t === "opencode_local"
- ? DEFAULT_OPENCODE_LOCAL_MODEL
- : "",
+ : "",
effort: "",
modelReasoningEffort: "",
variant: "",
diff --git a/ui/src/components/OnboardingWizard.tsx b/ui/src/components/OnboardingWizard.tsx
index 9d0e9638..b4ab034e 100644
--- a/ui/src/components/OnboardingWizard.tsx
+++ b/ui/src/components/OnboardingWizard.tsx
@@ -25,7 +25,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 { AsciiArtAnimation } from "./AsciiArtAnimation";
import { ChoosePathButton } from "./PathInstructionsModal";
import { HintIcon } from "./agent-config-primitives";
@@ -271,8 +270,6 @@ export function OnboardingWizard() {
? model || DEFAULT_CODEX_LOCAL_MODEL
: adapterType === "cursor"
? model || DEFAULT_CURSOR_LOCAL_MODEL
- : adapterType === "opencode_local"
- ? model || DEFAULT_OPENCODE_LOCAL_MODEL
: model,
command,
args,
@@ -944,12 +941,6 @@ export function OnboardingWizard() {
: "opencode auth login"}
.
- ) : adapterType === "opencode_local" ? (
-
- If providers are unavailable, run{" "}
- opencode models and{" "}
- opencode auth login.
-
) : (
If login is required, run{" "}