From f08068680dcfd5e340bf7c6b6880b8f184ab2b0d Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Thu, 6 Nov 2025 13:15:17 +0100 Subject: [PATCH] agent_ui: Do not show Codex wsl warning on wsl take 2 (#42096) https://github.com/zed-industries/zed/pull/42079#discussion_r2498472887 Release Notes: - N/A *or* Added/Fixed/Improved ... --- crates/agent_ui/src/acp/thread_view.rs | 7 +------ crates/remote/src/remote_client.rs | 4 ---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rs index c61854132c68792e85d09d706fd63fd3b8110743..717565c8486b79e3223a98fcf5e8ba8379fd0ae9 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 { None diff --git a/crates/remote/src/remote_client.rs b/crates/remote/src/remote_client.rs index 554e6ee1c496fe9fcef47203c2c657fc9ac24079..54ec6644b9abef23446aaf0f8ddd21c0da6bdf05 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 for RemoteConnectionOptions {