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

Expose a backend-only driver for external OpenCode clients

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

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript

調査の方向性

この issue では OpenCodeDriver.use() と、サーバーのみを手動で起動する経路が挙げられているため、まずこれらのライフサイクルエントリポイントを追跡します。現在 TUI に対して公開されているものを比較し、サービスとクライアントの接続詳細、保持されるコントローラー、settlement、スコープ付きのクリーンアップ、要求されている再起動およびネットワーク制御を基準に完了条件を定義します。

索引モデルが issue の本文から書いたものです。

説明

enhancement

I'm looking at using opencode-drive for deterministic desktop E2E tests.

My current setup starts:

  • An isolated real OpenCode service
  • A small scripted OpenAI-compatible LLM
  • A desktop client
  • Playwright connected over CDP

Drive would be a much better replacement for the scripted LLM and service lifecycle. The native simulation transport, tool control, settlement checks, disconnects, and network fault injection would all be useful.

The main issue is that the public driver API is currently coupled to OpenCode's TUI. OpenCodeDriver.use() launches a primary TUI, while a manual script can launch only the server but doesn't expose connection details intended for launching another frontend process.

A backend-only API for this use case would be great. Something along these lines:

OpenCodeBackend.use(options, ({ opencode, llm, tools, service, artifacts }) =>
  Effect.gen(function* () {
    // Launch a desktop or web client against the service.
  }),
)

Alternatively, an option such as OpenCodeDriver.use({ tui: false }, ...) could work.

The important parts for me would be:

  • Prepare the isolated project, config, home, and service registration
  • Launch OpenCode with the simulation backend, without launching a TUI
  • Expose the generated SDK client
  • Expose enough connection information or environment variables for an external frontend
  • Keep the current LLM and tool controllers
  • Keep settlement and scoped cleanup
  • Ideally retain server restart and network controls

The only blocker is integrating its backend lifecycle without also taking ownership of the frontend.

I'm willing to open a PR adding this soon if the proposed direction makes sense.

主要言語
TypeScript
スター
32
フォーク
4
平均マージ
10分
マージ済み PR(30日)
13

環境構築

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

はじめの一歩

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

anomalyco/opencode-drive のほかの issue

anomalyco/opencode-drive の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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