From 782f91f32024d8d91a52cb3c008b125e03f1bad2 Mon Sep 17 00:00:00 2001 From: andreasp Date: Mon, 2 Feb 2026 09:11:22 +0100 Subject: [PATCH] Fix launching from WSL with fish as default shell (#48136) Closes #46801 When connecting to WSL2 with fish as the default shell, Zed gets stuck at "Starting proxy". The connection works fine when bash is the default shell. In `start_proxy()`, the WSL command was being invoked with: ```rust let proxy_process = match wsl_command_impl(&self.connection_options, "env", &proxy_args, false) ``` Changing the last argument to true invokes the WSL command with `--exec` flag which executes the command in the WSL environment without spawning a new shell. With above fix I can launch Zed from WSL (Arch) with fish. --- crates/remote/src/transport/wsl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/remote/src/transport/wsl.rs b/crates/remote/src/transport/wsl.rs index 2a1b5d5ce144421af8516154fe7869914041a743..45fbe77bd01c6ad21c745d5d63968423c6aea26c 100644 --- a/crates/remote/src/transport/wsl.rs +++ b/crates/remote/src/transport/wsl.rs @@ -362,7 +362,7 @@ impl RemoteConnection for WslRemoteConnection { } let proxy_process = - match wsl_command_impl(&self.connection_options, "env", &proxy_args, false) + match wsl_command_impl(&self.connection_options, "env", &proxy_args, true) .kill_on_drop(true) .spawn() {