diff --git a/gitnexus/src/cli/setup.ts b/gitnexus/src/cli/setup.ts index 312432971..16c6303f9 100644 --- a/gitnexus/src/cli/setup.ts +++ b/gitnexus/src/cli/setup.ts @@ -268,7 +268,11 @@ async function setupCodex(result: SetupResult): Promise { try { const entry = getMcpEntry(); - await execFileAsync('codex', ['mcp', 'add', 'gitnexus', '--', entry.command, ...entry.args]); + await execFileAsync( + 'codex', + ['mcp', 'add', 'gitnexus', '--', entry.command, ...entry.args], + { shell: process.platform === 'win32' } + ); result.configured.push('Codex'); return; } catch {