{"record":{"id":"c85134cd07dad3dd","repo":"openai/codex","slug":"remote-control-disabled-before-enrollment","errorCode":null,"errorMessage":"remote control disabled before enrollment","messagePattern":"remote control disabled before enrollment","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/app-server-transport/src/transport/remote_control/websocket.rs","lineNumber":1726,"sourceCode":"async fn enroll_and_persist_remote_control_server(\n    remote_control_target: &RemoteControlTarget,\n    state_db: &StateRuntime,\n    auth_context: RemoteControlEnrollmentAuthContext<'_, '_>,\n    enrollment: &mut Option<RemoteControlEnrollment>,\n    connect_options: RemoteControlConnectOptions<'_>,\n    status_publisher: &RemoteControlStatusPublisher,\n    selection: RemoteControlEnrollmentSelection,\n) -> io::Result<()> {\n    match selection {\n        RemoteControlEnrollmentSelection::ReuseOrCreate => {\n            if enrollment.is_some() {\n                return Ok(());\n            }\n        }\n        RemoteControlEnrollmentSelection::ReplaceExisting => {}\n    }\n    if !connect_options.desired_state_tx.borrow().is_enabled() {\n        return Err(io::Error::new(\n            ErrorKind::Interrupted,\n            \"remote control disabled before enrollment\",\n        ));\n    }\n\n    info!(\n        \"creating new remote control enrollment: websocket_url={}, enroll_url={}, account_id={}\",\n        remote_control_target.websocket_url,\n        remote_control_target.enroll_url,\n        auth_context.auth.account_id\n    );\n    let new_enrollment = match enroll_remote_control_server(\n        remote_control_target,\n        auth_context.auth,\n        connect_options.installation_id,\n        connect_options.server_name,\n    )\n    .await","sourceCodeStart":1708,"sourceCodeEnd":1744,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/app-server-transport/src/transport/remote_control/websocket.rs#L1708-L1744","documentation":"Error \"remote control disabled before enrollment\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/app-server-transport/src/transport/remote_control/websocket.rs:1726 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"}