import fs from "node:fs/promises"; import path from "node:path"; import { beforeEach, describe, expect, it, vi } from "vitest"; import type { OpenClawConfig } from "../config/config.js"; import { resolveMainSessionKey } from "../config/sessions.js"; import { runHeartbeatOnce } from "./heartbeat-runner.js"; import {
seedSessionStore,
setupTelegramHeartbeatPluginRuntimeForTests,
withTempTelegramHeartbeatSandbox,
} from "./heartbeat-runner.test-utils.js";
const finalSize = (await fs.stat(transcriptPath)).size; // Transcript must never be truncated — entries are append-only now. // HEARTBEAT_OK entries stay in the file and are filtered at context // build time instead of being removed via fs.truncate (#39609).
expect(finalSize).toBeGreaterThanOrEqual(originalSize);
},
{ prefix: "openclaw-hb-prune-" },
);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.