fix(ci): repair zalouser sdk path and exec timeout kill

This commit is contained in:
Peter Steinberger
2026-04-04 04:51:16 +01:00
parent ca99ad0af8
commit f4fa53de3f
2 changed files with 11 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ export type {
ChannelGroupContext,
ChannelMessageActionAdapter,
} from "openclaw/plugin-sdk/channel-contract";
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-plugin-common";
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
export type { ChannelPlugin } from "openclaw/plugin-sdk/core";
export {
DEFAULT_ACCOUNT_ID,

View File

@@ -303,6 +303,14 @@ export async function runCommandWithTimeout(
closeFallbackTimer = null;
};
const killChild = () => {
if (settled || typeof child?.kill !== "function") {
return;
}
killIssuedByTimeout = true;
child.kill("SIGKILL");
};
const armNoOutputTimer = () => {
if (!shouldTrackOutputTimeout || settled) {
return;
@@ -313,19 +321,13 @@ export async function runCommandWithTimeout(
return;
}
noOutputTimedOut = true;
if (typeof child.kill === "function") {
killIssuedByTimeout = true;
child.kill("SIGKILL");
}
killChild();
}, Math.floor(noOutputTimeoutMs));
};
const timer = setTimeout(() => {
timedOut = true;
if (typeof child.kill === "function") {
killIssuedByTimeout = true;
child.kill("SIGKILL");
}
killChild();
}, timeoutMs);
armNoOutputTimer();