From c5c396ef2dedb2df7fdacfb6d0813e38e9e06f01 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 1a2ccbef64..0b4eed025e 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();