core-agent-ide/codex-rs/network-proxy/src
Michael Bolin 44ebf4588f
feat: retain NetworkProxy, when appropriate (#11207)
As of this PR, `SessionServices` retains a
`Option<StartedNetworkProxy>`, if appropriate.

Now the `network` field on `Config` is `Option<NetworkProxySpec>`
instead of `Option<NetworkProxy>`.

Over in `Session::new()`, we invoke `NetworkProxySpec::start_proxy()` to
create the `StartedNetworkProxy`, which is a new struct that retains the
`NetworkProxy` as well as the `NetworkProxyHandle`. (Note that `Drop` is
implemented for `NetworkProxyHandle` to ensure the proxies are shutdown
when it is dropped.)

The `NetworkProxy` from the `StartedNetworkProxy` is threaded through to
the appropriate places.


---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/openai/codex/pull/11207).
* #11285
* __->__ #11207
2026-02-10 02:09:23 -08:00
..
admin.rs feat: reserve loopback ephemeral listeners for managed proxy (#11269) 2026-02-10 06:11:02 +00:00
config.rs feat: retain NetworkProxy, when appropriate (#11207) 2026-02-10 02:09:23 -08:00
http_proxy.rs feat: reserve loopback ephemeral listeners for managed proxy (#11269) 2026-02-10 06:11:02 +00:00
lib.rs feat: retain NetworkProxy, when appropriate (#11207) 2026-02-10 02:09:23 -08:00
network_policy.rs refactor(network-proxy): flatten network config under [network] (#10965) 2026-02-07 05:22:44 +00:00
policy.rs feat: introducing a network sandbox proxy (#8442) 2026-01-23 17:47:09 -08:00
proxy.rs feat: retain NetworkProxy, when appropriate (#11207) 2026-02-10 02:09:23 -08:00
reasons.rs feat: introducing a network sandbox proxy (#8442) 2026-01-23 17:47:09 -08:00
responses.rs feat(network-proxy): add structured policy decision to blocked errors (#10420) 2026-02-06 10:46:50 -08:00
runtime.rs chore: change ConfigState so it no longer depends on a single config.toml file for reloading (#11262) 2026-02-09 19:26:39 -08:00
socks5.rs feat: reserve loopback ephemeral listeners for managed proxy (#11269) 2026-02-10 06:11:02 +00:00
state.rs chore: change ConfigState so it no longer depends on a single config.toml file for reloading (#11262) 2026-02-09 19:26:39 -08:00
upstream.rs feat: enable premessage-deflate for websockets (#10966) 2026-02-07 17:59:34 -08:00