Skip to content

Commit c331adb

Browse files
fix(server): accept persisted transcript identity types
1 parent 0e1fac0 commit c331adb

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎apps/server/src/project/AgentSessionScanner.ts‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,10 +562,12 @@ function transcriptIdentity(filePath: string, stats: FileSystem.File.Info) {
562562
};
563563
}
564564

565-
function sameTranscriptIdentity(
566-
left: ReturnType<typeof transcriptIdentity>,
567-
right: ReturnType<typeof transcriptIdentity>,
568-
): boolean {
565+
type TranscriptIdentity = Pick<
566+
AgentSessionImportSource,
567+
"filePath" | "size" | "mtimeMs" | "device" | "inode" | "birthtimeMs"
568+
>;
569+
570+
function sameTranscriptIdentity(left: TranscriptIdentity, right: TranscriptIdentity): boolean {
569571
return (
570572
left.filePath === right.filePath &&
571573
left.size === right.size &&

0 commit comments

Comments
 (0)