From fc3a597203eeffcd9d6fd1f1fd86d5abd9c23b0e Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Sat, 17 Oct 2026 03:04:19 -0700 Subject: [PATCH] fix(chat): derive page form type from reader contract --- .../agent-session-wire/agent-session-history-page.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/native-chat/agent-session-wire/agent-session-history-page.ts b/src/main/native-chat/agent-session-wire/agent-session-history-page.ts index 07aa122c2c8..cfbbf548e11 100644 --- a/src/main/native-chat/agent-session-wire/agent-session-history-page.ts +++ b/src/main/native-chat/agent-session-wire/agent-session-history-page.ts @@ -32,7 +32,6 @@ import { CLIENT_HISTORY_READER } from './agent-session-item-wire-form' import { boundHistoryItemsByBytes, type HistoryReader, - type HistoryItemForm, measureHistoryItem, newestWholeSequenceGroups, wholeSubagentGroupsStart, @@ -236,7 +235,7 @@ function readForward( // submissions AND removal ids — a legal pre-bounding tombstone id can dwarf // every item on the page. const pageContentBytes = ( - items: readonly HistoryItemForm[], + items: readonly ReturnType[], removedItemIds: readonly string[] ): number => items.reduce(