Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
agent_ui: Do not show Codex wsl warning on wsl take 2 (#42096)
Lukas Wirthf08068680dcf
diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rsindex c61854132c6..717565c8486 100644--- a/crates/agent_ui/src/acp/thread_view.rs+++ b/crates/agent_ui/src/acp/thread_view.rs@@ -5769,12 +5769,7 @@ impl Render for AcpThreadView {}).children(self.render_thread_retry_status_callout(window, cx)).children({- if self- .project- .read(cx)- .remote_connection_options(cx)- .is_some_and(|it| it.is_wsl())- {+ if cfg!(windows) && self.project.read(cx).is_local() {self.render_codex_windows_warning(cx)} else {Nonediff --git a/crates/remote/src/remote_client.rs b/crates/remote/src/remote_client.rsindex 554e6ee1c49..54ec6644b9a 100644--- a/crates/remote/src/remote_client.rs+++ b/crates/remote/src/remote_client.rs@@ -1077,10 +1077,6 @@ impl RemoteConnectionOptions {RemoteConnectionOptions::Wsl(opts) => opts.distro_name.clone(),}}-- pub fn is_wsl(&self) -> bool {- matches!(self, RemoteConnectionOptions::Wsl(_))- }}impl From<SshConnectionOptions> for RemoteConnectionOptions {