mirror of
https://github.com/openai/codex.git
synced 2026-10-29 19:08:43 +00:00
Fix Windows PowerShell parser stdin
Restore the parser subprocess stdin behavior that Command::output() provided so safe PowerShell wrapper commands do not time out on Windows, and add the argument-name comments required by the stale lint failure. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -144,6 +144,9 @@ fn parse_with_powershell_ast(executable: &str, script: &str) -> PowershellParseO
|
||||
encoded_parser_script,
|
||||
])
|
||||
.env("CODEX_POWERSHELL_PAYLOAD", &encoded_script)
|
||||
// Match `Command::output()` here so PowerShell does not stay alive waiting on inherited
|
||||
// stdin after the parser script has already finished.
|
||||
.stdin(Stdio::null())
|
||||
.stdout(Stdio::piped())
|
||||
.stderr(Stdio::piped())
|
||||
.spawn()
|
||||
|
||||
Reference in New Issue
Block a user