Fix: Daemon startup and Qwen CLI path for Windows

This commit is contained in:
admin
2026-02-26 02:28:06 +04:00
Unverified
parent 80cdad994c
commit c9799c1eac
6 changed files with 358 additions and 180 deletions

View File

@@ -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([