Merge pull request #1212 from longmaba/fix/ui-build-windows-spawn
fix(ui): enable shell mode for spawn on Windows
This commit is contained in:
@@ -13,6 +13,7 @@ Docs: https://docs.clawd.bot
|
|||||||
- TUI: add syntax highlighting for code blocks. (#1200) — thanks @vignesh07.
|
- TUI: add syntax highlighting for code blocks. (#1200) — thanks @vignesh07.
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
- UI: enable shell mode for sync Windows spawns to avoid `pnpm ui:build` EINVAL. (#1212) — thanks @longmaba.
|
||||||
- Plugins: surface plugin load/register/config errors in gateway logs with plugin/source context.
|
- Plugins: surface plugin load/register/config errors in gateway logs with plugin/source context.
|
||||||
- Agents: propagate accountId into embedded runs so sub-agent announce routing honors the originating account. (#1058)
|
- Agents: propagate accountId into embedded runs so sub-agent announce routing honors the originating account. (#1058)
|
||||||
- Compaction: include tool failure summaries in safeguard compaction to prevent retry loops. (#1084)
|
- Compaction: include tool failure summaries in safeguard compaction to prevent retry loops. (#1084)
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ function run(cmd, args) {
|
|||||||
cwd: uiDir,
|
cwd: uiDir,
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
env: process.env,
|
env: process.env,
|
||||||
|
shell: process.platform === "win32",
|
||||||
});
|
});
|
||||||
child.on("exit", (code, signal) => {
|
child.on("exit", (code, signal) => {
|
||||||
if (signal) process.exit(1);
|
if (signal) process.exit(1);
|
||||||
@@ -67,6 +68,7 @@ function runSync(cmd, args, envOverride) {
|
|||||||
cwd: uiDir,
|
cwd: uiDir,
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
env: envOverride ?? process.env,
|
env: envOverride ?? process.env,
|
||||||
|
shell: process.platform === "win32",
|
||||||
});
|
});
|
||||||
if (result.signal) process.exit(1);
|
if (result.signal) process.exit(1);
|
||||||
if ((result.status ?? 1) !== 0) process.exit(result.status ?? 1);
|
if ((result.status ?? 1) !== 0) process.exit(result.status ?? 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user