{"record":{"id":"86fbdd6904d06ac2","repo":"paperclipai/paperclip","slug":"configured-opencode-model-is-unavailable-on-the-re","errorCode":null,"errorMessage":"Configured OpenCode model is unavailable on the remote execution target: ${model}. Available models: ${sample}${models.length > 12 ? \", ...\" : \"\"}","messagePattern":"Configured OpenCode model is unavailable on the remote execution target: (.+?)\\. Available models: (.+?)(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/adapters/opencode-local/src/server/execute.ts","lineNumber":161,"sourceCode":"    return;\n  }\n\n  if ((probe.exitCode ?? 1) !== 0) {\n    const detail = firstNonEmptyLine(probe.stderr) || firstNonEmptyLine(probe.stdout);\n    console.warn(\n      `[opencode-local] Remote \\`opencode models\\` could not run for \"${model}\"${\n        detail ? ` (${detail})` : \"\"\n      }; proceeding with the configured model.`,\n    );\n    return;\n  }\n\n  const models = parseOpenCodeModelsOutput(probe.stdout);\n  if (models.length === 0) {\n    console.warn(\n      `[opencode-local] Remote \\`opencode models\\` returned no models; proceeding with the configured model \"${model}\".`,\n    );\n    return;\n  }\n\n  if (!models.some((entry) => entry.id === model)) {\n    const sample = models.slice(0, 12).map((entry) => entry.id).join(\", \");\n    throw new Error(\n      `Configured OpenCode model is unavailable on the remote execution target: ${model}. Available models: ${sample}${models.length > 12 ? \", ...\" : \"\"}`,\n    );\n  }\n}\n\nasync function ensureOpenCodeSkillsInjected(\n  onLog: AdapterExecutionContext[\"onLog\"],\n  skillsEntries: Array<{ key: string; runtimeName: string; source: string }>,\n  desiredSkillNames?: string[],\n  skillsHome = resolveOpenCodeSkillsHome({}),\n) {\n  await fs.mkdir(skillsHome, { recursive: true });\n  const desiredSet = new Set(desiredSkillNames ?? skillsEntries.map((entry) => entry.key));","sourceCodeStart":143,"sourceCodeEnd":179,"githubUrl":"https://github.com/paperclipai/paperclip/blob/3f1d897a7c018d76563a21c6e39c3c9b03933622/packages/adapters/opencode-local/src/server/execute.ts#L143-L179","documentation":"Error \"Configured OpenCode model is unavailable on the remote execution target: ${model}. Available models: ${sample}${models.length > 12 ? \", ...\" : \"\"}\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/adapters/opencode-local/src/server/execute.ts:159 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Choose one of the listed available models for adapterConfig.model.","Install or enable the configured model on the remote execution target."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3f1d897a7c018d76563a21c6e39c3c9b03933622","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}