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:
Ahmed Ibrahim
2026-03-17 00:47:00 +00:00
co-authored by Codex
parent 27654cc6d7
commit c144932603
3 changed files with 16 additions and 9 deletions
@@ -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()