Keep remaining multi-shot clips on a Queue page so prompts can be edited between shots, with process-next or overnight run-all.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+10
-1
@@ -45,6 +45,9 @@ export interface PendingJob {
|
||||
extensions?: { prompt: string; duration: number }[]
|
||||
remainingExtensions?: { prompt: string; duration: number }[]
|
||||
currentClipId?: string
|
||||
queueId?: string
|
||||
queueAutoRun?: boolean
|
||||
queueBudget?: number
|
||||
}
|
||||
|
||||
function pendingRoot() {
|
||||
@@ -127,6 +130,9 @@ export function pendingFromJob(job: Job, overrides: Partial<PendingJob> = {}): P
|
||||
extensions: library.extensions,
|
||||
remainingExtensions: remaining,
|
||||
currentClipId: job.clipId,
|
||||
queueId: library.queueId,
|
||||
queueAutoRun: library.queueAutoRun,
|
||||
queueBudget: library.queueBudget,
|
||||
...overrides
|
||||
}
|
||||
}
|
||||
@@ -168,7 +174,10 @@ export function libraryFromPending(pending: PendingJob): NonNullable<Job['librar
|
||||
useIdentityRefs: pending.useIdentityRefs,
|
||||
workflow: pending.workflow,
|
||||
duration: pending.duration,
|
||||
extensions: pending.extensions || pending.remainingExtensions
|
||||
extensions: pending.extensions || pending.remainingExtensions,
|
||||
queueId: pending.queueId,
|
||||
queueAutoRun: pending.queueAutoRun,
|
||||
queueBudget: pending.queueBudget
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user