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 <me@lukaswirth.dev>
This commit is contained in:
John TurandLukas Wirth authored and GitHub committed 2026-01-26 15:23:35 +00:00
1 parent 7ea04b7b00
commit c5c396ef2d
1 file changed
+1 -1
+1 -1
View File
@@ -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();