Expose a backend-only driver for external OpenCode clients
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- api, backend, testing-qa
調査の方向性
この issue では OpenCodeDriver.use() と、サーバーのみを手動で起動する経路が挙げられているため、まずこれらのライフサイクルエントリポイントを追跡します。現在 TUI に対して公開されているものを比較し、サービスとクライアントの接続詳細、保持されるコントローラー、settlement、スコープ付きのクリーンアップ、要求されている再起動およびネットワーク制御を基準に完了条件を定義します。
索引モデルが issue の本文から書いたものです。
説明
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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode-drive のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
anomalyco/opencode-drive#102 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
anomalyco/opencode-drive#104 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
anomalyco/opencode-drive#103 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
anomalyco/opencode-drive#97 ·
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
anomalyco/opencode-drive#86 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode-drive の issue をすべて見る
似ている issue
-
Mend: dependency security vulnerability untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
opensearch-project/security-dashboards-plugin#2545 ·
メンテナーはふだん 1 日以内に返信
-
Add: Dream TR SDオープンcheck:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
doctor integrity sample scans soft-deleted pages on Postgres (batch path has no deleted_at filter)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
SocialGouv/egapro#4672 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
area:agents area:tui bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
anthropics/claude-code#98358 ·
メンテナーはふだん 1 日以内に返信