{"record":{"id":"f1914c6c47954c68","repo":"zed-industries/zed","slug":"disconnected","errorCode":"Disconnected","errorMessage":"Disconnected","messagePattern":"Disconnected","errorType":"error_code","errorClass":"RpcError","httpStatus":null,"severity":"error","filePath":"crates/project/src/project.rs","lineNumber":3278,"sourceCode":"            let response = proto_client\n                .request(proto::DownloadFileByPath {\n                    project_id,\n                    worktree_id: worktree_id.to_proto(),\n                    path: path_str.clone(),\n                    file_id,\n                })\n                .await?;\n\n            log::debug!(\"download_file: got response, file_id={}\", response.file_id);\n            // The file_id is set from the State message, we just confirm the request succeeded\n            Ok(())\n        })\n    }\n\n    #[ztracing::instrument(skip_all)]\n    pub fn open_buffer(\n        &mut self,\n        path: impl Into<ProjectPath>,\n        cx: &mut App,\n    ) -> Task<Result<Entity<Buffer>>> {\n        if self.is_disconnected(cx) {\n            return Task::ready(Err(anyhow!(ErrorCode::Disconnected)));\n        }\n\n        self.buffer_store.update(cx, |buffer_store, cx| {\n            buffer_store.open_buffer(path.into(), cx)\n        })\n    }\n\n    #[cfg(feature = \"test-support\")]\n    pub fn open_buffer_with_lsp(\n        &mut self,\n        path: impl Into<ProjectPath>,\n        cx: &mut Context<Self>,\n    ) -> Task<Result<(Entity<Buffer>, lsp_store::OpenLspBufferHandle)>> {\n        let buffer = self.open_buffer(path, cx);","sourceCodeStart":3260,"sourceCodeEnd":3296,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/project/src/project.rs#L3260-L3296","documentation":"Returned by open_buffer (and similar entry points) when the project is disconnected from its remote/server counterpart (is_disconnected). Any operation requiring the remote session, like opening a buffer, fails immediately with this sentinel.","triggerScenarios":"Thrown at crates/project/src/project.rs:3265 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reconnect to the remote/collab session and retry opening the buffer"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}