From ab33190f6f76cbced25f06abe2e82eb9ceaf49d6 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 21:17:07 +0100 Subject: [PATCH] test: remove stale transcript jsonl wording --- .../pi-embedded-runner/tool-result-char-estimator.test.ts | 4 ++-- src/auto-reply/reply/commands-core.test.ts | 2 +- src/auto-reply/reply/commands-export-session.test.ts | 2 +- src/config/sessions/transcript.test.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/agents/pi-embedded-runner/tool-result-char-estimator.test.ts b/src/agents/pi-embedded-runner/tool-result-char-estimator.test.ts index d989578bdf3..c31987d4e4f 100644 --- a/src/agents/pi-embedded-runner/tool-result-char-estimator.test.ts +++ b/src/agents/pi-embedded-runner/tool-result-char-estimator.test.ts @@ -11,8 +11,8 @@ import { * See https://github.com/openclaw/openclaw/issues/34979 * * A plugin tool handler returning undefined produces {type: "text"} (no text - * property) in the session JSONL. Without guards, this crashes the char - * estimator with: TypeError: Cannot read properties of undefined (reading 'length') + * property) in the persisted session transcript. Without guards, this crashes + * the char estimator with: TypeError: Cannot read properties of undefined (reading 'length') */ describe("tool-result-char-estimator", () => { it("uses the unknown-block fallback for malformed text blocks", () => { diff --git a/src/auto-reply/reply/commands-core.test.ts b/src/auto-reply/reply/commands-core.test.ts index 6f222a333ff..62cfea5b8fa 100644 --- a/src/auto-reply/reply/commands-core.test.ts +++ b/src/auto-reply/reply/commands-core.test.ts @@ -132,7 +132,7 @@ describe("emitResetCommandHooks", () => { ); }); - it("uses scoped SQLite transcript events for before_reset when JSONL is missing", async () => { + it("uses scoped SQLite transcript events for before_reset without legacy JSONL input", async () => { sqliteTranscriptMocks.hasSqliteSessionTranscriptEvents.mockReturnValue(true); sqliteTranscriptMocks.exportSqliteSessionTranscriptJsonl.mockReturnValue( `${JSON.stringify({ diff --git a/src/auto-reply/reply/commands-export-session.test.ts b/src/auto-reply/reply/commands-export-session.test.ts index b268155a118..3aa6693a90d 100644 --- a/src/auto-reply/reply/commands-export-session.test.ts +++ b/src/auto-reply/reply/commands-export-session.test.ts @@ -272,7 +272,7 @@ describe("buildExportSessionReply", () => { expect(html).toContain('const base64 = document.getElementById("session-data").textContent;'); }); - it("exports from scoped SQLite transcript events when the JSONL file is missing", async () => { + it("exports from scoped SQLite transcript events without a legacy JSONL file", async () => { const { buildExportSessionReply } = await import("./commands-export-session.js"); hoisted.pathExistsMock.mockResolvedValue(false); hoisted.hasSqliteSessionTranscriptEventsMock.mockReturnValue(true); diff --git a/src/config/sessions/transcript.test.ts b/src/config/sessions/transcript.test.ts index 8225e25cf8a..c291f8afcd2 100644 --- a/src/config/sessions/transcript.test.ts +++ b/src/config/sessions/transcript.test.ts @@ -512,7 +512,7 @@ describe("appendAssistantMessageToSessionTranscript", () => { }); }); - it("appends scoped SQLite transcript entries without importing JSONL at runtime", async () => { + it("appends scoped SQLite transcript entries without runtime legacy import", async () => { const stateDir = fs.mkdtempSync(path.join(os.tmpdir(), "openclaw-transcript-state-")); vi.stubEnv("OPENCLAW_STATE_DIR", stateDir); appendSqliteSessionTranscriptEvent({