core: attribute network approvals to owning tool calls

Thread a stable network owner id through managed proxy credentials and use it to resolve the exact active tool call for blocked network requests. This makes concurrent network approvals attribute deterministically and preserves parent tool item ids downstream.

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Charles Cunningham
2026-03-23 14:10:54 -07:00
co-authored by Codex
parent 7d50d6c3f0
commit 58b860f1bb
33 changed files with 331 additions and 24 deletions
+2
View File
@@ -732,6 +732,7 @@ mod tests {
cwd: PathBuf::from("."),
env: HashMap::new(),
network: None,
network_owner_id: None,
expiration: ExecExpiration::DefaultTimeout,
capture_policy: codex_core::exec::ExecCapturePolicy::ShellTool,
sandbox: SandboxType::WindowsRestrictedToken,
@@ -845,6 +846,7 @@ mod tests {
cwd: PathBuf::from("."),
env: HashMap::new(),
network: None,
network_owner_id: None,
expiration: ExecExpiration::Cancellation(CancellationToken::new()),
capture_policy: codex_core::exec::ExecCapturePolicy::ShellTool,
sandbox: SandboxType::None,