



























@@ -5,6 +5,7 @@ import { join } from "node:path";
55import { setTimeout as delay } from "node:timers/promises";
66import { describe, expect, it } from "vitest";
77import {
8+agentOutputHasExpectedOkMarker,
89buildWindowsDevUpdateToolchainCheckScript,
910buildWindowsFreshShellVersionCheckScript,
1011buildWindowsPathBootstrapScript,
@@ -37,6 +38,27 @@ import {
3738} from "../../scripts/openclaw-cross-os-release-checks.ts";
38393940describe("scripts/openclaw-cross-os-release-checks", () => {
41+it("accepts OK agent output from the captured log when stdout is empty", () => {
42+const dir = mkdtempSync(join(tmpdir(), "openclaw-cross-os-agent-output-"));
43+try {
44+const logPath = join(dir, "agent.log");
45+writeFileSync(
46+logPath,
47+[
48+"2026-04-24T15:00:00.000Z command stdout",
49+JSON.stringify({
50+finalAssistantVisibleText: "OK",
51+payloads: [{ type: "text", text: "OK" }],
52+}),
53+].join("\n"),
54+);
55+56+expect(agentOutputHasExpectedOkMarker("", { logPath })).toBe(true);
57+} finally {
58+rmSync(dir, { recursive: true, force: true });
59+}
60+});
61+4062it("treats explicit empty-string args as values instead of boolean flags", () => {
4163expect(parseArgs(["--ubuntu-runner", "", "--mode", "both"])).toEqual({
4264"ubuntu-runner": "",
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。