Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix ACP extension root dir (#42131)
Richard Feldmand21184b1d3f8
diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rsindex 717565c8486..e6aab8c52ad 100644--- a/crates/agent_ui/src/acp/thread_view.rs+++ b/crates/agent_ui/src/acp/thread_view.rs@@ -538,14 +538,7 @@ impl AcpThreadView {}).log_err()} else {- let root_dir = if let Some(acp_agent) = connection- .clone()- .downcast::<agent_servers::AcpConnection>()- {- acp_agent.root_dir().into()- } else {- root_dir.unwrap_or(paths::home_dir().as_path().into())- };+ let root_dir = root_dir.unwrap_or(paths::home_dir().as_path().into());cx.update(|_, cx| {connection.clone()