remote: Fix being unable to reconnect when the remote server dies (#47200)

Closes https://github.com/zed-industries/zed/issues/38522

Release Notes:

- Fixed remote connections getting stuck in limbo when the server side
dies unexpectedly
02a19f7a74Lukas Wirth committed on 1/20/2026, 10:44:29 AM· committed by GitHubparent89e9ab9
8 files changedLine totals unavailable