{"record":{"id":"22128650b238bd9b","repo":"zed-industries/zed","slug":"the-host-v-and-guest-v-are-using-incompati","errorCode":null,"errorMessage":"The host (v{}) and guest (v{}) are using incompatible versions of Zed. The peer with the older version must update to collaborate.","messagePattern":"The host \\(v(.+?)\\) and guest \\(v(.+?)\\) are using incompatible versions of Zed\\. The peer with the older version must update to collaborate\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/collab/src/rpc.rs","lineNumber":1998,"sourceCode":"\n    tracing::info!(%project_id, \"join project\");\n\n    let db = session.db().await;\n    let project_model = db.get_project(project_id).await?;\n    let host_features: Vec<String> =\n        serde_json::from_str(&project_model.features).unwrap_or_default();\n    let guest_features: HashSet<_> = request.features.iter().collect();\n    let host_features_set: HashSet<_> = host_features.iter().collect();\n    if guest_features != host_features_set {\n        let host_connection_id = project_model.host_connection()?;\n        let mut pool = session.connection_pool().await;\n        let host_version = pool\n            .connection(host_connection_id)\n            .map(|c| c.zed_version.to_string());\n        let guest_version = pool\n            .connection(session.connection_id)\n            .map(|c| c.zed_version.to_string());\n        drop(pool);\n        Err(anyhow!(\n            \"The host (v{}) and guest (v{}) are using incompatible versions of Zed. The peer with the older version must update to collaborate.\",\n            host_version.as_deref().unwrap_or(\"unknown\"),\n            guest_version.as_deref().unwrap_or(\"unknown\"),\n        ))?;\n    }\n\n    let (project, replica_id) = &mut *db\n        .join_project(\n            project_id,\n            session.connection_id,\n            session.user_id(),\n            request.committer_name.clone(),\n            request.committer_email.clone(),\n        )\n        .await?;\n    drop(db);\n","sourceCodeStart":1980,"sourceCodeEnd":2016,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/collab/src/rpc.rs#L1980-L2016","documentation":"join_project compares the feature set the guest advertised with the host's recorded features; a mismatch means host and guest run protocol-incompatible Zed versions. The message reports both versions and instructs the older peer to update before collaboration is allowed.","triggerScenarios":"Thrown at crates/collab/src/rpc.rs:1991 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Update Zed on the machine reporting the older version to at least the peer's version","Retry joining after both peers run compatible releases"],"exampleFix":null,"handlingStrategy":"validation","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-23T08:17:48.524Z"}