fix(subagent): disable delayed expansion for Claude shims

This commit is contained in:
pku-xht
2026-08-10 14:12:22 +08:00
parent bec5721f0c
commit d507894d43
9 changed files with 17 additions and 15 deletions
@@ -58,7 +58,7 @@ export function claudeSpawnSpec(
const batchShim = platform === 'win32' && (extension === '.cmd' || extension === '.bat')
const env = sdkEnvironmentOverlay(options.env)
const argv = batchShim
? ['cmd.exe', '/d', '/s', '/c', `%${WINDOWS_BATCH_EXECUTABLE_ENV}%`, ...options.args]
? ['cmd.exe', '/d', '/v:off', '/s', '/c', `%${WINDOWS_BATCH_EXECUTABLE_ENV}%`, ...options.args]
: [options.command, ...options.args]
if (batchShim) env[WINDOWS_BATCH_EXECUTABLE_ENV] = `"${options.command}"`
return {