{"record":{"id":"c3d2e32e4bf1bbbe","repo":"openai/codex","slug":"remote-control-cannot-be-enabled-because-sqlite-st","errorCode":null,"errorMessage":"remote control cannot be enabled because sqlite state db is unavailable","messagePattern":"remote control cannot be enabled because sqlite state db is unavailable","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/app-server-transport/src/transport/remote_control/mod.rs","lineNumber":364,"sourceCode":"            desired_state_changed,\n            current_status = ?status.status,\n            environment_id = ?status.environment_id,\n            installation_id = %status.installation_id,\n            server_name = %status.server_name,\n            \"remote control disable requested\"\n        );\n        self.publish_status(RemoteControlConnectionStatus::Disabled)\n    }\n\n    async fn persist_preference(\n        &self,\n        app_server_client_name: Option<&str>,\n        remote_control_enabled: bool,\n    ) -> io::Result<()> {\n        let state_db = self\n            .state_db\n            .as_deref()\n            .ok_or_else(|| io::Error::new(io::ErrorKind::NotFound, RemoteControlUnavailable))?;\n        let auth = load_remote_control_auth(&self.auth_manager).await?;\n        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        state_db\n            .set_remote_control_enabled(\n                &remote_control_target.websocket_url,\n                &auth.account_id,\n                app_server_client_name.as_deref(),\n                remote_control_enabled,\n            )\n            .await\n            .map_err(io::Error::other)?;\n        Ok(())\n    }\n\n    pub fn status(&self) -> RemoteControlStatusChangedNotification {\n        self.status_tx.borrow().clone()\n    }","sourceCodeStart":346,"sourceCodeEnd":382,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/app-server-transport/src/transport/remote_control/mod.rs#L346-L382","documentation":"Raised by persist_preference when the caller tries to persist the remote-control enabled/disabled preference but the app-server was started without a sqlite state database (state_db is None). The preference can only be stored durably, so the request fails rather than silently keeping the setting in memory.","triggerScenarios":"Thrown at codex-rs/app-server-transport/src/transport/remote_control/mod.rs:364 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Start or embed the app-server with the sqlite state DB configured so preferences can be persisted","Treat remote control as unsupported in this deployment and surface a clear unsupported-feature error to the client instead of retrying"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}