From 65b86909dd903033aafa9a0bd5becc44afa58a3a Mon Sep 17 00:00:00 2001 From: magicedy Date: Sat, 11 Oct 2025 21:12:44 +0800 Subject: [PATCH] launch the bridge through `process.execPath` so Node runs the `.mjs` script consistently on every platform --- src/codex/runCodex.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codex/runCodex.ts b/src/codex/runCodex.ts index 62b4b5fd..e7f5e4c0 100644 --- a/src/codex/runCodex.ts +++ b/src/codex/runCodex.ts @@ -538,8 +538,8 @@ export async function runCodex(opts: { const bridgeCommand = join(projectPath(), 'bin', 'happy-mcp.mjs'); const mcpServers = { happy: { - command: bridgeCommand, - args: ['--url', happyServer.url] + command: process.execPath, + args: [bridgeCommand, '--url', happyServer.url] } } as const; let first = true;