{"record":{"id":"3465bc7e8a91292d","repo":"BigPizzaV3/CodexPlusPlus","slug":"remote-control-session-recovery-is-unavailable","errorCode":null,"errorMessage":"Remote Control session recovery is unavailable","messagePattern":"Remote Control session recovery is unavailable","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/codex-plus-core/src/routes.rs","lineNumber":120,"sourceCode":"    async fn forget_zed_remote_project(&self, payload: Value) -> anyhow::Result<Value>;\n    async fn upstream_worktree_status(&self) -> anyhow::Result<Value>;\n    async fn upstream_worktree_defaults(&self, payload: Value) -> anyhow::Result<Value>;\n    async fn upstream_worktree_prepare(&self, payload: Value) -> anyhow::Result<Value>;\n    async fn upstream_worktree_create(&self, payload: Value) -> anyhow::Result<Value>;\n}\n\n#[async_trait]\npub trait BridgeDataService: Send + Sync {\n    async fn delete(&self, session: SessionRef) -> anyhow::Result<DeleteResult>;\n    async fn undo(&self, undo_token: String) -> anyhow::Result<DeleteResult>;\n    async fn export_markdown(&self, session: SessionRef) -> anyhow::Result<ExportResult>;\n    async fn thread_usage_history(&self, session: SessionRef) -> anyhow::Result<Value>;\n    async fn find_archived_thread_by_title(\n        &self,\n        title: String,\n    ) -> anyhow::Result<Option<SessionRef>>;\n    async fn recover_remote_control_session(&self, _thread_id: String) -> anyhow::Result<Value> {\n        anyhow::bail!(\"Remote Control session recovery is unavailable\")\n    }\n    async fn export_session_file(&self, _session: SessionRef) -> anyhow::Result<Value> {\n        anyhow::bail!(\"Session file export is unavailable\")\n    }\n    async fn import_session_file(&self, _payload: Value) -> anyhow::Result<Value> {\n        anyhow::bail!(\"Session file import is unavailable\")\n    }\n}\n\npub async fn handle_bridge_request(\n    ctx: BridgeContext,\n    path: &str,\n    payload: Value,\n) -> serde_json::Value {\n    let started = Instant::now();\n    let _ = crate::diagnostic_log::append_diagnostic_log(\n        \"bridge.request\",\n        json!({","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6/crates/codex-plus-core/src/routes.rs#L102-L138","documentation":"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.","triggerScenarios":"Calling recover_remote_control_session on a SessionStore/backend trait object whose concrete type does not override the default method.","commonSituations":"Running against a test, embedded, or fallback backend that never implemented recovery; calling the API before the real backend is wired into BridgeContext.","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"],"exampleFix":"// before\nlet result = store.recover_remote_control_session(thread_id).await?;\n// after\nmatch store.recover_remote_control_session(thread_id).await {\n    Ok(v) => v,\n    Err(e) if e.to_string().contains(\"unavailable\") => return fallback_recovery(),\n    Err(e) => return Err(e),\n}","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"match store.recover_remote_control_session(thread_id).await {\n    Ok(v) => handle_recovered(v),\n    Err(e) if e.to_string().contains(\"unavailable\") => handle_unsupported_backend(),\n    Err(e) => return Err(e.into()),\n}","preventionTips":["Document which backends implement recovery","Expose a supports_remote_control_recovery() capability check","Avoid routing recovery requests to fallback/test backends in production"],"tags":["not-implemented","remote-control","trait-default"],"backgroundTag":"method-not-implemented","analyzedSha":"b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6","analyzedAt":"2026-09-19T23:35:21.129Z","contentChangedAt":"2026-09-19T23:35:21.129Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}