fix(core): add session-scoped network approvals for managed proxy

This commit is contained in:
viyatb-oai
2026-02-12 16:33:01 -08:00
parent 01f80b2057
commit d33fa6ef00
13 changed files with 585 additions and 130 deletions
@@ -1698,7 +1698,7 @@ impl CodexMessageProcessor {
None => self.config.sandbox_policy.get().clone(),
};
let started_network_proxy = match self.config.network.as_ref() {
Some(spec) => match spec.start_proxy(&effective_policy).await {
Some(spec) => match spec.start_proxy(&effective_policy, None).await {
Ok(started) => Some(started),
Err(err) => {
let error = JSONRPCErrorError {
@@ -1721,6 +1721,7 @@ impl CodexMessageProcessor {
network: started_network_proxy
.as_ref()
.map(codex_core::config::StartedNetworkProxy::proxy),
network_attempt_id: None,
sandbox_permissions: SandboxPermissions::UseDefault,
windows_sandbox_level,
justification: None,