GeezerVison is showing github.com — Browser pane fails behind corporate proxy with ERR_TUNNEL_CONNECTION_FAILED on Windows Desktop 2.2.0 · Issue #59722 · anomalyco/opencode
Browser pane fails behind corporate proxy with ERR_TUNNEL_CONNECTION_FAILED on Windows Desktop 2.2.0 #59722DescriptionDescription
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
- Start OpenCode Desktop on the corporate Windows workstation.
- Open the integrated browser pane.
- Navigate to a public HTTPS site, for example:
- Observe the browser pane result.
Screenshot
No response
Operating System
Windows 11
Terminal
No response Activityopencodejr commented on 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, 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.
mblanquer commented on Oct 27, 2026 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. opencodejr commented on 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!
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|