Skip to content

fix: skip HTTP proxy for loopback URLs - #47093

Closed
RaviTharuma wants to merge 10 commits into
anomalyco:devfrom
RaviTharuma:fix/loopback-noproxy-v2
Closed

RaviTharuma wants to merge 10 commits into
anomalyco:devfrom
RaviTharuma:fix/loopback-noproxy-v2

Conversation

@RaviTharuma

Copy link
Copy Markdown

Issue for this PR

Closes #47041

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

With HTTP_PROXY/ALL_PROXY set, loopback backends were sent through the proxy. Compiled Bun also ignores NODE_OPTIONS=--dns-result-order=ipv4first.

Loopback URLs now skip the HTTP proxy (ProxyEnv.getProxyForUrl). AGENTS.md notes the compiled-binary DNS limit.

How did you verify your code works?

bun test packages/opencode/test/util/proxy-env.test.ts on this branch (1 pass, loopback not proxied).

Screenshots / recordings

N/A — networking helper, no UI.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Copilot AI lite review requested due to automatic review settings September 3, 2026 16:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@RaviTharuma RaviTharuma closed this by deleting the head repository Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compiled binary ignores NODE_OPTIONS dns-result-order and often NO_PROXY

2 participants