zed-industries/zed · error
The host (v ) and guest (v ) are using incompatible…
Error message
The host (v{}) and guest (v{}) are using incompatible versions of Zed. The peer with the older version must update to collaborate. What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/collab/src/rpc.rs:1991 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@9d272b0363 (2026-08-20).
Data as JSON: /api/errors/22128650b238bd9b.
Report an issue: GitHub.
Appendix: source
Thrown at crates/collab/src/rpc.rs:1998
tracing::info!(%project_id, "join project");
let db = session.db().await;
let project_model = db.get_project(project_id).await?;
let host_features: Vec<String> =
serde_json::from_str(&project_model.features).unwrap_or_default();
let guest_features: HashSet<_> = request.features.iter().collect();
let host_features_set: HashSet<_> = host_features.iter().collect();
if guest_features != host_features_set {
let host_connection_id = project_model.host_connection()?;
let mut pool = session.connection_pool().await;
let host_version = pool
.connection(host_connection_id)
.map(|c| c.zed_version.to_string());
let guest_version = pool
.connection(session.connection_id)
.map(|c| c.zed_version.to_string());
drop(pool);
Err(anyhow!(
"The host (v{}) and guest (v{}) are using incompatible versions of Zed. The peer with the older version must update to collaborate.",
host_version.as_deref().unwrap_or("unknown"),
guest_version.as_deref().unwrap_or("unknown"),
))?;
}
let (project, replica_id) = &mut *db
.join_project(
project_id,
session.connection_id,
session.user_id(),
request.committer_name.clone(),
request.committer_email.clone(),
)
.await?;
drop(db);
View on GitHub (pinned to 9d272b0363)