Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Windows Desktop 2.0.23: socket connection closed unexpectedly during Console authentication

オープン
#53,317 コメント 2 件 リアクション 0 件 担当者 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
平均マージ
10時間 15分
マージ済み PR(30日)
389

環境構築

はじめの一歩

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

anomalyco/opencode のほかの issue

anomalyco/opencode の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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