fix(cli): run codex mcp add via shell on Windows

This commit is contained in:
Dmytro 2026-02-27 14:01:10 +01:00
parent 984316d260
commit 2915e60630

View file

@ -268,7 +268,11 @@ async function setupCodex(result: SetupResult): Promise<void> {
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 {