project: Do not send UpdateProject message on remote server spawn (#47633)

The client has not yet setup its own side of things so the message will
always error as being unhandled anyways.

Release Notes:

- N/A *or* Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth authored and GitHub committed 2026-01-26 09:21:12 +00:00
1 parent 4462e34e8f
commit f5d13701d7
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -913,7 +913,13 @@ impl WorktreeStore {
}
}
}
self.send_project_updates(cx);
// Only send project updates if we share in a collaborative mode.
// Otherwise we are the remote server which is currently constructing
// worktree store before the client actually has set up its message
// handlers.
if remote_id != REMOTE_SERVER_PROJECT_ID {
self.send_project_updates(cx);
}
}
pub fn unshared(&mut self, cx: &mut Context<Self>) {
+1 -1
View File
@@ -842,7 +842,7 @@ impl RemoteClient {
}
}
} else if exit_code > 0 {
log::error!("proxy process terminated unexpectedly");
log::error!("proxy process terminated unexpectedly: {exit_code}");
this.update(cx, |this, cx| {
this.reconnect(cx).ok();
})?;