TUI hangs on a blank screen when a worker RPC request fails (e.g. --port already in use)

オープン 初心者向け
#1,616 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

@devin-ai-integration がすでに取り組んでいます。

2026年10月28日 から。

  • #1617 @devin-ai-integration による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
cli

調査の方向性

まず packages/opencode/src/util/rpc.ts を読み、Rpc.listen と Rpc.client に注目します。次に、issue に記載された client.call("server", network) リクエストを追跡します。--port に使用中のポートを指定してハングを再現します。worker リクエストが失敗してエラーを返し、保留中の呼び出しが reject され、TUI に「Failed to start server」と表示されて終了すれば完了です。

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

説明

What happens

The TUI waits on RPC calls to its server worker before drawing (for example client.call("server", network) to start the --port listener). When the worker handler throws, Rpc.listen in packages/opencode/src/util/rpc.ts never posts a reply, and Rpc.client has no reject path, so the call never settles. Example: altimate-code --port 4096 with the port already taken leaves a blank terminal forever with no error.

Expected

A failed request is answered with the error message, the pending call rejects, and the TUI shows the existing "Failed to start server" error and exits.

Upstream

Fixed upstream in anomalyco/opencode#54936.

Written by Devin

主要言語
TypeScript
スター
818
フォーク
126
平均マージ
1日 23時間
マージ済み PR(30日)
71

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

AltimateAI/altimate-code のほかの issue

AltimateAI/altimate-code の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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