惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
The Cloudflare Blog
量子位
T
Tailwind CSS Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MyScale Blog
MyScale Blog
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
G
Google Developers Blog
D
DataBreaches.Net
V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
U
Unit 42
博客园 - 聂微东
有赞技术团队
有赞技术团队
A
About on SuperTechFans

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: quote Windows UI runner paths · openclaw/openclaw@4c...
steipete · 2026-04-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -80,6 +80,7 @@ Docs: https://docs.openclaw.ai

8080
8181

### Fixes

8282
83+

- UI/Windows: quote resolved pnpm `.cmd` launcher paths before spawning UI install/build/test commands so Node installs under `C:\Program Files` no longer fail as `C:\Program`. Fixes #45275. Thanks @Kobevictor, @stoppieboy, and @iubns.

8384

- Plugins/uninstall: remove tracked plugin files from their recorded managed extensions root even when the current state directory points somewhere else, so `openclaw plugins uninstall --force` does not leave the plugin discoverable. Thanks @shakkernerd.

8485

- Agents/runtime: add `agentRuntime.id` as the canonical config key, migrate

8586

legacy runtime-policy configs with `openclaw doctor --fix`, and route

Original file line numberDiff line numberDiff line change

@@ -76,6 +76,10 @@ export function assertSafeWindowsShellArgs(args, platform = process.platform) {

7676

);

7777

}

7878
79+

export function prepareSpawnCommand(cmd, platform = process.platform) {

80+

return shouldUseShellForCommand(cmd, platform) ? `"${cmd}"` : cmd;

81+

}

82+
7983

function createSpawnOptions(cmd, args, envOverride) {

8084

const useShell = shouldUseShellForCommand(cmd);

8185

if (useShell) {

@@ -92,7 +96,7 @@ function createSpawnOptions(cmd, args, envOverride) {

9296

function run(cmd, args) {

9397

let child;

9498

try {

95-

child = spawn(cmd, args, createSpawnOptions(cmd, args));

99+

child = spawn(prepareSpawnCommand(cmd), args, createSpawnOptions(cmd, args));

96100

} catch (err) {

97101

console.error(`Failed to launch ${cmd}:`, err);

98102

process.exit(1);

@@ -113,7 +117,7 @@ function run(cmd, args) {

113117

function runSync(cmd, args, envOverride) {

114118

let result;

115119

try {

116-

result = spawnSync(cmd, args, createSpawnOptions(cmd, args, envOverride));

120+

result = spawnSync(prepareSpawnCommand(cmd), args, createSpawnOptions(cmd, args, envOverride));

117121

} catch (err) {

118122

console.error(`Failed to launch ${cmd}:`, err);

119123

process.exit(1);

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,9 @@

11

import { describe, expect, it } from "vitest";

2-

import { assertSafeWindowsShellArgs, shouldUseShellForCommand } from "../../scripts/ui.js";

2+

import {

3+

assertSafeWindowsShellArgs,

4+

prepareSpawnCommand,

5+

shouldUseShellForCommand,

6+

} from "../../scripts/ui.js";

37
48

describe("scripts/ui windows spawn behavior", () => {

59

it("enables shell for Windows command launchers that require cmd.exe", () => {

@@ -14,6 +18,16 @@ describe("scripts/ui windows spawn behavior", () => {

1418

expect(shouldUseShellForCommand("/usr/local/bin/pnpm", "linux")).toBe(false);

1519

});

1620
21+

it("quotes Windows shell launcher paths before passing them to spawn", () => {

22+

expect(prepareSpawnCommand("C:\\Program Files\\nodejs\\pnpm.cmd", "win32")).toBe(

23+

'"C:\\Program Files\\nodejs\\pnpm.cmd"',

24+

);

25+

expect(prepareSpawnCommand("C:\\Program Files\\nodejs\\pnpm.exe", "win32")).toBe(

26+

"C:\\Program Files\\nodejs\\pnpm.exe",

27+

);

28+

expect(prepareSpawnCommand("/usr/local/bin/pnpm", "linux")).toBe("/usr/local/bin/pnpm");

29+

});

30+
1731

it("allows safe forwarded args when shell mode is required on Windows", () => {

1832

expect(() =>

1933

assertSafeWindowsShellArgs(["run", "build", "--filter", "@openclaw/ui"], "win32"),