Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(pruef): the picture step of picture first has no label, read it only from the mesh step

purple2360b5c4c345
diff --git a/src/hooks/useCloudCreate.ts b/src/hooks/useCloudCreate.ts
index 87442ff0..ffff2967 100644
--- a/src/hooks/useCloudCreate.ts
+++ b/src/hooks/useCloudCreate.ts
@@ -323,12 +323,14 @@ async function runPictureFirst(args: {
submit: async (job) => {
s.setProgress(job.kind === 'image' ? 6 : 52, 'Submitting to the render queue…')
const step = job.kind === 'image' ? pictureFields(job.prompt) : meshFields()
+ // Only the mesh step carries its own gallery title; the picture step has its prompt.
+ const stepLabel = 'label' in step ? step.label : ''
const out = await submitNoted({ kind: job.kind, model: job.model, prompt: job.prompt, params: job.params }, {
- op: 'studio', prompt: job.prompt || step.label || '', timeoutMs, landing: 'gallery', items: [step],
+ op: 'studio', prompt: job.prompt || stepLabel || '', timeoutMs, landing: 'gallery', items: [step],
})
const now = Date.now()
notePendingCloudJob({
- id: out.id, kind: job.kind, op: 'studio', model: job.model, prompt: job.prompt || step.label || '',
+ id: out.id, kind: job.kind, op: 'studio', model: job.model, prompt: job.prompt || stepLabel || '',
startedAt: now, deadlineAt: now + timeoutMs, landing: 'gallery', item: step,
})
if (job.params.client_request_id) settleCloudSubmitIntent(job.params.client_request_id, true)