Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix ACP CLI login via remote (#42647)

Richard Feldmane91be9e98e78
diff --git a/crates/project/src/agent_server_store.rs b/crates/project/src/agent_server_store.rs
index d3c078ffa10..67d3a0b8132 100644
--- a/crates/project/src/agent_server_store.rs
+++ b/crates/project/src/agent_server_store.rs
@@ -21,7 +21,7 @@ use rpc::{AnyProtoClient, TypedEnvelope, proto};
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use settings::{RegisterSetting, SettingsStore};
-use task::Shell;
+use task::{Shell, SpawnInTerminal};
use util::{ResultExt as _, debug_panic};
use crate::ProjectEnvironment;
@@ -1010,7 +1010,7 @@ impl ExternalAgentServer for RemoteExternalAgentServer {
env: Some(command.env),
},
root_dir,
- None,
+ response.login.map(SpawnInTerminal::from_proto),
))
})
}