diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-02 15:34:03 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-02 13:34:03 +0200 |
| commit | 8633a398e653eee47b375c963996c78a8a14aa48 (patch) | |
| tree | 459c5063c2560883cefd2112d725ce500c3d5a02 /src/terminal | |
| parent | 6c0bb273d5d5405a00985621b17e36f8b4d64609 (diff) | |
fix: reliably submit delayed agent prompts (#3506)
Diffstat (limited to 'src/terminal')
| -rw-r--r-- | src/terminal/runtime.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/terminal/runtime.rs b/src/terminal/runtime.rs index 025983a3..66484ea9 100644 --- a/src/terminal/runtime.rs +++ b/src/terminal/runtime.rs @@ -449,8 +449,13 @@ impl TerminalRuntime { self.0.try_send_bytes(bytes) } - pub fn send_bytes_after(&self, bytes: Bytes, delay: std::time::Duration) { - self.0.send_bytes_after(bytes, delay); + pub fn queue_user_input_submission( + &self, + text: Bytes, + enter: Bytes, + delay: std::time::Duration, + ) -> std::io::Result<std::sync::mpsc::Receiver<std::io::Result<()>>> { + self.0.queue_user_input_submission(text, enter, delay) } pub fn try_send_paste(&self, text: String) -> Result<(), mpsc::error::TrySendError<Bytes>> { |
