From 2d45c23fb0daf0d00baccbd1c8ad5bf5e9d02900 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Thu, 6 Nov 2025 19:18:19 +0100 Subject: [PATCH] remote: Flush to stdin when writing to sftp 2 (#42126) https://github.com/zed-industries/zed/pull/42103#issuecomment-3498137130 Release Notes: - N/A *or* Added/Fixed/Improved ... --- 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 a8e4245b4352ec06ff285d772550993172173d78..433c4b017aac81b73b15d388518e6349632435f6 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?;