From 553d17618a8038425b3664bcdaff546207eb644a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 9 May 2026 01:15:55 +0100 Subject: [PATCH] test: tighten cli transcript session file assertion --- src/agents/command/attempt-execution.cli.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/agents/command/attempt-execution.cli.test.ts b/src/agents/command/attempt-execution.cli.test.ts index 9613ee5f8c6..41a0e9d1bca 100644 --- a/src/agents/command/attempt-execution.cli.test.ts +++ b/src/agents/command/attempt-execution.cli.test.ts @@ -510,8 +510,9 @@ describe("CLI attempt execution", () => { embeddedAssistantGapFill: true, }); const sessionFile = updatedFirst?.sessionFile; - expect(sessionFile).toBeTruthy(); - if (!sessionFile) { + expect(typeof sessionFile).toBe("string"); + expect(sessionFile?.length ?? 0).toBeGreaterThan(0); + if (typeof sessionFile !== "string" || sessionFile.length === 0) { throw new Error("Expected CLI transcript session file."); }