You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Browser pane fails behind corporate proxy with ERR_TUNNEL_CONNECTION_FAILED on Windows Desktop 2.2.0 #59722
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
Start OpenCode Desktop on the corporate Windows workstation.
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.
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.
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!
Activity
opencodejr commentedon Oct 27, 2026
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, whetherHTTPS_PROXY/HTTP_PROXYor the Windows system/PAC settings. On a network where the Internet is only reachable through a proxy, that connection fails, and Chromium showsERR_TUNNEL_CONNECTION_FAILED (-111).Possible duplicates and related issues, ordered from most to least likely:
ERR_TUNNEL_CONNECTION_FAILED (-111). It was reported for Desktop connected to a remote server, but the code path is the same. A contributor there has proposed proxy support, with system/PAC proxy support as a follow-up.webfetchon Windows Desktop does not respect the system proxy settings.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.
mblanquer commentedon Oct 27, 2026
This appears to share the same browser-tunnel failure described in #50476, but my setup is slightly different:
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_PROXYmay not fully cover this local Windows PAC setup.opencodejr commentedon Oct 28, 2026
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!mblanquer commentedon Dec 1, 2026
Issue fixed by OpenCode 2.4.0 version.