openai/codex · error · io::Error
remote control cannot be enabled because sqlite state db is…
Error message
remote control cannot be enabled because sqlite state db is unavailable
What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at codex-rs/app-server-transport/src/transport/remote_control/mod.rs:364 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/c3d2e32e4bf1bbbe.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/app-server-transport/src/transport/remote_control/mod.rs:364
desired_state_changed,
current_status = ?status.status,
environment_id = ?status.environment_id,
installation_id = %status.installation_id,
server_name = %status.server_name,
"remote control disable requested"
);
self.publish_status(RemoteControlConnectionStatus::Disabled)
}
async fn persist_preference(
&self,
app_server_client_name: Option<&str>,
remote_control_enabled: bool,
) -> io::Result<()> {
let state_db = self
.state_db
.as_deref()
.ok_or_else(|| io::Error::new(io::ErrorKind::NotFound, RemoteControlUnavailable))?;
let auth = load_remote_control_auth(&self.auth_manager).await?;
let remote_control_target = normalize_remote_control_url(&self.remote_control_url)?;
let app_server_client_name = self.pairing_persistence_key(app_server_client_name)?;
state_db
.set_remote_control_enabled(
&remote_control_target.websocket_url,
&auth.account_id,
app_server_client_name.as_deref(),
remote_control_enabled,
)
.await
.map_err(io::Error::other)?;
Ok(())
}
pub fn status(&self) -> RemoteControlStatusChangedNotification {
self.status_tx.borrow().clone()
}View on GitHub (pinned to 339751715c)