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."); }