Start Sidecar Qwen VL from Recommend when the prompt enhancer is offline.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-08-27 22:56:29 -05:00
co-authored by Cursor
parent b2c59c3423
commit 91948dd329
3 changed files with 126 additions and 4 deletions
+5
View File
@@ -1,4 +1,5 @@
import { getSidecarImageHost } from '~/server/utils/imageComfy'
import { ensureSidecarReady } from '~/server/utils/imageComfyLifecycle'
import { buildVisionPromptWorkflow } from '~/server/utils/promptWorkflow'
import { normalizeShotScript } from '~/utils/parseRecommend'
@@ -220,6 +221,10 @@ export async function runPromptRecommend(job: PromptJob, params: {
mode: string
}) {
job.status = 'running'
job.message = 'Checking Sidecar Qwen VL…'
await ensureSidecarReady((status) => {
job.message = status.message
})
job.message = 'Uploading still to Sidecar Qwen VL…'
const imageName = await uploadPromptImage(params.image, job.id)
job.message = 'Qwen VL is reading the still…'