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

推荐订阅源

L
LangChain Blog
B
Blog RSS Feed
阮一峰的网络日志
阮一峰的网络日志
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
MyScale Blog
MyScale Blog
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
Martin Fowler
Martin Fowler
Vercel News
Vercel News
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
Google DeepMind News
Google DeepMind News
Engineering at Meta
Engineering at Meta
云风的 BLOG
云风的 BLOG

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(qalab): resolve taskkill from system32 in cleanup pro...
vincentkoc · 2026-06-21 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -5,6 +5,7 @@ import fs from "node:fs";

55

import os from "node:os";

66

import path from "node:path";

77

import { readPluginInstallRecords } from "../../../../scripts/e2e/lib/plugin-index-sqlite.mjs";

8+

import { resolveWindowsTaskkillPath } from "../../../../scripts/lib/windows-taskkill.mjs";

89

import { createTempDirTracker } from "../../../helpers/temp-dir.js";

910
1011

const tempDirs = createTempDirTracker();

@@ -269,16 +270,17 @@ async function runCommand(command: string, args: readonly string[], options: Com

269270

}

270271

if (!useProcessGroup && child.pid) {

271272

const runTaskkill = options.taskkillImpl ?? spawnSync;

273+

const taskkillPath = resolveWindowsTaskkillPath();

272274

const args = ["/PID", String(child.pid), "/T"];

273275

if (signal === "SIGKILL") {

274276

args.push("/F");

275277

}

276-

const result = runTaskkill("taskkill", args, { stdio: "ignore", windowsHide: true });

278+

const result = runTaskkill(taskkillPath, args, { stdio: "ignore", windowsHide: true });

277279

if (!result.error && result.status === 0) {

278280

return;

279281

}

280282

if (signal !== "SIGKILL") {

281-

const forceResult = runTaskkill("taskkill", [...args, "/F"], {

283+

const forceResult = runTaskkill(taskkillPath, [...args, "/F"], {

282284

stdio: "ignore",

283285

windowsHide: true,

284286

});

Original file line numberDiff line numberDiff line change

@@ -3,6 +3,7 @@ import { EventEmitter } from "node:events";

33

import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";

44

import path from "node:path";

55

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

6+

import { resolveWindowsTaskkillPath } from "../../../../scripts/lib/windows-taskkill.mjs";

67

import { createTempDirTracker } from "../../../helpers/temp-dir.js";

78

import {

89

assertInspectLoaded,

@@ -13,6 +14,10 @@ import {

1314
1415

const tempDirs = createTempDirTracker();

1516
17+

function expectedTaskkillPath(): string {

18+

return resolveWindowsTaskkillPath();

19+

}

20+
1621

function makeTempDir(): string {

1722

return tempDirs.make("openclaw-plugin-lifecycle-probe-");

1823

}

@@ -159,14 +164,24 @@ describe("plugin lifecycle matrix probe", () => {

159164
160165

await vi.advanceTimersByTimeAsync(10);

161166
162-

expect(taskkillImpl).toHaveBeenNthCalledWith(1, "taskkill", ["/PID", "12345", "/T"], {

163-

stdio: "ignore",

164-

windowsHide: true,

165-

});

166-

expect(taskkillImpl).toHaveBeenNthCalledWith(2, "taskkill", ["/PID", "12345", "/T", "/F"], {

167-

stdio: "ignore",

168-

windowsHide: true,

169-

});

167+

expect(taskkillImpl).toHaveBeenNthCalledWith(

168+

1,

169+

expectedTaskkillPath(),

170+

["/PID", "12345", "/T"],

171+

{

172+

stdio: "ignore",

173+

windowsHide: true,

174+

},

175+

);

176+

expect(taskkillImpl).toHaveBeenNthCalledWith(

177+

2,

178+

expectedTaskkillPath(),

179+

["/PID", "12345", "/T", "/F"],

180+

{

181+

stdio: "ignore",

182+

windowsHide: true,

183+

},

184+

);

170185

expect(child.signals).toEqual([]);

171186
172187

const error = await runError;

Original file line numberDiff line numberDiff line change

@@ -11,6 +11,7 @@ import path from "node:path";

1111

import { pathToFileURL } from "node:url";

1212

import { gunzipSync } from "node:zlib";

1313

import { stripLeadingPackageManagerSeparator } from "../../../../scripts/lib/arg-utils.mjs";

14+

import { resolveWindowsTaskkillPath } from "../../../../scripts/lib/windows-taskkill.mjs";

1415
1516

type CollectorMode = "local" | "docker";

1617

type OtelLogsExporter = "otlp" | "stdout" | "both";

@@ -1338,9 +1339,13 @@ function terminateChildTree(

13381339

): void {

13391340

if (platform === "win32") {

13401341

if (typeof child.pid === "number") {

1341-

const result = runTaskkill("taskkill", ["/PID", String(child.pid), "/T", "/F"], {

1342-

stdio: "ignore",

1343-

});

1342+

const result = runTaskkill(

1343+

resolveWindowsTaskkillPath(),

1344+

["/PID", String(child.pid), "/T", "/F"],

1345+

{

1346+

stdio: "ignore",

1347+

},

1348+

);

13441349

if (result.status === 0) {

13451350

return;

13461351

}

Original file line numberDiff line numberDiff line change

@@ -8,8 +8,13 @@ import path from "node:path";

88

import { setTimeout as delay } from "node:timers/promises";

99

import { gzipSync } from "node:zlib";

1010

import { afterEach, beforeAll, describe, expect, it, vi } from "vitest";

11+

import { resolveWindowsTaskkillPath } from "../../../../scripts/lib/windows-taskkill.mjs";

1112

import { testing } from "./qa-otel-smoke-runtime.js";

1213
14+

function expectedTaskkillPath(): string {

15+

return resolveWindowsTaskkillPath();

16+

}

17+
1318

afterEach(() => {

1419

vi.unstubAllEnvs();

1520

vi.restoreAllMocks();

@@ -657,7 +662,7 @@ describe("qa-otel-smoke receiver bounds", () => {

657662

runTaskkill as never,

658663

);

659664
660-

expect(runTaskkill).toHaveBeenCalledWith("taskkill", ["/PID", "1234", "/T", "/F"], {

665+

expect(runTaskkill).toHaveBeenCalledWith(expectedTaskkillPath(), ["/PID", "1234", "/T", "/F"], {

661666

stdio: "ignore",

662667

});

663668

expect(kill).not.toHaveBeenCalled();