{"record":{"id":"bb084912eff24dcd","repo":"openai/codex","slug":"cannot-update-network-enable-socks5-udp-on-a-runni","errorCode":null,"errorMessage":"cannot update network.enable_socks5_udp on a running proxy","messagePattern":"cannot update network\\.enable_socks5_udp on a running proxy","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/network-proxy/src/proxy.rs","lineNumber":1332,"sourceCode":"    pub async fn replace_config_state(&self, new_state: ConfigState) -> Result<()> {\n        let current_cfg = self.state.current_cfg().await?;\n        anyhow::ensure!(\n            new_state.config.enabled == current_cfg.enabled,\n            \"cannot update network.enabled on a running proxy\"\n        );\n        anyhow::ensure!(\n            new_state.config.proxy_url == current_cfg.proxy_url,\n            \"cannot update network.proxy_url on a running proxy\"\n        );\n        anyhow::ensure!(\n            new_state.config.socks_url == current_cfg.socks_url,\n            \"cannot update network.socks_url on a running proxy\"\n        );\n        anyhow::ensure!(\n            new_state.config.enable_socks5 == current_cfg.enable_socks5,\n            \"cannot update network.enable_socks5 on a running proxy\"\n        );\n        anyhow::ensure!(\n            new_state.config.enable_socks5_udp == current_cfg.enable_socks5_udp,\n            \"cannot update network.enable_socks5_udp on a running proxy\"\n        );\n        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()","sourceCodeStart":1314,"sourceCodeEnd":1350,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/network-proxy/src/proxy.rs#L1314-L1350","documentation":"Error \"cannot update network.enable_socks5_udp on a running proxy\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/network-proxy/src/proxy.rs:1332 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"}