{"record":{"id":"2fb2a1c94637b39d","repo":"openai/codex","slug":"invalid-remote-control-url-remote-control-url-2fb2a1","errorCode":null,"errorMessage":"invalid remote control URL `{remote_control_url}`","messagePattern":"invalid remote control URL `(.+?)`","errorType":"validation","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/app-server-transport/src/transport/remote_control/protocol.rs","lineNumber":245,"sourceCode":"        .join(\"wham/remote/control/server/refresh\")\n        .map_err(map_url_parse_error)?;\n    let pair_url = remote_control_url\n        .join(\"wham/remote/control/server/pair\")\n        .map_err(map_url_parse_error)?;\n    let pair_status_url = remote_control_url\n        .join(\"wham/remote/control/server/pair/status\")\n        .map_err(map_url_parse_error)?;\n    let mut websocket_url = remote_control_url\n        .join(\"wham/remote/control/server\")\n        .map_err(map_url_parse_error)?;\n    websocket_url\n        .set_scheme(if enroll_url.scheme() == \"https\" {\n            \"wss\"\n        } else {\n            \"ws\"\n        })\n        .map_err(|()| {\n            io::Error::new(\n                ErrorKind::InvalidInput,\n                format!(\"invalid remote control URL `{remote_control_url}`\"),\n            )\n        })?;\n\n    Ok(RemoteControlTarget {\n        websocket_url: websocket_url.to_string(),\n        enroll_url: enroll_url.to_string(),\n        refresh_url: refresh_url.to_string(),\n        pair_url: pair_url.to_string(),\n        pair_status_url: pair_status_url.to_string(),\n    })\n}\n\npub(super) fn normalize_remote_control_base_url(remote_control_url: &str) -> io::Result<Url> {\n    let map_url_parse_error = |err: url::ParseError| -> io::Error {\n        io::Error::new(\n            ErrorKind::InvalidInput,","sourceCodeStart":227,"sourceCodeEnd":263,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/app-server-transport/src/transport/remote_control/protocol.rs#L227-L263","documentation":"Error \"invalid remote control URL `{remote_control_url}`\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/app-server-transport/src/transport/remote_control/protocol.rs:245 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"}