assistant: Enable assistant panel/inline assists in ssh remote projects (#18367)

Piotr Osiewicz created

Release Notes:

- ssh remoting: Enable assistant panel and inline assists (running on
client)

Change summary

crates/assistant/src/assistant_panel.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Detailed changes

crates/assistant/src/assistant_panel.rs 🔗

@@ -960,7 +960,8 @@ impl AssistantPanel {
     }
 
     fn new_context(&mut self, cx: &mut ViewContext<Self>) -> Option<View<ContextEditor>> {
-        if self.project.read(cx).is_via_collab() {
+        let project = self.project.read(cx);
+        if project.is_via_collab() && project.dev_server_project_id().is_none() {
             let task = self
                 .context_store
                 .update(cx, |store, cx| store.create_remote_context(cx));