Skip to content

[Discussion] OpenCode V2 Plugin Support #31

Description

@CasualDeveloper

Describe the enhancement you want to request

Support Cursor models in OpenCode V2, including private models, exact variants, images, and OAuth login. OpenCode should manage history, permissions, tools, and compaction.

Use beta for the V2-only package and keep main as the existing release line. Publish reviewed 3.0.0-beta.N versions under the npm beta tag. The channel name identifies V2 compatibility, not a lower quality bar.

Current status

Hey @makeittech, #33 has merged and #35 is ready for review. I closed #34 as superseded because its changes are included in #35.

The amended implementation is 4932ff9 on feat/opencode-v2-host-owned-cursor. It targets released @opencode/* 2.0.6 and the provider/model API. OpenCode owns history, permissions, tools, and compaction while the adapter preserves the live Cursor catalog and exact variants.

This update keeps incomplete catalog discovery retryable instead of caching a partial inventory as complete. It also derives checkpoint occupancy without double-counting generated output and keeps terminal Run counters in provider metadata. Cursor receives the SDK's MCP tool-family allowlist, native shell streams complete, unsupported exec requests receive explicit replies, and native StrReplace stays declined.

npm run verify passes locally with 95 tests and the pinned-host acceptance gate. Bounded live host-tool checks passed with Composer and Grok; one earlier tool-less turn was not reproduced, so its exact cause is still unverified. CI status for this head is on #35. The acceptance report records remaining live checks for instruction priority with images, opaque reasoning, and sustained compaction.

Please keep this issue open through publication and release checks. Code review continues in #35.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions