From 369eb595d70d2c4c2588d919976c7fd56b4d99c2 Mon Sep 17 00:00:00 2001 From: Towsty Date: Wed, 2 Sep 2026 20:29:44 -0500 Subject: [PATCH] Join pre/prompt/post for Comfy, stop zero-size generates snapping to a small square, and give the phone library a real closeable preview. Co-authored-by: Cursor --- pages/index.vue | 6 +++--- pages/library.vue | 27 +++++++++++++++++++++++++-- server/api/edit.post.ts | 6 ++++-- server/api/generate.post.ts | 4 ++-- server/api/v2/generate.post.ts | 6 ++++-- server/utils/imageChain.ts | 4 ++-- server/utils/imageChainV2.ts | 7 ++++--- server/utils/imageWorkflowV2.ts | 5 +++-- server/utils/videoChain.ts | 11 +++++++---- utils/imageV2.ts | 2 +- utils/promptParts.ts | 26 +++++++++++++++++++++----- 11 files changed, 76 insertions(+), 28 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index efacb0f..360e87b 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -6686,7 +6686,7 @@ async function editImage() { if (inputStillId.value) body.append('stillId', inputStillId.value) if (extraPasses.length) body.append('passes', JSON.stringify(extraPasses)) body.append('passMode', imagePassMode.value) - if (imageLoraStack.value.length) body.append('loraStack', JSON.stringify(imageLoraStack.value)) + body.append('loraStack', JSON.stringify(imageLoraStack.value)) const downloadName = clipFileName(clipName.value.trim() || autoOutputName.value) const started = await $fetch<{ jobId: string @@ -6942,7 +6942,7 @@ async function editImageV2() { return } } - if (v2Stack.length) body.append('loraStack', JSON.stringify(v2Stack)) + body.append('loraStack', JSON.stringify(v2Stack)) const downloadName = clipFileName(clipName.value.trim() || autoOutputName.value) const started = await $fetch<{ jobId: string @@ -7154,7 +7154,7 @@ async function generate() { const shotLoraStacksList = shots ? shots.map(shot => shotLoraStacks.value[shot.n] || []) : [shotLoraStacks.value[1] || [], ...queued.map(item => item.loraStack || [])] - if (videoLoraStack.value.length) body.append('loraStack', JSON.stringify(videoLoraStack.value)) + body.append('loraStack', JSON.stringify(videoLoraStack.value)) body.append('shotLoraStacks', JSON.stringify(shotLoraStacksList)) if (activeDraftId) body.append('draftId', activeDraftId) if (queued.length) { diff --git a/pages/library.vue b/pages/library.vue index 7ee1554..2493f94 100644 --- a/pages/library.vue +++ b/pages/library.vue @@ -200,8 +200,23 @@ -