fix(i18n): resolve taskkill in control ui runner · openclaw/openclaw@282eb74
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,6 +8,7 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
8 | 8 | import { completeSimple, type AssistantMessage, type Model } from "openclaw/plugin-sdk/llm"; |
9 | 9 | import * as ts from "typescript"; |
10 | 10 | import { formatErrorMessage } from "../src/infra/errors.ts"; |
| 11 | +import { resolveWindowsTaskkillPath } from "./lib/windows-taskkill.mjs"; |
11 | 12 | |
12 | 13 | interface TranslationMap { |
13 | 14 | [key: string]: string | TranslationMap; |
@@ -1048,7 +1049,7 @@ export async function runProcess(
|
1048 | 1049 | if (force) { |
1049 | 1050 | taskkillArgs.push("/F"); |
1050 | 1051 | } |
1051 | | -const result = spawnSync("taskkill.exe", taskkillArgs, { stdio: "ignore" }); |
| 1052 | +const result = spawnSync(resolveWindowsTaskkillPath(), taskkillArgs, { stdio: "ignore" }); |
1052 | 1053 | return result.status === 0; |
1053 | 1054 | }; |
1054 | 1055 | const signalChild = (signal: NodeJS.Signals) => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。