mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat(files): wire serverFileId for version tracking
Add serverFileId to FileEntry, pass fileId in tool processor formData when a file originates from the Files page, and set serverFileId on the loaded entry so subsequent tool runs create new file versions instead of duplicates.
This commit is contained in:
@@ -8,6 +8,7 @@ export interface FileEntry {
|
||||
originalSize: number;
|
||||
status: "pending" | "processing" | "completed" | "failed";
|
||||
error: string | null;
|
||||
serverFileId?: string;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -23,6 +24,7 @@ function createEntry(file: File): FileEntry {
|
||||
originalSize: file.size,
|
||||
status: "pending",
|
||||
error: null,
|
||||
serverFileId: undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user