Repository navigation
Conversation
- Introduce apply_env_proxy(..) honoring HTTPS_PROXY/HTTP_PROXY/ALL_PROXY - Use default client for login token exchange - Apply proxy to ollama client builder This centralizes proxy handling and preserves originator/User-Agent headers. Signed-off-by: orb li <[email protected]>
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
waiting for it. |
|
Really need this, can the team approve this ASAP? |
|
I don't kown
I'm ui
…________________________________
发件人: 王翔(Shawn Wang) ***@***.***>
发送时间: 星期二, 十月 14, 2025 10:51:20 上午
收件人: openai/codex ***@***.***>
抄送: Subscribed ***@***.***>
主题: Re: [openai/codex] Use of HTTP_PROXY env var in reqwest clients (PR #3455)
[https://avatars.githubusercontent.com/u/702829?s=20&v=4]shwangdev left a comment (openai/codex#3455)<#3455 (comment)>
Really need this, can the team approve this ASAP?
―
Reply to this email directly, view it on GitHub<#3455 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BXU5CGPLSCQXV4IIQIWEEJD3XRQKLAVCNFSM6AAAAACGGHUWF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOJZHEYTMMRWGY>.
You are receiving this because you are subscribed to this thread.
|
|
Thanks for the contribution, and apologies for the slow response. We've received many PRs, and we don't have the bandwidth on the codex team to review all of them. We've updated our contribution guidelines to clarify that we're currently accepting contributions for bugs and security fixes, but we're not generally accepting new features at this time. We need to make sure that all new features compose well with both existing and upcoming features and fit into our roadmap. If you would like to propose a new feature, please file or upvote an enhancement request in the issue tracker. We will generally prioritize new features based on community feedback. |
What
codex_core::default_client::apply_env_proxy(..)honoringHTTPS_PROXY→HTTP_PROXY→ALL_PROXY.codex_core::default_client::create_client()for OAuth/token flows incodex-login.codex-ollama’sreqwest::Client::builder().Touched files:
codex-rs/core/src/default_client.rscodex-rs/login/src/server.rscodex-rs/ollama/src/client.rsWhy
originatorheaders consistent across all HTTP clients.How
apply_env_proxy(builder)reads the first non-empty ofHTTPS_PROXY,HTTP_PROXY,ALL_PROXYand appliesreqwest::Proxy::all(..). Invalid values are ignored with a warning.create_client()now passes its builder throughapply_env_proxywhile preserving default headers and UA.User Impact
Testing
cargo fmt.cargo testto fetch deps. CI should validate.Backward Compatibility
Follow-ups (optional)
https_proxy, etc.) andNO_PROXYif desired.CLA: I have read the CLA Document and I hereby sign the CLA