cli: infinite hang on first user message (no response, no error)

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
cli

調査の方向性

Reproduce with opencode 2.3.2 on Windows using the reported opencode CLI flow, then isolate whether the hang is in initial message handling, the FreeLLMAPI proxy at http://127.0.0.1:31415/v1, or the installed Figma plugin. The payload names no source files, so start by tracing the first user-message path in the CLI and capturing logs while the spinner is stuck. Done means a first "hi" message either completes normally or fails with a visible error, rather than hanging indefinitely.

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

説明

area/providers pending close platform/windows triaging type/bug version/v2

Summary

CLI hangs indefinitely on simple chat input ("hi") with no response, no error, just infinite loading spinner. Agent responds in current session but initial messages never complete.

Environment

Reproduction

  1. Start opencode in CLI (cmd.exe or PowerShell)
  2. Type "hi" and press Enter
  3. Observe infinite loading spinner - no response, no error, no timeout
  4. Ctrl+C to exit, restart opencode
  5. Sometimes works on subsequent tries, sometimes not

Expected Behavior

Agent should respond to "hi" within a few seconds with a normal greeting.

Actual Behavior

Infinite loading spinner. No output at all. Process appears hung. No error messages, no logs visible in terminal.

Additional Context

  • Issue occurs on fresh session start with first user message
  • Current session (this one) responds normally - the bug is in the initial message handling
  • Using FreeLLMAPI provider (local proxy at http://127.0.0.1:31415/v1)
  • Figma plugin installed from git repo
  • No relevant logs captured - the process just spins
  • Workaround: Sometimes restarting 2-3 times works, but unreliable
  • Frequency: ~80% of fresh session starts
主要言語
TypeScript
スター
227k
フォーク
30.7k
平均マージ
3時間 57分
マージ済み PR(30日)
484

環境構築

はじめの一歩

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

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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