BigPizzaV3/CodexPlusPlus · error · anyhow::Error
Remote Control session recovery is unavailable
Error message
Remote Control session recovery is unavailable
What it means
This is the trait's default implementation of recover_remote_control_session; it unconditionally fails. Only backend implementations that override the method support Remote Control session recovery — the default exists so backends without the feature still compile.
Solutions
- Use a backend that implements recover_remote_control_session
- Handle the error gracefully in the UI as 'feature unsupported on this backend'
- Feature-detect support before exposing the Remote Control recovery action
Example fix
// before
let result = store.recover_remote_control_session(thread_id).await?;
// after
match store.recover_remote_control_session(thread_id).await {
Ok(v) => v,
Err(e) if e.to_string().contains("unavailable") => return fallback_recovery(),
Err(e) => return Err(e),
} Defensive patterns
Strategy: fallback
Try / catch
match store.recover_remote_control_session(thread_id).await {
Ok(v) => handle_recovered(v),
Err(e) if e.to_string().contains("unavailable") => handle_unsupported_backend(),
Err(e) => return Err(e.into()),
} Prevention
- Document which backends implement recovery
- Expose a supports_remote_control_recovery() capability check
- Avoid routing recovery requests to fallback/test backends in production
When it happens
Trigger: Calling recover_remote_control_session on a SessionStore/backend trait object whose concrete type does not override the default method.
Common situations: Running against a test, embedded, or fallback backend that never implemented recovery; calling the API before the real backend is wired into BridgeContext.
Related errors
- Session file export is unavailable
- Session file import is unavailable
- Remote Control candidate check failed
- Remote Control recovery requires a valid thread id
- Remote Control recovery requires profile and provider…
AI-assisted analysis of BigPizzaV3/CodexPlusPlus@b1ed92e5e4 (2026-09-19).
Data as JSON: /api/errors/3465bc7e8a91292d.
Report an issue: GitHub.
Appendix: source
Thrown at crates/codex-plus-core/src/routes.rs:120
async fn forget_zed_remote_project(&self, payload: Value) -> anyhow::Result<Value>;
async fn upstream_worktree_status(&self) -> anyhow::Result<Value>;
async fn upstream_worktree_defaults(&self, payload: Value) -> anyhow::Result<Value>;
async fn upstream_worktree_prepare(&self, payload: Value) -> anyhow::Result<Value>;
async fn upstream_worktree_create(&self, payload: Value) -> anyhow::Result<Value>;
}
#[async_trait]
pub trait BridgeDataService: Send + Sync {
async fn delete(&self, session: SessionRef) -> anyhow::Result<DeleteResult>;
async fn undo(&self, undo_token: String) -> anyhow::Result<DeleteResult>;
async fn export_markdown(&self, session: SessionRef) -> anyhow::Result<ExportResult>;
async fn thread_usage_history(&self, session: SessionRef) -> anyhow::Result<Value>;
async fn find_archived_thread_by_title(
&self,
title: String,
) -> anyhow::Result<Option<SessionRef>>;
async fn recover_remote_control_session(&self, _thread_id: String) -> anyhow::Result<Value> {
anyhow::bail!("Remote Control session recovery is unavailable")
}
async fn export_session_file(&self, _session: SessionRef) -> anyhow::Result<Value> {
anyhow::bail!("Session file export is unavailable")
}
async fn import_session_file(&self, _payload: Value) -> anyhow::Result<Value> {
anyhow::bail!("Session file import is unavailable")
}
}
pub async fn handle_bridge_request(
ctx: BridgeContext,
path: &str,
payload: Value,
) -> serde_json::Value {
let started = Instant::now();
let _ = crate::diagnostic_log::append_diagnostic_log(
"bridge.request",
json!({View on GitHub (pinned to b1ed92e5e4)