Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Plugin fails to load on OpenCode v2.0.27 - incompatible plugin API

オープン
#83 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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

  1. Install opencode-pty: opencode plugin add opencode-pty@latest
  2. Start OpenCode v2.0.27
  3. 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

主要言語
TypeScript
スター
597
フォーク
65
平均マージ
1日 20時間
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

shekohex/opencode-pty のほかの issue

shekohex/opencode-pty の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。