fix: enable shell option for Windows process spawning in ACP transport

close #49
This commit is contained in:
weishu
2026-01-10 21:53:53 +08:00
parent 40b0055a33
commit c659446fc1
@@ -47,7 +47,8 @@ export class AcpStdioTransport {
}) {
this.process = spawn(options.command, options.args ?? [], {
env: options.env,
stdio: ['pipe', 'pipe', 'pipe']
stdio: ['pipe', 'pipe', 'pipe'],
shell: process.platform === 'win32'
});
this.process.stdout.setEncoding('utf8');