Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Windows Desktop 2.0.23: socket connection closed unexpectedly during Console authentication

Aperta
#53,317 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Hona ci sta già lavorando.

Dal 5/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
TypeScript
Stelle
213k
Fork
28.4k
Merge medio
7h 50m
PR unite (30g)
295

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di anomalyco/opencode

Tutte le issue di anomalyco/opencode

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.