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
[Bug]: trusted env-proxy web_search and web_fetch still fail with EAI_AGAIN in v2026.3.31 #59005
Behaviour bug (incorrect output/state without crash)
Summary
web_search and web_fetch still fail in TRUSTED_ENV_PROXY mode on v2026.3.31 when local DNS is unavailable and all outbound traffic must go through a trusted HTTP CONNECT proxy.
This is distinct from the strict-mode proxy fix merged in #50650. In both main and v2026.3.31, fetchWithSsrFGuard() still calls resolvePinnedHostnameWithPolicy() before branching to the trusted env-proxy path, so the request fails on local DNS before EnvHttpProxyAgent is ever created.
Steps to reproduce
Run OpenClaw in a sandboxed environment where HTTP_PROXY / HTTPS_PROXY are configured and local DNS is intentionally unavailable.
Trigger web_search or web_fetch through the trusted web-tool path.
Observe getaddrinfo EAI_AGAIN ... before the request reaches the proxy dispatcher.
Expected behaviour
When trusted env-proxy mode is selected, OpenClaw should skip local DNS pinning and let the trusted proxy resolve DNS.
Actual behaviour
OpenClaw still performs local DNS resolution first and fails with EAI_AGAIN, so web tools are unusable in proxy-only sandboxes.
OpenClaw version
2026.3.31
Operating system
Linux sandbox / proxy-only network namespace
Additional details
Current source in both main and v2026.3.31 still has this ordering:
This is reproducible in a live NemoClaw / OpenShell proxy-only sandbox, and the downstream workaround confirms that moving DNS pinning behind the trusted env-proxy branch resolves both the initial web_search DNS failure and the broken follow-up turn behaviour that can follow it.
Activity
cluster2600 commentedon Apr 1, 2026
A clean fix PR is up at #59007.
This is reproducible in a live NemoClaw / OpenShell proxy-only sandbox, and the downstream workaround confirms that moving DNS pinning behind the trusted env-proxy branch resolves both the initial
web_searchDNS failure and the broken follow-up turn behaviour that can follow it.