Lightweight coding agent that runs in your terminal
Rust
fix(tui): use shared paste burst interval on Windows (#18914)
Felipe Coury36912ce3de1c
diff --git a/codex-rs/tui/src/bottom_pane/paste_burst.rs b/codex-rs/tui/src/bottom_pane/paste_burst.rsindex 510294a5f1..44e3898db6 100644--- a/codex-rs/tui/src/bottom_pane/paste_burst.rs+++ b/codex-rs/tui/src/bottom_pane/paste_burst.rs@@ -154,12 +154,7 @@ const PASTE_BURST_MIN_CHARS: u16 = 3;const PASTE_ENTER_SUPPRESS_WINDOW: Duration = Duration::from_millis(120);// Maximum delay between consecutive chars to be considered part of a paste burst.-// Windows terminals (especially VS Code integrated terminal) deliver paste events-// more slowly than native terminals, so we use a higher threshold there.-#[cfg(not(windows))]const PASTE_BURST_CHAR_INTERVAL: Duration = Duration::from_millis(8);-#[cfg(windows)]-const PASTE_BURST_CHAR_INTERVAL: Duration = Duration::from_millis(30);// Idle timeout before flushing buffered paste content.// Slower paste bursts have been observed in Windows environments.