Skip to content

Inherit proxy env vars by default in direct backend#40

Closed
ianhodge wants to merge 1 commit intomainfrom
fix/inherit-proxy-env-vars
Closed

Inherit proxy env vars by default in direct backend#40
ianhodge wants to merge 1 commit intomainfrom
fix/inherit-proxy-env-vars

Conversation

@ianhodge
Copy link
Copy Markdown
Member

Description

Add standard proxy environment variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY, ALL_PROXY and lowercase variants) to defaultInheritedEnvVars in the direct backend.

Previously, only HOME, TMPDIR, and PATH were inherited from the host process environment. Customers behind HTTP CONNECT proxies had to explicitly configure proxy env vars in backend.direct.environment, which is error-prone and non-obvious.

With this change, the oz CLI automatically inherits the worker's proxy settings. Explicit config entries still work as overrides.

Related: This is the companion fix to warpdotdev/warp-internal#23747 which fixes a port parsing bug in the websocket proxy code. Both fixes are needed to fully resolve the customer issue.

Testing

  • go build ./... succeeds
  • go test ./... — all tests pass

Conversation: https://staging.warp.dev/conversation/5cb48f52-5908-4cb5-bde3-3e5ce5dce30c
Run: https://oz.staging.warp.dev/runs/019d4076-25fb-78e4-ab78-459000d0cb34

This PR was generated with Oz.

Add HTTP_PROXY, HTTPS_PROXY, NO_PROXY, ALL_PROXY (and lowercase
variants) to defaultInheritedEnvVars so the oz CLI automatically
inherits the worker's proxy configuration.

Previously, customers had to explicitly configure proxy env vars
in the backend.direct.environment config. While that still works
as an override, inheriting them by default is the expected behavior
for proxy-aware environments.

Co-Authored-By: Oz <oz-agent@warp.dev>
@ianhodge ianhodge closed this Mar 31, 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.

1 participant