Fix: Daemon startup and Qwen CLI path for Windows
This commit is contained in:
@@ -67,10 +67,14 @@ async function runQwenOnce(
|
||||
const args = [...baseArgs];
|
||||
if (model.trim()) args.push("--model", model.trim());
|
||||
|
||||
const proc = Bun.spawn(args, {
|
||||
// Use qwen.cmd on Windows for proper execution
|
||||
const qwenCommand = process.platform === "win32" ? "qwen.cmd" : "qwen";
|
||||
|
||||
const proc = Bun.spawn([qwenCommand, ...args], {
|
||||
stdout: "pipe",
|
||||
stderr: "pipe",
|
||||
env: buildChildEnv(baseEnv, model, api),
|
||||
shell: true,
|
||||
});
|
||||
|
||||
const [rawStdout, stderr] = await Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user