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(canvas): align queue event error types

joshistoaste4e215a0fead
diff --git a/invokeai/frontend/web/src/features/controlLayers/components/StagingArea/__mocks__/mockStagingAreaApp.ts b/invokeai/frontend/web/src/features/controlLayers/components/StagingArea/__mocks__/mockStagingAreaApp.ts
index e0b56d5a43..bd84812775 100644
--- a/invokeai/frontend/web/src/features/controlLayers/components/StagingArea/__mocks__/mockStagingAreaApp.ts
+++ b/invokeai/frontend/web/src/features/controlLayers/components/StagingArea/__mocks__/mockStagingAreaApp.ts
@@ -165,6 +165,7 @@ export const createMockQueueItemStatusChangedEvent = (
status: 'completed',
error_type: null,
error_message: null,
+ error_traceback: null,
} as S['QueueItemStatusChangedEvent'],
overrides
);
diff --git a/invokeai/frontend/webv2/src/workbench/backend/events.ts b/invokeai/frontend/webv2/src/workbench/backend/events.ts
index 5bf66cb080..48f709a61f 100644
--- a/invokeai/frontend/webv2/src/workbench/backend/events.ts
+++ b/invokeai/frontend/webv2/src/workbench/backend/events.ts
@@ -19,9 +19,9 @@ export interface QueueItemEventBase {
export interface QueueItemStatusChangedEvent extends QueueItemEventBase {
status: BackendQueueItemStatus;
- error_type?: string | null;
+ error_type: string | null;
error_message: string | null;
- error_traceback?: string | null;
+ error_traceback: string | null;
created_at: string;
updated_at: string;
started_at: string | null;
diff --git a/invokeai/frontend/webv2/src/workbench/backend/queueCoordinator.test.ts b/invokeai/frontend/webv2/src/workbench/backend/queueCoordinator.test.ts
index c04f48cf95..1fa2bec550 100644
--- a/invokeai/frontend/webv2/src/workbench/backend/queueCoordinator.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/backend/queueCoordinator.test.ts
@@ -56,6 +56,7 @@ const createStatusEvent = (overrides: Partial<QueueItemStatusChangedEvent>): Que
created_at: '2026-06-10T00:00:00Z',
destination: 'gallery',
error_message: null,
+ error_traceback: null,
error_type: null,
item_id: 1,
origin: null,
diff --git a/invokeai/frontend/webv2/src/workbench/canvas-engine/backend/utilityQueue.test.ts b/invokeai/frontend/webv2/src/workbench/canvas-engine/backend/utilityQueue.test.ts
index 8c2fd9076a..baaaaca799 100644
--- a/invokeai/frontend/webv2/src/workbench/canvas-engine/backend/utilityQueue.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvas-engine/backend/utilityQueue.test.ts
@@ -71,6 +71,7 @@ const statusEvent = (
created_at: '',
destination: null,
error_message: null,
+ error_traceback: null,
error_type: null,
item_id: 1,
origin: ORIGIN,