Q121: a file id keeps the bytes it was recorded with; rewrites get new ids

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 19:34:44 -04:00
1 parent 04c8cce0c4
commit 8f192eabe7
11 files changed
+143 -19

No files matched your search

+4
View File
@@ -229,6 +229,10 @@ export interface FileObjectRecord {
sizeBytes: number;
sha256: string;
storagePath: string;
/** The path the content came from; several ids share it when the file was rewritten. */
sourcePath: string | null;
/** Set once a newer content of the same path was recorded; the id still opens its own bytes. */
supersededAt: string | null;
ownerType: "employee" | "agent" | "system";
ownerId: string | null;
spaceId: string | null;