test: remove stale transcript jsonl wording

This commit is contained in:
Peter Steinberger
2026-05-09 21:17:07 +01:00
parent a506cc1c69
commit ab33190f6f
4 changed files with 5 additions and 5 deletions

View File

@@ -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", () => {

View File

@@ -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({

View File

@@ -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);

View File

@@ -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({