mirror of
https://github.com/openai/codex.git
synced 2026-11-28 23:34:06 +00:00
feat: fallback unified_exec to shell_command (#8075)
This commit is contained in:
1 parent
4897efcced
commit
813bdb9010
4 files changed
+59
-1
No files matched your search
@@ -133,6 +133,15 @@ pub struct SpawnedPty {
|
||||
pub exit_rx: oneshot::Receiver<i32>,
|
||||
}
|
||||
|
||||
#[allow(unreachable_code)]
|
||||
pub fn conpty_supported() -> bool {
|
||||
// Annotation required because `win` can't be compiled on other OS.
|
||||
#[cfg(windows)]
|
||||
return win::conpty_supported();
|
||||
|
||||
true
|
||||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
fn platform_native_pty_system() -> Box<dyn portable_pty::PtySystem + Send> {
|
||||
Box::new(win::ConPtySystem::default())
|
||||
|
||||
Reference in new issue
Block a user