{"record":{"id":"22ed147ca1cae8aa","repo":"openai/codex","slug":"cannot-update-network-enabled-on-a-running-proxy","errorCode":null,"errorMessage":"cannot update network.enabled on a running proxy","messagePattern":"cannot update network\\.enabled on a running proxy","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/network-proxy/src/proxy.rs","lineNumber":1316,"sourceCode":"            None\n        };\n\n        proxies.insert(\n            environment_id,\n            EnvironmentProxy {\n                addrs,\n                runtime: EnvironmentProxyRuntime::ListenerTasks {\n                    http_task,\n                    socks_task,\n                },\n            },\n        );\n        Ok(addrs)\n    }\n\n    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\"","sourceCodeStart":1298,"sourceCodeEnd":1334,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/network-proxy/src/proxy.rs#L1298-L1334","documentation":"Error \"cannot update network.enabled on a running proxy\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/network-proxy/src/proxy.rs:1316 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"}