Files
codex/codex-rs
Hendrik Buyle 457a191479 Add opt-in tool-call attribution for upstream proxies (#61860)
## What changed

Allow executors to set `CODEX_TOOL_CALL_ATTRIBUTION_PROXY` to designate an upstream proxy that consumes and strips `x-openai-internal-tool-call-id`. When the selected upstream matches that endpoint, attach the controller's tool-call ID to plaintext HTTP requests or the outer HTTPS `CONNECT` request.

Strip caller-supplied attribution headers and send no attribution to direct destinations or other upstream proxies. Leave attribution disabled when the setting is unset.

## Testing

Add request-capture tests for HTTP and HTTPS attribution, execution-specific IDs, header stripping, split upstream selection with nonstandard origin ports, and inbound `CONNECT` tunneling.

GitOrigin-RevId: f908faf55a991bc11f2f9c7fd3100f42b4f638b9
2026-11-16 19:13:33 +00:00
..
…
…
…
…