Skip to content

Fix the ./server issue for opencode v1 - #111

Merged
capy-ai[bot] merged 2 commits into
mainfrom
fix/v1-server-export
Oct 11, 2026
Merged

capy-ai[bot] merged 2 commits into
mainfrom
fix/v1-server-export

Conversation

@ishaanxgupta

@ishaanxgupta ishaanxgupta commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Recent OpenCode V1 resolves exports["./server"] and calls server(). That entry only had OpenCode 2's id + setup(), so V1 failed with must default export an object with server() instead of loading dist/index.js.

./server now keeps setup() for OpenCode 2 and adds server() that delegates to the existing V1 plugin. The root export stays a function so older V1 releases that still load main keep working. tui is not on this export, which V1 rejects when combined with server().

Version is already 2.0.17 (npm has 2.0.16). Merging to main is the publish: .github/workflows/release.yml runs on package.json changes and publishes with provenance when the version is new. No tag step. Typecheck, tests, and the release build pass locally.

@ishaanxgupta ishaanxgupta changed the title Fix the plugin failing to load in OpenCode V1 Fix the ./server issue for opencode v1 Oct 10, 2026
@capy-ai
capy-ai Bot merged commit 762137d into main Oct 11, 2026
4 checks passed
@capy-ai
capy-ai Bot deleted the fix/v1-server-export branch October 11, 2026 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants