openai/codex · error · anyhow::Error
Remote control is disabled on
Error message
Remote control is disabled on {}. What it means
Bailed by ensure_remote_control_startable when the app-server reports RemoteControlConnectionStatus::Disabled: remote control was never enabled on that server, so a start/ready request cannot proceed. (The surrounding match also treats Errored separately.)
Solutions
- Enable remote control in the server/app configuration
- Verify you are targeting the right server name
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at codex-rs/cli/src/remote_control_cmd.rs:401 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/23b48e0f5d3bfb60.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/cli/src/remote_control_cmd.rs:401
}
}
}
fn ensure_remote_control_startable(
output: &AppServerRemoteControlReadyStatus,
) -> anyhow::Result<()> {
match output.status {
RemoteControlConnectionStatus::Connected | RemoteControlConnectionStatus::Connecting => {
Ok(())
}
RemoteControlConnectionStatus::Errored => {
anyhow::bail!(
"Remote control is enabled on {} but the connection is errored.",
output.server_name
);
}
RemoteControlConnectionStatus::Disabled => {
anyhow::bail!("Remote control is disabled on {}.", output.server_name);
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
enum RemoteControlHumanOutputMode {
Foreground,
Daemon,
}
fn remote_control_start_human_lines(
summary: &AppServerRemoteControlReadyStatus,
mode: RemoteControlHumanOutputMode,
) -> anyhow::Result<Vec<String>> {
let mut lines = vec![remote_control_start_human_message(summary)?];
match mode {
RemoteControlHumanOutputMode::Foreground => {
lines.push("Press Ctrl-C to stop.".to_string());View on GitHub (pinned to 339751715c)