Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

fix(pty): keep waiting through a signal on macOS

RoversXef07cc71be89
diff --git a/pty/src/unix.rs b/pty/src/unix.rs
index 2d02feb2..b0f356da 100644
--- a/pty/src/unix.rs
+++ b/pty/src/unix.rs
@@ -121,7 +121,8 @@ fn wait_pty(fd: &FileDescriptor, events: i16) -> io::Result<()> {
loop {
match filedescriptor::poll(&mut fds, None) {
Ok(_) => return Ok(()),
- Err(filedescriptor::Error::Poll(error))
+ // Io is what select reports it as, which is what poll is on macOS.
+ Err(filedescriptor::Error::Poll(error) | filedescriptor::Error::Io(error))
if error.kind() == io::ErrorKind::Interrupted =>
{
()