mirror of
https://github.com/openai/codex.git
synced 2026-11-13 21:30:47 +00:00
## Why MXC launch errors omit the native Windows error code, while the SDK diagnostics can contain command, environment, and working-directory data. ## What changed Extract the numeric error code from recognized `CreateProcessW` failures and append it to the launch error without exposing the remaining SDK diagnostics. Preserve the existing error message when no code can be extracted. ## Testing Add unit tests for extracting the code without trailing diagnostics and rejecting nonnumeric codes and errors from other APIs. GitOrigin-RevId: ddfa6635ab4fe9293ab4d31f9fcd7cfe563d4928