From 07ffb179910629e4a2520ca1255b91bf6fc6a2e3 Mon Sep 17 00:00:00 2001 From: "zed-zippy[bot]" <234243425+zed-zippy[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 21:34:08 +0000 Subject: [PATCH] remote: Flush to stdin when writing to sftp (#42103) (cherry-pick to preview) (#42361) Cherry-pick of #42103 to preview ---- https://github.com/zed-industries/zed/issues/42027#issuecomment-3497210172 Release Notes: - Fixed ssh remoting potentially failing due to not flushing stdin to sftp 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 ad9cb3e91623bdc34ce012c87933202f87399815..133655781de297f1cf69c906dccb567d048a8e54 100644 --- a/crates/remote/src/transport/ssh.rs +++ b/crates/remote/src/transport/ssh.rs @@ -850,7 +850,7 @@ impl SshRemoteConnection { if let Some(mut stdin) = child.stdin.take() { use futures::AsyncWriteExt; stdin.write_all(sftp_batch.as_bytes()).await?; - drop(stdin); + stdin.flush().await?; } let output = child.output().await?;