{"record":{"id":"f21f02339ef5443a","repo":"openai/codex","slug":"io-errorkind-interrupted","errorCode":"io::ErrorKind::Interrupted","errorMessage":"remote control account changed during enrollment","messagePattern":"remote control account changed during enrollment","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/app-server-transport/src/transport/remote_control/desired_state.rs","lineNumber":130,"sourceCode":"        let remote_control_target = normalize_remote_control_url(&self.remote_control_url)?;\n        let app_server_client_name = self.pairing_persistence_key(app_server_client_name)?;\n        let app_server_client_name = app_server_client_name.as_deref();\n        let status = self.status();\n        let mut current_enrollment = self.current_enrollment.lock().await;\n        let (enrollment, _) = self\n            .load_or_enroll_server(\n                &current_enrollment,\n                &mut auth,\n                &status.installation_id,\n                &status.server_name,\n                app_server_client_name,\n                super::RemoteControlEnrollmentSelection::ReuseOrCreate,\n            )\n            .await?;\n\n        let current_auth = super::auth::load_remote_control_auth(&self.auth_manager).await?;\n        if current_auth.account_id != auth.account_id {\n            return Err(io::Error::new(\n                io::ErrorKind::Interrupted,\n                \"remote control account changed during enrollment\",\n            ));\n        }\n\n        let _persistence = acquire_persistence_lock(&self.desired_state_persistence_lock).await;\n        let updated = state_db\n            .set_remote_control_enabled(\n                &remote_control_target.websocket_url,\n                &auth.account_id,\n                app_server_client_name,\n                /*remote_control_enabled*/ true,\n            )\n            .await\n            .map_err(io::Error::other)?;\n        if updated == 0 {\n            update_persisted_remote_control_enrollment(\n                Some(state_db),","sourceCodeStart":112,"sourceCodeEnd":148,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/app-server-transport/src/transport/remote_control/desired_state.rs#L112-L148","documentation":"Error \"remote control account changed during enrollment\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/app-server-transport/src/transport/remote_control/desired_state.rs:130 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"}