Skip to content

ECONNRESET: The socket connection was closed unexpectedly after upgrading from 1.9.5 to 2.2.0 #60657

Closed as duplicate

Description

@mosinnik

Description

After upgrading from 1.9.5 desktop opencode to 2.2.0 I got permanent errors in chat for all models
ECONNRESET: The socket connection was closed unexpectedly. For more information,…

I've checked next:

Talking with other LLMs I got that most probability is TLS HelloClient message that are filtered by DPI. But anyway 1.9.5 work well it would be good to revert back how opencode client work with TLS from 1.9.5

Plugins

No response

OpenCode version

2.2.0

Steps to reproduce

No response

Screenshot

No response

Operating System

windows 10

Terminal

No response

Activity

  1. opencodejr commented on Oct 30, 2026

    @opencodejr
    Contributor

    Thanks for the report and for the curl, Chrome and zapret comparison. It made this easy to place.

    I think this is a duplicate of #60399. Everything you describe matches what was found there. Some ISPs' traffic filtering (DPI) drops or resets the larger TLS handshake (ClientHello) that OpenCode 2.x's bundled runtime sends; Chrome sends a similar large one, which is why opencode.ai also fails in Chrome. Schannel curl sends a smaller handshake that gets through. That is also why zapret or a VPN fixes it, and why 1.9.5 still works for you. That issue has more measurements, discussion of a client-side fix and some temporary workarounds.

    Possible duplicates and related issues, ordered from most to least likely:

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different. Please add any further details, such as your ISP or region, to #60399.

  2. d1m40fficial commented on Oct 30, 2026

    @d1m40fficial
  3. opencodejr commented on Oct 31, 2026

    @opencodejr
    Contributor

    We haven't heard back, so I'm closing this as a duplicate of #60399. That issue covers the same problem: on some networks, filtering (DPI) drops the larger TLS handshake that OpenCode 2.x sends, so requests fail with ECONNRESET. curl still works, and a VPN or zapret fixes it. Please follow #60399 for updates and workarounds, and add details like your ISP or region there.

    If your problem turns out to be different, reply here explaining how and we can reopen this. Thanks again for the detailed report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions