Skip to content

fix: update bin/codex.js so it listens for exit on the child process - #1590

Merged
bolinfest merged 1 commit into
mainfrom
pr1590
Jul 16, 2025
Merged

bolinfest merged 1 commit into
mainfrom
pr1590

Conversation

@bolinfest

@bolinfest bolinfest commented Jul 16, 2025 •

Copy link
Copy Markdown
Collaborator

When Codex CLI is installed via npm, we use a .js wrapper script to launch the Rust binary.

  • Previously, we were not listening for signals to ensure that killing the Node.js process would also kill the underlying Rust process.
  • We also did not have a proper exit handler in place on the child process to ensure we exited from the Node.js process.

This PR fixes these things and hopefully addresses #1570.

This also adds logic so that Windows falls back to the TypeScript CLI again, which should address #1573.

@bolinfest
bolinfest merged commit d3dbc10 into main Jul 16, 2025
@bolinfest
bolinfest deleted the pr1590 branch July 16, 2025 23:35
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 16, 2025
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.

1 participant