openai/codex · error
managed proxy mode requires --proxy-route-spec
Error message
managed proxy mode requires --proxy-route-spec
What it means
Error "managed proxy mode requires --proxy-route-spec" thrown in openai/codex.
Source
Thrown at codex-rs/linux-sandbox/src/linux_run_main.rs:226
)
};
if result < 0 {
panic!(
"failed to verify Linux sandbox capabilities: {}",
std::io::Error::last_os_error()
);
}
if capability_sets
.into_iter()
.any(|[effective, permitted, _]| effective != 0 || permitted != 0)
{
panic!("Linux sandbox retained effective or permitted capabilities");
}
if allow_network_for_proxy {
let spec = proxy_route_spec
.as_deref()
.unwrap_or_else(|| panic!("managed proxy mode requires --proxy-route-spec"));
if let Err(err) = activate_proxy_routes_in_netns(spec) {
panic!("error activating Linux proxy routing bridge: {err}");
}
}
let proxy_routing_active = allow_network_for_proxy;
if let Err(e) = apply_permission_profile_to_current_thread(
&permission_profile,
&sandbox_policy_cwd,
/*apply_landlock_fs*/ false,
allow_network_for_proxy,
proxy_routing_active,
) {
panic!("error applying Linux sandbox restrictions: {e:?}");
}
let signal_mask = ForwardedSignalMask::block();
let command_pid = unsafe { libc::fork() };
if command_pid < 0 {View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/linux-sandbox/src/linux_run_main.rs:226 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/ea0aa3277a8a2810.
Report an issue: GitHub.