fix(provider-usage): honor proxy env for usage fetch#93943
Conversation
da8de69 to
bf8935f
Compare
bf8935f to
6b04ad0
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed June 20, 2026, 10:54 PM ET / 02:54 UTC. Summary PR surface: Source -4, Tests +136. Total +132 across 4 files. Reproducibility: yes. Current main still resolves provider-usage fetch with plain Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this loader-level fix, or an equivalent narrow replacement, after maintainers accept env-proxy precedence for provider usage. Do we have a high-confidence way to reproduce the issue? Yes. Current main still resolves provider-usage fetch with plain Is this the best way to solve the issue? Yes. The provider-usage loader is the narrow owner of the injected fetch function; preserving explicit fetch first and then using the existing env-proxy helper avoids a new config knob or duplicated Codex-specific proxy logic. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against cbbb466852e1. Label changesLabel justifications:
Evidence reviewedPR surface: Source -4, Tests +136. Total +132 across 4 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
@clawsweeper re-review |
0a9b152
into
openclaw:main
* fix(provider-usage): honor proxy env for usage fetch * refactor(mcp): remove unused Claude permission type
Closes #78714.
Summary:
Real behavior proof
6b04ad0bb7, Node v24.15.0, with a local HTTP proxy server. A fake token was used and no real ChatGPT/OAuth request completed.node --import tsx --input-type=modulesource-runtime probe that calledresolveProxyFetchFromEnv({ HTTPS_PROXY: localProxy })forhttps://chatgpt.com/backend-api/wham/usage; the local proxy returned 502 after recording the tunnel request.{ "proof": "env proxy fetch routes Codex usage URL through local HTTPS_PROXY", "proxyUrl": "http://127.0.0.1:<local-port>", "result": { "error": "fetch failed" }, "proxyRequests": [ { "method": "CONNECT", "url": "chatgpt.com:443", "host": "chatgpt.com" } ] }CONNECT chatgpt.com:443, showing the Codex usage URL was routed through the env proxy path instead of direct Node fetch.