Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

fix(queue): infer active batch item

joshistoast86fecaca950d
diff --git a/invokeai/frontend/webv2/src/workbench/shell/topbar/QueueInfo.tsx b/invokeai/frontend/webv2/src/workbench/shell/topbar/QueueInfo.tsx
index 1ef0eee191..5a430ed9fd 100644
--- a/invokeai/frontend/webv2/src/workbench/shell/topbar/QueueInfo.tsx
+++ b/invokeai/frontend/webv2/src/workbench/shell/topbar/QueueInfo.tsx
@@ -144,7 +144,10 @@ const QueueInfoTooltip = ({
const prompt = getQueueItemSnapshotPositivePrompt(item).trim();
const expectedCount = getQueueItemExpectedImageCount(item);
- const activeItemIndex = Math.min(expectedCount, Math.max(1, progress?.activeItemIndex ?? 1));
+ const activeItemIndex = Math.min(
+ expectedCount,
+ Math.max(1, progress?.activeItemIndex ?? (progress?.completedItemCount ?? 0) + 1)
+ );
const activeBackendItemId = item.backendItemIds?.[activeItemIndex - 1];
const progressLabel = modelLoads.length
? `Loading ${modelLoads.length} model${modelLoads.length === 1 ? '' : 's'}.`