Skip to content

Fix inverted Windows PTY TerminateProcess handling#13989

Merged
etraut-openai merged 3 commits intomainfrom
codex/assess-codex-issue-13945
Mar 8, 2026
Merged

Fix inverted Windows PTY TerminateProcess handling#13989
etraut-openai merged 3 commits intomainfrom
codex/assess-codex-issue-13945

Conversation

@etraut-openai
Copy link
Collaborator

@etraut-openai etraut-openai commented Mar 8, 2026

Addresses #13945

The vendored WezTerm ConPTY backend in codex-rs/utils/pty/src/win/mod.rs treated TerminateProcess return values backwards: nonzero success was handled as failure, and 0 failure was handled as success.

This is likely causing a number of bugs reported against Codex running on Windows native where processes are not cleaned up.

@etraut-openai etraut-openai changed the title Fix Codex issue 13945 regression Fix inverted Windows PTY TerminateProcess handling Mar 8, 2026
@etraut-openai
Copy link
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. Can't wait for the next one!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@etraut-openai etraut-openai merged commit a30edb6 into main Mar 8, 2026
31 checks passed
@etraut-openai etraut-openai deleted the codex/assess-codex-issue-13945 branch March 8, 2026 17:52
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants