Skip to content

fix: ensure codex app-server is started with node#135

Merged
AlexandrSuhinin merged 1 commit intomainfrom
suhinin/fix-windows-codex-starter
May 5, 2026
Merged

fix: ensure codex app-server is started with node#135
AlexandrSuhinin merged 1 commit intomainfrom
suhinin/fix-windows-codex-starter

Conversation

@AlexandrSuhinin
Copy link
Copy Markdown
Collaborator

No description provided.

: spawn(codexPath, ['app-server'], { env: spawnEnv });
} else {
const bundledCodexPath = createRequire(import.meta.url).resolve("@openai/codex/bin/codex.js");
codex = spawn(process.execPath, [bundledCodexPath, 'app-server'], {env: spawnEnv});
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

process.execPath - ensures that codex.js will be started with node.
Otherwise may lead to errors like https://youtrack.jetbrains.com/issue/LLM-27503

@AlexandrSuhinin AlexandrSuhinin requested a review from ishulgin May 5, 2026 11:30
@AlexandrSuhinin AlexandrSuhinin marked this pull request as ready for review May 5, 2026 11:31
@AlexandrSuhinin AlexandrSuhinin merged commit 9fd8246 into main May 5, 2026
5 checks passed
@AlexandrSuhinin AlexandrSuhinin deleted the suhinin/fix-windows-codex-starter branch May 5, 2026 12:00
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.

2 participants