Windows Desktop 2.0.23: socket connection closed unexpectedly during Console authentication
维护者通常 1 天内回复
@Hona 已经在做这个了。
开始于 2026年10月5日。
评估
这个 Issue 还没有评估数据。
描述
Description
OpenCode Desktop 2.0.23 on Windows cannot complete the Console/Device authentication flow.
When trying to connect OpenCode Go / log in with a different account, the authentication flow waits for authorization and then fails with:
Error: Could not reach POST https://opencode.ai/console/auth/device/token. This failed before the server returned an HTTP response.
The OpenCode Desktop log also shows:
failed to load OpenCode provider config
Transport error (GET https://opencode.ai/console/api/v2/config)
cause="TypeError: The socket connection was closed unexpectedly."
Environment
- OS: Windows
- OpenCode Desktop: 2.0.23
- Installed standalone CLI: 1.18.34
- OpenCode Go provider
- Network connection is working normally
- No proxy environment variables are configured
Network tests
curl -I https://opencode.ai
returns:
HTTP/1.1 200 OK
Also:
curl -v https://opencode.ai/console/auth/device/token
successfully establishes the TLS connection and receives:
HTTP/1.1 404 Not Found
The 404 is expected because curl sends GET, while the authentication endpoint uses POST. The important point is that the connection to opencode.ai itself succeeds.
Additional information
The problem occurs inside OpenCode Desktop's HTTP client. The socket is closed unexpectedly when Desktop tries to access:
https://opencode.ai/console/api/v2/config
and the device authentication endpoint also fails before receiving an HTTP response.
Please investigate whether this is a Windows/Desktop 2.0.23 networking or HTTP client issue, particularly with the Console authentication/config endpoints.
I can provide the exported OpenCode logs if needed.
- 主要语言
- TypeScript
- 星标
- 212k
- 派生
- 28.1k
- 平均合并
- 9 小时 17 分钟
- 30 天内合并 PR
- 396
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
anomalyco/opencode 的其他 Issue
-
Windows: global-project session path depends on server process drive, hides API-created sessions from desktop picker可能已有人在做 @1624318455 于 14 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
[FEATURE]: Test that PermissionV2 declines pending requests when its scope closes可能已有人在做 @saeedahmed96 于 12 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
EffectFlock heartbeat never refreshes, so locks held over 60 s can be broken可能已有人在做 @iceteaSA 于 15 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
anomalyco/opencode#51159 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
查看 anomalyco/opencode 的全部 Issue
相似的 Issue
-
[Bug]: Server git tests sign fixture commits with the developer's key when run from the repo root未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
melgarafael/DeskcommCRM#2657 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
MystenLabs/MemWal#1163 · 2 条评论 ·
维护者通常 1 天内回复
-
Mondriaan
难度 1/5 1 小时以内 新手友好度 88/100
knaw-huc/textannoviz#709 ·
维护者通常 1 天内回复
-
billion-context-pi
难度 2/5 1-3 小时 新手友好度 62/100
ranxianglei/billion-context#2521 · 3 条评论 ·
维护者通常 1 天内回复