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
@@ -464,7 +464,7 @@ describe('official spawn projection', () => {
}), 7, 'win32')
expect(spec.argv).toEqual([
'cmd.exe', '/d', '/s', '/c', '%DSH_CLAUDE_CODE_EXECUTABLE%',
'cmd.exe', '/d', '/v:off', '/s', '/c', '%DSH_CLAUDE_CODE_EXECUTABLE%',
'--output-format', 'stream-json',
])
expect(spec.env).toEqual(expect.objectContaining({