From ca9495cbe2ac190db41ca12fb530b105c34e8788 Mon Sep 17 00:00:00 2001 From: CalamitousFelicitousness Date: Sat, 8 Aug 2026 05:30:32 +0100 Subject: [PATCH] fix(ui): show the reported stage in generation progress The progress response carries a stage label in textinfo, but the button and hint composed their text from the job name alone, so staged pipelines sat on a bare inference label. The stage now takes precedence in the button label and appears next to the job in the performance hint. --- ui/progressBar.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/progressBar.ts b/ui/progressBar.ts index 0999cf2d8..6b8cb5988 100644 --- a/ui/progressBar.ts +++ b/ui/progressBar.ts @@ -42,7 +42,7 @@ export function checkPaused(state) { export function setProgress(res?: any) { const elements = ['txt2img_generate', 'img2img_generate', 'extras_generate', 'control_generate', 'video_generate', 'framepack_generate']; const progress = res?.progress || 0; - const job = res?.job || ''; + const job = res?.textinfo || res?.job || ''; // stage label when the backend reports one, job name otherwise let perc: string; let eta = ''; if (job === 'VAE') perc = 'Decode'; @@ -62,7 +62,7 @@ export function setProgress(res?: any) { const elPerf = document.getElementById('control-performance'); let hint = ''; if (elPerf && res) { - const jobTxt = res.job && res.job !== '' ? ` | Job ${res.job}` : ''; + const jobTxt = res.job && res.job !== '' ? ` | Job ${res.job}${res.textinfo ? `: ${res.textinfo}` : ''}` : ''; const batchTxt = res.batch > 0 ? ` | Batch ${res.batch}/${res.batches}` : ''; const stateTxt = res.queued ? 'Queued' : res.paused ? 'Paused' : res.completed ? 'Completed' : res.active ? 'Active' : 'Idle'; // eslint-disable-line no-nested-ternary const stepsTxt = res.step > 0 ? ` | Step ${res.step}/${res.steps}` : ''; @@ -92,7 +92,7 @@ export function setProgress(res?: any) { } const el = document.getElementById('control-performance'); if (el && res) { - const jobTxt = res.job && res.job !== '' ? ` | Job ${res.job}` : ''; + const jobTxt = res.job && res.job !== '' ? ` | Job ${res.job}${res.textinfo ? `: ${res.textinfo}` : ''}` : ''; const batchTxt = res.batch > 0 ? ` | Batch ${res.batch}/${res.batches}` : ''; const stateTxt = res.queued ? 'Queued' : res.paused ? 'Paused' : res.completed ? 'Completed' : res.active ? 'Active' : 'Idle'; // eslint-disable-line no-nested-ternary const stepsTxt = res.step > 0 ? ` | Step ${res.step}/${res.steps}` : '';