From e49dd8ba371d2c55c917fe6cf8bb919554051bc6 Mon Sep 17 00:00:00 2001 From: John Tur Date: Mon, 26 Jan 2026 10:23:35 -0500 Subject: [PATCH] Fix Zed not entering disconnected state when remote proxy dies (#47659) When I kill the remote proxy, it seems like `ssh` exits with code -1. Since that's less than or equal to 0, this means we don't try to restart the connection. The proxy really shouldn't exit for any reason, so let's get rid of this check altogether. Release Notes: - N/A Co-authored-by: Lukas Wirth --- crates/remote/src/remote_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/remote/src/remote_client.rs b/crates/remote/src/remote_client.rs index 1a2ccbef648b3e12c8606b2d3550d430751daacc..0b4eed025e6c1e47e979af108514485c32aaccae 100644 --- a/crates/remote/src/remote_client.rs +++ b/crates/remote/src/remote_client.rs @@ -841,7 +841,7 @@ impl RemoteClient { })?; } } - } else if exit_code > 0 { + } else { log::error!("proxy process terminated unexpectedly: {exit_code}"); this.update(cx, |this, cx| { this.reconnect(cx).ok();