You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(terminal): add fd sanity check and handle Disconnected vs Timeout
- PtyWriter::new: add runtime fd >= 0 check after extraction from Box<File>
- PtyWriter::new: add compile-time const asserting Box<File> is 8 bytes (thin ptr)
- terminal_write: replace recv_timeout map_err with explicit match to
distinguish RecvTimeoutError::Timeout ("terminal_write_timeout") from
RecvTimeoutError::Disconnected ("terminal_stdin_closed")
- PtyWriteRequest.result_tx: switch from std::sync::mpsc::Sender to
crossbeam_channel::Sender so the local result_rx can use crossbeam,
enabling RecvTimeoutError::Timeout/Disconnected discrimination
- Add crossbeam-channel = "0.5" to Cargo.toml
0 commit comments