mirror of
https://github.com/openai/codex.git
synced 2026-05-01 03:42:05 +03:00
feat: fallback unified_exec to shell_command (#8075)
This commit is contained in:
@@ -43,7 +43,12 @@ impl ToolsConfig {
|
||||
let shell_type = if !features.enabled(Feature::ShellTool) {
|
||||
ConfigShellToolType::Disabled
|
||||
} else if features.enabled(Feature::UnifiedExec) {
|
||||
ConfigShellToolType::UnifiedExec
|
||||
// If ConPTY not supported (for old Windows versions), fallback on ShellCommand.
|
||||
if codex_utils_pty::conpty_supported() {
|
||||
ConfigShellToolType::UnifiedExec
|
||||
} else {
|
||||
ConfigShellToolType::ShellCommand
|
||||
}
|
||||
} else {
|
||||
model_family.shell_type
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user