From 5bffa933cd06e1d38fc568d652a7a8620193f8d2 Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Fri, 9 Oct 2026 05:24:51 -0700 Subject: [PATCH] fix(native-chat): match journal commit signature in receipt test (#26788) The receipt transaction test's fake writer took a single row, but the journal commit hook now receives an array of rows. The mismatch broke typecheck. The mock now accepts the rows array and spreads them into the captured list. The test also asserts the committed row's contents, so a wrong row would fail the test instead of passing on length alone. --- .../agent-session-journal/command-receipt-transaction.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/native-chat/agent-session-journal/command-receipt-transaction.test.ts b/src/main/native-chat/agent-session-journal/command-receipt-transaction.test.ts index 3e51d0c040e..e5cb81f0815 100644 --- a/src/main/native-chat/agent-session-journal/command-receipt-transaction.test.ts +++ b/src/main/native-chat/agent-session-journal/command-receipt-transaction.test.ts @@ -114,6 +114,7 @@ describe('command receipt transaction hook', () => { buildCommandReceiptTransaction(scope, () => ({ ...receipt, result })) ) expect(committed).toHaveLength(1) + expect(committed[0]).toEqual(epochRow(7, 1000)) expect(storedRows()).toEqual([{ seq: 7 }]) expect(readReceipt()).toEqual({ verdict: 'readable',