Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Windows Desktop 2.0.23: socket connection closed unexpectedly during Console authentication

未关闭
#53,317 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 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

环境准备

从这里开始

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

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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