mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why Standalone web search used a default HTTP client, bypassing the configured system proxy route when `respect_system_proxy` was enabled. ## What changed Pass the configured `HttpClientFactory` to the web search tool and create its client asynchronously for the provider's search URL using the API route policy. Export and reuse `SEARCH_ENDPOINT` so route selection and search requests use the same endpoint. ## Testing Add an isolated regression test with environment proxies removed and a mock system proxy. Verify that standalone web search reaches the proxy and returns its result in the follow-up model request. GitOrigin-RevId: 3b64803a777b9d1eb0ccf694e06658b0fd562129