Save each Comfy run as a new clip even if the output filename repeats.

Purging desktop files let MiniMax reuse MiniMax_H3_00001_, so the next job returned the previous clip. Ignore stale events from the last job so a second generate cannot paste the first video over the new one.
This commit is contained in:
2026-08-25 20:29:36 -05:00
parent c5ed4d7ac4
commit ba7a483aac
6 changed files with 36 additions and 15 deletions
+3
View File
@@ -18,6 +18,7 @@ export interface JobEvent {
queueRunning?: number
queuePending?: number
folderLocked?: boolean
jobId?: string
}
export interface Job {
@@ -89,6 +90,7 @@ export function listJobs() {
export function jobSnapshot(job: Job) {
return {
jobId: job.id,
type: 'snapshot' as const,
status: job.status,
message: job.message,
@@ -108,6 +110,7 @@ export function jobSnapshot(job: Job) {
}
export function emitJob(job: Job, event: JobEvent) {
event.jobId = job.id
if (event.message) job.message = event.message
if (typeof event.progress === 'number') job.progress = event.progress
if (typeof event.step === 'number') job.step = event.step