fix(subagent): quote Windows Claude batch paths

This commit is contained in:
pku-xht
2026-08-10 13:55:24 +08:00
parent af1894eaef
commit bec5721f0c
8 changed files with 22 additions and 14 deletions

View File

@@ -464,9 +464,12 @@ describe('official spawn projection', () => {
}), 7, 'win32')
expect(spec.argv).toEqual([
'cmd.exe', '/d', '/s', '/c', command,
'cmd.exe', '/d', '/s', '/c', '%DSH_CLAUDE_CODE_EXECUTABLE%',
'--output-format', 'stream-json',
])
expect(spec.env).toEqual(expect.objectContaining({
DSH_CLAUDE_CODE_EXECUTABLE: `"${command}"`,
}))
})
it('projects streams, exit facts, listeners, and idempotent tree termination', async () => {