the runtime your coding agents live on
Rust agentagent-orchestrationaiai-agentsclaude-codeclicodexcoding-agentsdeveloper-toolsdevtoolsmultiplexerrustterminalterminal-multiplexerterminal-uitmuxtuiworkspace-manager
fix: deflake windows endpoint flush drain test (#4021)
JJ Liebig3b9f58b70ed5
diff --git a/src/client/endpoint/writer.rs b/src/client/endpoint/writer.rsindex 56c472cd3..f7d67454a 100644--- a/src/client/endpoint/writer.rs+++ b/src/client/endpoint/writer.rs@@ -373,16 +373,18 @@ mod tests {done.send((first, second)).unwrap();});let input = ClientMessage::Input {- data: vec![b'x'; 1024 * 1024],+ // Comfortably above MAX_BATCH_BYTES, but small enough that the polling peer's+ // Windows 2ms read cadence drains it well within the flush deadline under CI load.+ data: vec![b'x'; 256 * 1024],};transport.send(&input).unwrap();transport.send(&ClientMessage::Detach).unwrap();// Large-frame correctness must not depend on the registry's short exit grace period.transport- .flush(Instant::now() + Duration::from_secs(10))+ .flush(Instant::now() + Duration::from_secs(30)).unwrap();drop(transport);- let (first, second) = received.recv_timeout(Duration::from_secs(10)).unwrap();+ let (first, second) = received.recv_timeout(Duration::from_secs(30)).unwrap();assert_eq!(first, input);assert_eq!(second, ClientMessage::Detach);reader.join().unwrap();