diff --git a/src/agents/session-file-repair.ts b/src/agents/session-file-repair.ts index 41ea9e69938..71af856f946 100644 --- a/src/agents/session-file-repair.ts +++ b/src/agents/session-file-repair.ts @@ -42,8 +42,6 @@ type SessionRepairFileSnapshot = { ctimeNs: bigint; }; -export type TrustedSessionRepairSnapshot = SessionRepairFileSnapshot; - type SessionRepairCacheEntry = { snapshot: SessionRepairFileSnapshot; toolResultIds: Set; @@ -595,7 +593,7 @@ async function tryIncrementalSessionRepair(params: { sessionFile: string; currentSnapshot: SessionRepairFileSnapshot; cached: SessionRepairCacheEntry; - trustedSnapshot: TrustedSessionRepairSnapshot | undefined; + trustedSnapshot: SessionRepairFileSnapshot | undefined; }): Promise { if (isSameSessionRepairSnapshot(params.cached.snapshot, params.currentSnapshot)) { return { @@ -657,7 +655,7 @@ async function tryIncrementalSessionRepair(params: { /** Repair a persisted session JSONL file in place when replay-breaking corruption is found. */ export async function repairSessionFileIfNeeded(params: { sessionFile: string; - trustedSnapshot?: TrustedSessionRepairSnapshot; + trustedSnapshot?: SessionRepairFileSnapshot; debug?: (message: string) => void; warn?: (message: string) => void; }): Promise {