From fcc6c02429439d0f702aaac8dd3be11b248efdf8 Mon Sep 17 00:00:00 2001 From: Nikolas de Hor Date: Wed, 18 Feb 2026 20:17:43 -0300 Subject: [PATCH] fix(tools): add proxy support to web_fetch HTTP transport The web_fetch tool's custom http.Transport was missing the Proxy field, causing it to ignore HTTP_PROXY/HTTPS_PROXY environment variables. Unlike a nil Transport (which defaults to http.DefaultTransport with ProxyFromEnvironment), a manually constructed Transport defaults Proxy to nil (no proxy). Add Proxy: http.ProxyFromEnvironment to restore proxy support for users behind corporate proxies or in censored networks. Closes #413 --- pkg/tools/web.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/tools/web.go b/pkg/tools/web.go index 6a6d40ecf..745f87e3d 100644 --- a/pkg/tools/web.go +++ b/pkg/tools/web.go @@ -413,6 +413,7 @@ func (t *WebFetchTool) Execute(ctx context.Context, args map[string]interface{}) client := &http.Client{ Timeout: 60 * time.Second, Transport: &http.Transport{ + Proxy: http.ProxyFromEnvironment, MaxIdleConns: 10, IdleConnTimeout: 30 * time.Second, DisableCompression: false,