openai/codex · error · anyhow::Error
Remote control is enabled on
Error message
Remote control is enabled on {} but the connection is errored. What it means
Bailed by ensure_remote_control_startable when the app-server reports RemoteControlConnectionStatus::Errored: the server has remote control enabled but its outbound connection is in an error state, so starting is refused. Named output.server_name identifies the failing server.
Solutions
- Check network/relay connectivity to the remote control server
- Retry after the connection recovers
- Inspect app-server logs for the connection error
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at codex-rs/cli/src/remote_control_cmd.rs:395 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/26123d70ef13e5b8.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/cli/src/remote_control_cmd.rs:395
RemoteControlConnectionStatus::Connecting => Ok(format!(
"Remote control is enabled on {} and still connecting.",
output.server_name
)),
RemoteControlConnectionStatus::Errored | RemoteControlConnectionStatus::Disabled => {
unreachable!("errored and disabled statuses are rejected before formatting")
}
}
}
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,View on GitHub (pinned to 339751715c)