app-server: flush stdio responses

This commit is contained in:
Michael Bolin
2026-04-21 20:34:53 -07:00
parent a978e411f6
commit 04d83c97b2
@@ -90,6 +90,10 @@ pub(crate) async fn start_stdio_connection(
error!("Failed to write to stdout: {err}");
break;
}
if let Err(err) = stdout.flush().await {
error!("Failed to flush stdout: {err}");
break;
}
if let Some(write_complete_tx) = queued_message.write_complete_tx {
let _ = write_complete_tx.send(());
}