diff --git a/nodejs/src/client.ts b/nodejs/src/client.ts index f00821a1..b1f20f84 100644 --- a/nodejs/src/client.ts +++ b/nodejs/src/client.ts @@ -724,7 +724,7 @@ export class CopilotClient { } else if (process.platform === "win32" && !isAbsolutePath) { // On Windows, spawn doesn't search PATHEXT, so use cmd /c to resolve the executable. command = "cmd"; - spawnArgs = ["/c", `"${this.options.cliPath}"`, ...args]; + spawnArgs = ["/c", `${this.options.cliPath}`, ...args]; } else { command = this.options.cliPath; spawnArgs = args;