{"record":{"id":"05ef36292fb5716a","repo":"openai/codex","slug":"failed-to-prepare-host-proxy-routing-bridge-err","errorCode":null,"errorMessage":"failed to prepare host proxy routing bridge: {err}","messagePattern":"failed to prepare host proxy routing bridge: (.+?)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/linux-sandbox/src/linux_run_main.rs","lineNumber":296,"sourceCode":"        if let Err(e) = apply_permission_profile_to_current_thread(\n            &permission_profile,\n            &sandbox_policy_cwd,\n            /*apply_landlock_fs*/ false,\n            allow_network_for_proxy,\n            /*proxy_routed_network*/ false,\n        ) {\n            panic!(\"error applying Linux sandbox restrictions: {e:?}\");\n        }\n        exec_or_panic(command);\n    }\n\n    if !use_legacy_landlock {\n        // Outer stage: bubblewrap first, then re-enter this binary in the\n        // sandboxed environment to apply seccomp. This path never falls back\n        // to legacy Landlock on failure.\n        let proxy_route_spec = if allow_network_for_proxy {\n            let (proxy_route_spec, socket_dir) = prepare_host_proxy_route_spec()\n                .unwrap_or_else(|err| panic!(\"failed to prepare host proxy routing bridge: {err}\"));\n            file_system_sandbox_policy = file_system_sandbox_policy.with_additional_readable_roots(\n                &sandbox_policy_cwd,\n                std::slice::from_ref(&socket_dir),\n            );\n            Some(proxy_route_spec)\n        } else {\n            None\n        };\n        let inner = build_inner_seccomp_command(InnerSeccompCommandArgs {\n            sandbox_policy_cwd: &sandbox_policy_cwd,\n            command_cwd: command_cwd.as_deref(),\n            permission_profile: &permission_profile,\n            allow_network_for_proxy,\n            proxy_route_spec,\n            command,\n        });\n        run_bwrap_with_proc_fallback(\n            &sandbox_policy_cwd,","sourceCodeStart":278,"sourceCodeEnd":314,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/linux-sandbox/src/linux_run_main.rs#L278-L314","documentation":"The host-side half of the managed proxy routing bridge could not be prepared before entering the sandbox. This panic fires when prepare_host_proxy_route_spec (extracting the attribution token and building the route plan from proxy env config) returns an Err — e.g. proxy env vars present but unparseable — so the sandbox cannot be launched with a coherent proxy plan.","triggerScenarios":"Thrown at codex-rs/linux-sandbox/src/linux_run_main.rs:296 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check proxy-related environment variables for malformed URLs or endpoints","Fix or remove invalid proxy configuration before launching the sandboxed command","Verify the attribution token env var is intact if managed proxy mode is used"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}