diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-05 02:38:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-05 02:38:14 +0200 |
| commit | 7916be1656d8ee9c5882b52753cd47f5e58e3e7e (patch) | |
| tree | d54015e01ecff6566bad26034ada4e8cca3d3edf /src/pane.rs | |
| parent | 987651a760cdfe4cd9493388e8c16b8f99643a05 (diff) | |
fix: make Windows Codex prompt delay size-aware (#3552)
refs #3187
Diffstat (limited to 'src/pane.rs')
| -rw-r--r-- | src/pane.rs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/pane.rs b/src/pane.rs index b7bd30bc..4f1ea0ad 100644 --- a/src/pane.rs +++ b/src/pane.rs @@ -1392,11 +1392,21 @@ impl PaneRuntimeIo { text: Bytes, enter: Bytes, delay: std::time::Duration, + deadline: Option<std::time::Instant>, ) -> std::io::Result<std::sync::mpsc::Receiver<std::io::Result<()>>> { match self { - PaneRuntimeIo::Actor(actor) => actor.queue_user_input_submission(text, enter, delay), + PaneRuntimeIo::Actor(actor) => { + #[cfg(windows)] + return actor.queue_user_input_submission(text, enter, delay, deadline); + #[cfg(unix)] + { + let _ = deadline; + actor.queue_user_input_submission(text, enter, delay) + } + } #[cfg(test)] PaneRuntimeIo::TestChannel { sender, .. } => { + let _ = deadline; let sender = sender.clone(); let (reply_tx, reply_rx) = std::sync::mpsc::channel(); std::thread::spawn(move || { @@ -3112,8 +3122,10 @@ impl PaneRuntime { text: Bytes, enter: Bytes, delay: std::time::Duration, + deadline: Option<std::time::Instant>, ) -> std::io::Result<std::sync::mpsc::Receiver<std::io::Result<()>>> { - self.io.queue_user_input_submission(text, enter, delay) + self.io + .queue_user_input_submission(text, enter, delay, deadline) } pub fn try_send_paste(&self, text: String) -> Result<(), mpsc::error::TrySendError<Bytes>> { |
