{"record":{"id":"9b69bb95031cc0cd","repo":"openai/codex","slug":"remote-control-is-disabled-by-managed-requirements","errorCode":null,"errorMessage":"remote control is disabled by managed requirements","messagePattern":"remote control is disabled by managed requirements","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/app-server-transport/src/transport/remote_control/mod.rs","lineNumber":247,"sourceCode":"            Self::Unavailable(err) => err.fmt(f),\n            Self::DisabledByRequirements(err) => err.fmt(f),\n        }\n    }\n}\n\nimpl Error for RemoteControlEnableError {}\n\nimpl RemoteControlHandle {\n    pub fn ensure_remote_control_allowed(&self) -> Result<(), RemoteControlDisabledByRequirements> {\n        match self.policy {\n            RemoteControlPolicy::Allowed => Ok(()),\n            RemoteControlPolicy::DisabledByRequirements => Err(RemoteControlDisabledByRequirements),\n        }\n    }\n\n    fn ensure_remote_control_allowed_io(&self) -> io::Result<()> {\n        self.ensure_remote_control_allowed()\n            .map_err(|err| io::Error::new(io::ErrorKind::PermissionDenied, err))\n    }\n\n    pub fn enable_ephemeral(\n        &self,\n    ) -> Result<RemoteControlStatusChangedNotification, RemoteControlEnableError> {\n        self.enable_with_preference(/*persistence_preference*/ None)\n    }\n\n    fn enable_with_preference(\n        &self,\n        persistence_preference: Option<bool>,\n    ) -> Result<RemoteControlStatusChangedNotification, RemoteControlEnableError> {\n        self.ensure_remote_control_allowed()\n            .map_err(RemoteControlEnableError::DisabledByRequirements)?;\n        if self.state_db.is_none() {\n            warn!(\"remote control cannot be enabled because sqlite state db is unavailable\");\n            return Err(RemoteControlEnableError::Unavailable(\n                RemoteControlUnavailable,","sourceCodeStart":229,"sourceCodeEnd":265,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/app-server-transport/src/transport/remote_control/mod.rs#L229-L265","documentation":"Error \"remote control is disabled by managed requirements\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/app-server-transport/src/transport/remote_control/mod.rs:247 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"}