Skip to content

fix: taskkill on Windows Git Bash (MSYS path + non-English locale) (#219)#220

Open
D2758695161 wants to merge 1 commit intoopenai:mainfrom
D2758695161:fix-taskkill-msys-issue219
Open

fix: taskkill on Windows Git Bash (MSYS path + non-English locale) (#219)#220
D2758695161 wants to merge 1 commit intoopenai:mainfrom
D2758695161:fix-taskkill-msys-issue219

Conversation

@D2758695161
Copy link
Copy Markdown

Fix: taskkill Cancellation on Windows Git Bash (#219)

Problem

/codex:cancel fails to terminate background jobs on Windows Git Bash (MSYS2) due to two bugs:

  1. MSYS path conversion rewrites /PID, /T, /F arguments into Windows paths
  2. Non-English locales cause taskkill to exit with code 128, but only English messages are recognized

Solution

  1. Added MSYS_NO_PATHCONV=1 and MSYS2_ARG_CONV_EXCL="*" to disable MSYS argument path rewriting
  2. Added result.status === 128 as a locale-independent "already dead" indicator

Closes #219

Fixes two bugs in terminateProcessTree():
1. MSYS argument path conversion: Add MSYS_NO_PATHCONV=1 and MSYS2_ARG_CONV_EXCL="*" to disable MSYS path rewriting
2. Non-English locale detection: Accept exit code 128 as "already dead"

Fixes openai#219
@D2758695161 D2758695161 requested a review from a team April 14, 2026 03:51
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 20ac5c627e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@@ -1,22 +0,0 @@
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Restore accidentally deleted repository contents

This patch deletes package.json and effectively removes the rest of the plugin repository (workflows, commands, tests, and supporting scripts), leaving only plugins/codex/scripts/lib/process.mjs in the commit tree. That makes the project non-buildable and non-testable, which is a release-blocking regression unrelated to the stated taskkill fix.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix taskkill cancellation on Windows Git Bash (MSYS path mangling + non-English locale)

1 participant