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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user