#16178·warp

OpenCode v2: opencode-warp plugin incompatible with v2 plugin API

Author: trigger2k20Created Sep 27, 2026Updated Sep 27, 2026
Labelsbugtriagedrepro:highos:macarea:agentwarp:auto-triage-reviewagent:bug

Environment

  • macOS 27.0, Apple Silicon
  • OpenCode 2.0.18
  • Installed via Homebrew formula opencode-v2 (binary: opencode)
  • @warp-dot-dev/[email protected]

Problem

OpenCode v2 rejects the Warp plugin during startup with:

Plugin must export a default definition with an id and an effect or setup function.

Pinning @warp-dot-dev/[email protected], deleting the cached package, and allowing OpenCode to download it again does not resolve the issue.

Inspection of the freshly downloaded dist/index.js shows that the package exports the legacy plugin API:

javascript
export const WarpPlugin = async ({ client, directory }) => {
  // ...
};

dist/index.d.ts confirms:

typescript
import type { Plugin } from "@opencode-ai/plugin";
export declare const WarpPlugin: Plugin;

OpenCode v2 expects the new plugin definition with a default export containing an id and an effect or setup function. Therefore the current Warp plugin cannot be loaded by OpenCode 2.0.18.

Expected behavior

@warp-dot-dev/opencode-warp should support the OpenCode v2 plugin API, while retaining OpenCode v1 compatibility if required.

Additional information

The failure is reproducible after completely removing the cached Warp plugin and letting OpenCode fetch 0.1.5 again.

Related: #16014 tracks OpenCode v2 CLI-agent recognition, but does not appear to cover this plugin API incompatibility.