Purge identity refs from desktop Comfy and keep them in the server stills library.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-27 08:12:54 -05:00
co-authored by Cursor
parent 1466762af4
commit 72f4909815
6 changed files with 48 additions and 6 deletions
+8 -1
View File
@@ -27,6 +27,7 @@ export interface PendingJob {
chainIndex?: number
stillId?: string
sound?: boolean
referenceImageNames?: string[]
}
function pendingRoot() {
@@ -148,7 +149,13 @@ export async function completePendingIfReady(pending: PendingJob) {
stillId: pending.stillId,
sound: pending.sound
})
await purgeComfyArtifacts({ video, imageName: pending.imageName, imageSubfolder: pending.imageSubfolder, promptId: pending.promptId })
await purgeComfyArtifacts({
video,
imageName: pending.imageName,
imageSubfolder: pending.imageSubfolder,
extraImageNames: pending.referenceImageNames,
promptId: pending.promptId
})
deletePendingJob(pending.jobId)
return {
type: 'complete' as const,