{"record":{"id":"fe64fe92084dc7f3","repo":"openai/codex","slug":"execution-scoped-network-proxy-is-already-running","errorCode":null,"errorMessage":"execution-scoped network proxy is already running","messagePattern":"execution-scoped network proxy is already running","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/network-proxy/src/proxy.rs","lineNumber":1354,"sourceCode":"        let settings = NetworkProxyRuntimeSettings::from_config(&new_state.config)?;\n        self.state.replace_config_state(new_state).await?;\n        let mut guard = self\n            .runtime_settings\n            .write()\n            .unwrap_or_else(std::sync::PoisonError::into_inner);\n        *guard = settings;\n        Ok(())\n    }\n\n    fn runtime_settings(&self) -> NetworkProxyRuntimeSettings {\n        self.runtime_settings\n            .read()\n            .unwrap_or_else(std::sync::PoisonError::into_inner)\n            .clone()\n    }\n\n    pub async fn run(&self) -> Result<NetworkProxyHandle> {\n        anyhow::ensure!(\n            self.execution_scope.is_none(),\n            \"execution-scoped network proxy is already running\"\n        );\n        let current_cfg = self.state.current_cfg().await?;\n        if !current_cfg.enabled {\n            warn!(\"network.enabled is false; skipping proxy listeners\");\n            return Ok(NetworkProxyHandle::noop());\n        }\n\n        if !cfg!(target_os = \"windows\") && !unix_socket_permissions_supported() {\n            warn!(\n                \"allowUnixSockets and dangerouslyAllowAllUnixSockets are macOS-only; requests will be rejected on this platform\"\n            );\n        }\n\n        #[cfg(target_os = \"windows\")]\n        if let Some(windows_runtime) = self.windows_runtime.as_ref() {\n            let mut active_route = windows_runtime","sourceCodeStart":1336,"sourceCodeEnd":1372,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/network-proxy/src/proxy.rs#L1336-L1372","documentation":"Error \"execution-scoped network proxy is already running\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/network-proxy/src/proxy.rs:1354 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}