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

未关闭
#65,245 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 分钟
30 天内合并 PR
484

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。