Fix TS errors: remove DEFAULT_OPENCODE_LOCAL_MODEL references
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 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,6 @@ import {
|
|||||||
DEFAULT_CODEX_LOCAL_MODEL,
|
DEFAULT_CODEX_LOCAL_MODEL,
|
||||||
} from "@paperclipai/adapter-codex-local";
|
} from "@paperclipai/adapter-codex-local";
|
||||||
import { DEFAULT_CURSOR_LOCAL_MODEL } from "@paperclipai/adapter-cursor-local";
|
import { DEFAULT_CURSOR_LOCAL_MODEL } from "@paperclipai/adapter-cursor-local";
|
||||||
import { DEFAULT_OPENCODE_LOCAL_MODEL } from "@paperclipai/adapter-opencode-local";
|
|
||||||
import {
|
import {
|
||||||
Popover,
|
Popover,
|
||||||
PopoverContent,
|
PopoverContent,
|
||||||
@@ -491,7 +490,7 @@ export function AgentConfigForm(props: AgentConfigFormProps) {
|
|||||||
} else if (t === "cursor") {
|
} else if (t === "cursor") {
|
||||||
nextValues.model = DEFAULT_CURSOR_LOCAL_MODEL;
|
nextValues.model = DEFAULT_CURSOR_LOCAL_MODEL;
|
||||||
} else if (t === "opencode_local") {
|
} else if (t === "opencode_local") {
|
||||||
nextValues.model = DEFAULT_OPENCODE_LOCAL_MODEL;
|
nextValues.model = "";
|
||||||
}
|
}
|
||||||
set!(nextValues);
|
set!(nextValues);
|
||||||
} else {
|
} else {
|
||||||
@@ -506,9 +505,7 @@ export function AgentConfigForm(props: AgentConfigFormProps) {
|
|||||||
? DEFAULT_CODEX_LOCAL_MODEL
|
? DEFAULT_CODEX_LOCAL_MODEL
|
||||||
: t === "cursor"
|
: t === "cursor"
|
||||||
? DEFAULT_CURSOR_LOCAL_MODEL
|
? DEFAULT_CURSOR_LOCAL_MODEL
|
||||||
: t === "opencode_local"
|
: "",
|
||||||
? DEFAULT_OPENCODE_LOCAL_MODEL
|
|
||||||
: "",
|
|
||||||
effort: "",
|
effort: "",
|
||||||
modelReasoningEffort: "",
|
modelReasoningEffort: "",
|
||||||
variant: "",
|
variant: "",
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import {
|
|||||||
DEFAULT_CODEX_LOCAL_MODEL
|
DEFAULT_CODEX_LOCAL_MODEL
|
||||||
} from "@paperclipai/adapter-codex-local";
|
} from "@paperclipai/adapter-codex-local";
|
||||||
import { DEFAULT_CURSOR_LOCAL_MODEL } from "@paperclipai/adapter-cursor-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 { AsciiArtAnimation } from "./AsciiArtAnimation";
|
||||||
import { ChoosePathButton } from "./PathInstructionsModal";
|
import { ChoosePathButton } from "./PathInstructionsModal";
|
||||||
import { HintIcon } from "./agent-config-primitives";
|
import { HintIcon } from "./agent-config-primitives";
|
||||||
@@ -271,8 +270,6 @@ export function OnboardingWizard() {
|
|||||||
? model || DEFAULT_CODEX_LOCAL_MODEL
|
? model || DEFAULT_CODEX_LOCAL_MODEL
|
||||||
: adapterType === "cursor"
|
: adapterType === "cursor"
|
||||||
? model || DEFAULT_CURSOR_LOCAL_MODEL
|
? model || DEFAULT_CURSOR_LOCAL_MODEL
|
||||||
: adapterType === "opencode_local"
|
|
||||||
? model || DEFAULT_OPENCODE_LOCAL_MODEL
|
|
||||||
: model,
|
: model,
|
||||||
command,
|
command,
|
||||||
args,
|
args,
|
||||||
@@ -944,12 +941,6 @@ export function OnboardingWizard() {
|
|||||||
: "opencode auth login"}
|
: "opencode auth login"}
|
||||||
</span>.
|
</span>.
|
||||||
</p>
|
</p>
|
||||||
) : adapterType === "opencode_local" ? (
|
|
||||||
<p className="text-muted-foreground">
|
|
||||||
If providers are unavailable, run{" "}
|
|
||||||
<span className="font-mono">opencode models</span> and{" "}
|
|
||||||
<span className="font-mono">opencode auth login</span>.
|
|
||||||
</p>
|
|
||||||
) : (
|
) : (
|
||||||
<p className="text-muted-foreground">
|
<p className="text-muted-foreground">
|
||||||
If login is required, run{" "}
|
If login is required, run{" "}
|
||||||
|
|||||||
Reference in New Issue
Block a user