From c21c47e8eff2d9a8f9458a897d8ff4e4bb8ffc39 Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Fri, 7 Nov 2025 13:28:41 +0100 Subject: [PATCH] remote: Flush to stdin when writing to sftp 2 (#42126) (cherry-pick to preview) (#42187) Cherry-pick of #42126 to preview ---- https://github.com/zed-industries/zed/pull/42103#issuecomment-3498137130 Release Notes: - N/A *or* Added/Fixed/Improved ... Co-authored-by: Lukas Wirth --- crates/remote/src/transport/ssh.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/remote/src/transport/ssh.rs b/crates/remote/src/transport/ssh.rs index 70f1fd5e11bd0827f98be70a92e4338b75cef639..ad9cb3e91623bdc34ce012c87933202f87399815 100644 --- a/crates/remote/src/transport/ssh.rs +++ b/crates/remote/src/transport/ssh.rs @@ -306,7 +306,7 @@ impl RemoteConnection for SshRemoteConnection { use futures::AsyncWriteExt; let sftp_batch = format!("put -r {src_path_display} {dest_path_str}\n"); stdin.write_all(sftp_batch.as_bytes()).await?; - drop(stdin); + stdin.flush().await?; } let output = child.output().await?;