Skip to content

fix: respect SHELL on Windows for Git Bash#178

Merged
dkundel-openai merged 1 commit intomainfrom
codex/plugin-fix-git-bash-shell
Apr 8, 2026
Merged

fix: respect SHELL on Windows for Git Bash#178
dkundel-openai merged 1 commit intomainfrom
codex/plugin-fix-git-bash-shell

Conversation

@dkundel-openai
Copy link
Copy Markdown
Collaborator

Summary

Fix Windows Git Bash compatibility when spawning Codex-related subprocesses.

On Windows, Node’s shell: true defaults to cmd.exe, even when the user is running from Git Bash. This updates the direct app-server spawn path and shared command runner to prefer process.env.SHELL on Windows, falling back to the existing shell behavior when SHELL is not set.

Pulls the Git Bash shell fix from #148 while intentionally leaving out that PR’s unrelated full-access option change.

Fixes #138.

Changes

  • Use process.env.SHELL || true for Windows shell selection in SpawnedCodexAppServerClient
  • Use the same Windows shell selection in runCommand
  • Preserve existing non-Windows behavior: shell: false

Testing

  • npm test
    • 64/64 passing

@dkundel-openai dkundel-openai requested a review from a team April 8, 2026 02:55
@dkundel-openai dkundel-openai merged commit f17e7f8 into main Apr 8, 2026
1 check passed
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.

Codex review hangs indefinitely on Windows with Git Bash shell

1 participant