mirror of
https://github.com/openai/codex.git
synced 2026-08-31 14:28:48 +00:00
## Why Windows hook commands whose executable paths contain spaces fail when their outer quotes are escaped during argument construction. ## What changed - Pass hook command strings as raw arguments to the default Windows shell. - Do the same for configured shells that use the case-insensitive `/c` flag, while retaining normal argument handling for other shells. ## Testing Add a Windows regression test that runs a quoted `.cmd` hook from a directory with spaces through both the default shell and an explicit `COMSPEC /c` shell. GitOrigin-RevId: 0e7ce44203e01d3823daaaec750c2aeadfcd34b7