From acd0749e95ca37000ee5b04612904dd52d92cc16 Mon Sep 17 00:00:00 2001 From: Saul Moro Date: Thu, 15 Oct 2026 12:07:54 +0200 Subject: [PATCH] test(session): pass a session ref to CodexAdapter.readSession --- src/__tests__/session-cmd.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__tests__/session-cmd.test.ts b/src/__tests__/session-cmd.test.ts index e1af13bee..8fdc37875 100644 --- a/src/__tests__/session-cmd.test.ts +++ b/src/__tests__/session-cmd.test.ts @@ -1576,7 +1576,7 @@ describe('codex readSession: freeform tool calls', () => { lines.map((l) => JSON.stringify({ timestamp: '2026-10-01T10:00:00.000Z', ...l })).join('\n') + '\n', ); - const session = await new CodexAdapter().readSession(SID); + const session = await new CodexAdapter().readSession({ sessionId: SID }); const call = session.messages.flatMap((m) => m.content).find((b) => b.type === 'tool_call'); expect(call).toMatchObject({ type: 'tool_call', toolName: 'edit_file', callId: 'call_1', arguments: { input: patch } }); });