Skip to content

Browser pane fails behind corporate proxy with ERR_TUNNEL_CONNECTION_FAILED on Windows Desktop 2.2.0 #59722

Closed as not planned

Description

@mblanquer

Description

Summary

The integrated browser pane in OpenCode Desktop fails to load public Internet HTTPS sites on a Windows network that requires a managed proxy / PAC configuration.

The same URLs are reachable from the same machine using system tools through the configured proxy/PAC, but the OpenCode browser pane fails with:

ERR_TUNNEL_CONNECTION_FAILED (-111)

This still reproduces after upgrading to OpenCode Desktop 2.2.0.

Environment

  • OS: Windows
  • OpenCode Desktop: 2.2.0
  • OpenCode service/CLI: 2.2.0
  • Network: network requiring managed proxy/PAC for Internet access
  • Direct Internet/DNS access is not available without the proxy
  • Internal/intranet sites are reachable directly or via PAC bypass

Expected behavior

The page should load, using the same proxy/PAC behavior as the system/browser environment or the OpenCode service proxy configuration.

Actual behavior

The integrated browser pane fails with:

ERR_TUNNEL_CONNECTION_FAILED (-111)

The OpenCode local service logs show:

POST /api/rpc/experimental.browser/tunnel.open -> HTTP 400

Plugins

No response

OpenCode version

2.2.0

Steps to reproduce

  1. Start OpenCode Desktop on the corporate Windows workstation.
  2. Open the integrated browser pane.
  3. Navigate to a public HTTPS site, for example:
    • https://www.google.fr/
  4. Observe the browser pane result.

Screenshot

No response

Operating System

Windows 11

Terminal

No response

Activity

  1. opencodejr commented on Oct 27, 2026

    @opencodejr
    Contributor

    Thanks for the detailed report! I think this is a duplicate of #50476.

    The in-app browser sends its traffic through the OpenCode service's browser tunnel (tunnel.open). Right now that tunnel connects straight to the target site and ignores any proxy configuration, whether HTTPS_PROXY/HTTP_PROXY or the Windows system/PAC settings. On a network where the Internet is only reachable through a proxy, that connection fails, and Chromium shows ERR_TUNNEL_CONNECTION_FAILED (-111).

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

    If you can, please add a comment on #50476 saying that you see this with a local service and that you need system/PAC proxy support, since that is a different case from the environment-variable proxy described there.

    The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different.

  2. mblanquer commented on Oct 27, 2026

    @mblanquer
    Author

    This appears to share the same browser-tunnel failure described in #50476, but my setup is slightly different:

    • local Windows OpenCode Desktop
    • local OpenCode service, not a remote Linux server
    • Internet access requires the Windows/browser corporate PAC configuration
    • public HTTPS URLs work from system tools through the PAC/proxy
    • internal/intranet URLs load in the OpenCode browser pane
    • public Internet URLs fail in the OpenCode browser pane with ERR_TUNNEL_CONNECTION_FAILED (-111)

    So I agree this may share the same root cause as #50476: the browser tunnel does not handle proxied egress. However, please keep the local Windows system proxy/PAC case in scope, or point me to a separate issue for tracking that requirement.

    A fix limited to HTTP_PROXY / HTTPS_PROXY may not fully cover this local Windows PAC setup.

  3. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    We haven't heard back, so I'm closing this as a duplicate of #50476. The browser pane's tunnel ignores proxy settings, and that issue tracks the same problem and the same ERR_TUNNEL_CONNECTION_FAILED (-111) error.

    Please follow #50476 for updates. If you can, add a comment there saying that you hit this with a local service behind a Windows PAC/system proxy, since that case needs system proxy support as well as HTTPS_PROXY/HTTP_PROXY. If your problem turns out to be different, reply here and we can reopen. Thanks for the detailed report!

  4. mblanquer commented on Dec 1, 2026

    @mblanquer
    Author

    Issue fixed by OpenCode 2.4.0 version.

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