From 2915e60630ac667fbeab48d12345d12f6bbc996c Mon Sep 17 00:00:00 2001 From: Dmytro Date: Fri, 27 Feb 2026 14:01:10 +0100 Subject: [PATCH] fix(cli): run codex mcp add via shell on Windows --- gitnexus/src/cli/setup.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 {