Commit 0f67a45
fix: inject Node.js bin dir into ACP child process PATH on Windows
ACP child processes spawn .cmd batch scripts (e.g. claude-agent-acp.cmd)
that internally invoke node.exe. When the host process PATH does not
include the Node.js installation directory, the child fails with
'node is not recognized as an internal or external command'.
Fix: prepend process.execPath's directory to the spawned env PATH,
with Windows-safe case-insensitive key lookup (Path vs PATH).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 0aa0876 commit 0f67a45
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
311 | 323 | | |
312 | 324 | | |
313 | 325 | | |
| |||
0 commit comments