{"record":{"id":"508c1031335804d8","repo":"openai/codex","slug":"remote-control-pairing-status-accepts-either-pairi","errorCode":null,"errorMessage":"remote control pairing status accepts either pairingCode or manualPairingCode, not both","messagePattern":"remote control pairing status accepts either pairingCode or manualPairingCode, not both","errorType":"validation","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/app-server-transport/src/transport/remote_control/mod.rs","lineNumber":812,"sourceCode":"                .await\n                .map_err(|_| pairing_unavailable_error())?;\n        }\n        Err(err) => return Err(err),\n    }\n    enroll_remote_control_server(remote_control_target, auth, installation_id, server_name).await\n}\n\nfn remote_control_pairing_status_code(\n    params: &RemoteControlPairingStatusParams,\n) -> io::Result<RemoteControlPairingStatusCode> {\n    match (&params.pairing_code, &params.manual_pairing_code) {\n        (Some(pairing_code), None) => Ok(RemoteControlPairingStatusCode::PairingCode(\n            pairing_code.clone(),\n        )),\n        (None, Some(manual_pairing_code)) => Ok(RemoteControlPairingStatusCode::ManualPairingCode(\n            manual_pairing_code.clone(),\n        )),\n        (Some(_), Some(_)) => Err(io::Error::new(\n            io::ErrorKind::InvalidInput,\n            \"remote control pairing status accepts either pairingCode or manualPairingCode, not both\",\n        )),\n        (None, None) => Err(io::Error::new(\n            io::ErrorKind::InvalidInput,\n            \"remote control pairing status requires pairingCode or manualPairingCode\",\n        )),\n    }\n}\n\nasync fn refresh_pairing_enrollment(\n    current_enrollment: &mut Option<RemoteControlEnrollment>,\n    auth_manager: &Arc<AuthManager>,\n    auth: &mut auth::RemoteControlConnectionAuth,\n    installation_id: &str,\n    enrollment: &mut RemoteControlEnrollment,\n) -> io::Result<()> {\n    let mut refresh_result = refresh_remote_control_server(auth, installation_id, enrollment).await;","sourceCodeStart":794,"sourceCodeEnd":830,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/app-server-transport/src/transport/remote_control/mod.rs#L794-L830","documentation":"Error \"remote control pairing status accepts either pairingCode or manualPairingCode, not both\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/app-server-transport/src/transport/remote_control/mod.rs:812 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"}