Plugin fails to load on OpenCode v2.0.27 - incompatible plugin API
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- node.js, typescript
調査の方向性
Start at the plugin's entry module, where the named export PTYPlugin is declared, and compare it with the default-export shape OpenCode 2.x expects (an id plus an effect or setup function). The error text is in the issue, and the linked oh-my-openagent and opencode-pty#67 threads describe the same loader. Done means the plugin loads on OpenCode v2.0.27 without the error. The issue does not choose between adapting the API and adding a shim, so ask the maintainer first.
索引モデルが issue の本文から書いたものです。
説明
Bug Description
[email protected] fails to load as a plugin on OpenCode v2.0.27 with the following error:
Plugin must export a default definition with an id and an effect or setup function.
Environment
- OpenCode version: v2.0.27
- opencode-pty version: 0.4.0 (latest on npm)
- Platform: Windows 11
- Node: v22.18.0
Steps to Reproduce
- Install opencode-pty:
opencode plugin add opencode-pty@latest - Start OpenCode v2.0.27
- Plugin fails to load with the error above
Root Cause
OpenCode 2.0 introduced a new Effect-based plugin API that requires plugins to export a default definition with id and effect or setup function keys. opencode-pty currently uses the old export format (named exports like export { PTYPlugin }).
Expected Behavior
opencode-pty should either:
- Adapt to the new Effect-based plugin API, OR
- Provide a compatibility shim for OpenCode 2.x
Additional Context
- Similar issues reported for oh-my-openagent: https://github.com/code-yeongyu/oh-my-openagent/issues/10089
- Related v2 plugin installation bug: https://github.com/shekohex/opencode-pty/issues/67
- 主要言語
- TypeScript
- スター
- 597
- フォーク
- 65
- 平均マージ
- 1日 20時間
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
shekohex/opencode-pty のほかの issue
-
[Bug]: exit notification delivery failures are silently swallowed — agent never wakes, no diagnosticオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
shekohex/opencode-pty#54 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
shekohex/opencode-pty#48 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
shekohex/opencode-pty#82 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
shekohex/opencode-pty#81 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 46/100
shekohex/opencode-pty#80 ·
メンテナーはふだん 1 日以内に返信
shekohex/opencode-pty の issue をすべて見る
似ている issue
-
afk-ok area:data-quality importer size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
enorm-labs/event-junkie#3301 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
one-zero-eight/apply-bot#39 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bigbluebutton/bbb-ui-components-react#108 ·
メンテナーはふだん 2 日以内に返信
-
area: app type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ExpidetGames/code-reviewer#308 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信