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.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
Merge remote-tracking branch 'origin/main' into workflow-follow-ups
JPPhoto5fdaff71d5cd
diff --cc invokeai/frontend/webv2/performance/architecture-baseline.jsonindex 47dc3b419b,efff9e36cf..25599f00a7--- a/invokeai/frontend/webv2/performance/architecture-baseline.json+++ b/invokeai/frontend/webv2/performance/architecture-baseline.json@@@ -2,15 -2,15 +2,15 @@@"build": {"launchpad": {"baseline": {- "brotliBytes": 890518,- "brotliBytes": 895804,++ "brotliBytes": 896132,"cssRawBytes": 2159,"fontRawBytes": 219480,- "gzipBytes": 889340,- "gzipBytes": 894617,++ "gzipBytes": 894900,"imageRawBytes": 156376,- "initialRawBytes": 2113859,- "largestAssetRawBytes": 778932,- "initialRawBytes": 2128478,++ "initialRawBytes": 2129357,+ "largestAssetRawBytes": 778953,"otherAssetRawBytes": 0,- "ownedRawBytes": 88441,- "ownedRawBytes": 89515,++ "ownedRawBytes": 90376,"requestCount": 37,"scriptRequestCount": 21,"sourceOwners": [@@@ -319,15 -324,15 +325,15 @@@},"editor": {"baseline": {- "brotliBytes": 1223651,- "brotliBytes": 1233253,++ "brotliBytes": 1235108,"cssRawBytes": 2159,"fontRawBytes": 219480,- "gzipBytes": 1217495,- "gzipBytes": 1227029,++ "gzipBytes": 1228719,"imageRawBytes": 156376,- "initialRawBytes": 3133681,- "largestAssetRawBytes": 778932,- "initialRawBytes": 3164374,++ "initialRawBytes": 3169745,+ "largestAssetRawBytes": 778953,"otherAssetRawBytes": 0,- "ownedRawBytes": 141137,+ "ownedRawBytes": 141887,"requestCount": 86,"scriptRequestCount": 70,"sourceOwners": [@@@ -1034,7 -1044,7 +1046,7 @@@"source": "src/app/WorkbenchApp.tsx"}},-- "capturedAt": "2026-09-22",++ "capturedAt": "2026-09-23","developmentInvalidation": {"platformUiBarrel": {"specifier": "@platform/ui",@@@ -1079,7 -1089,7 +1091,9 @@@"src/features/queue/ui/launchpad/QueueStatusBand.tsx","src/workbench/launchpad/home/livePanels.ts"],-- "editorForbiddenInitialChunkNames": ["ag-psd"],++ "editorForbiddenInitialChunkNames": [++ "ag-psd"++ ],"inactiveWidgetGateOwner": "deepen-widget-registry-loading"}}diff --cc invokeai/frontend/webv2/performance/browser-baseline.jsonindex 90b53e576e,9010e39765..fe7b47701e--- a/invokeai/frontend/webv2/performance/browser-baseline.json+++ b/invokeai/frontend/webv2/performance/browser-baseline.json@@@ -1,6 -1,6 +1,6 @@@{- "browserExecutable": "/home/toast/.cache/ms-playwright/chromium-1243/chrome-linux64/chrome",- "capturedAt": "2026-09-22",+ "browserExecutable": "/home/jsp/.cache/ms-playwright/chromium-1243/chrome-linux64/chrome",- "capturedAt": "2026-09-22",++ "capturedAt": "2026-09-23","routes": [{"activatedResourceBaseline": {@@@ -14,13 -14,13 +14,13 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 204.89999997615814,- "domContentLoadedMedianMs": 123.90000000596046,++ "domContentLoadedMedianMs": 213.5,"id": "launchpad","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 205,- "longestTaskMaxMs": 165,- "loadMedianMs": 124.10000000149012,- "longestTaskMaxMs": 78,++ "loadMedianMs": 213.80000001192093,++ "longestTaskMaxMs": 157,"owner": "app","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:launchpad",@@@ -29,14 -29,14 +29,14 @@@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 0,- "largestAssetRawBytes": 778932,- "otherRawBytes": 157352,+ "largestAssetRawBytes": 778953,- "otherRawBytes": 161118,++ "otherRawBytes": 163620,"requestCount": 32,- "scriptRawBytes": 1796120,- "scriptRawBytes": 1810772,++ "scriptRawBytes": 1811962,"scriptRequestCount": 28,- "totalRawBytes": 1979295- "totalRawBytes": 1997713++ "totalRawBytes": 2001405},- "routeReadyMedianMs": 459.80000001192093,- "routeReadyMedianMs": 265.20000000298023,++ "routeReadyMedianMs": 460.80000001192093,"scriptSourceOwnerSet": "launchpad-static","stateProfile": "empty"},@@@ -52,13 -52,13 +52,13 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 224.69999998807907,- "domContentLoadedMedianMs": 154.10000000149012,++ "domContentLoadedMedianMs": 232.80000001192093,"id": "launchpad","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 224.89999997615814,- "longestTaskMaxMs": 162,- "loadMedianMs": 154.29999999701977,- "longestTaskMaxMs": 140,++ "loadMedianMs": 233,++ "longestTaskMaxMs": 149,"owner": "app","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:launchpad",@@@ -67,14 -67,14 +67,14 @@@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 0,- "largestAssetRawBytes": 778932,- "otherRawBytes": 157352,+ "largestAssetRawBytes": 778953,- "otherRawBytes": 161118,++ "otherRawBytes": 163620,"requestCount": 32,- "scriptRawBytes": 1796120,- "scriptRawBytes": 1810772,++ "scriptRawBytes": 1811962,"scriptRequestCount": 28,- "totalRawBytes": 1979295- "totalRawBytes": 1997713++ "totalRawBytes": 2001405},- "routeReadyMedianMs": 493.39999997615814,- "routeReadyMedianMs": 352.5,++ "routeReadyMedianMs": 552.1000000238419,"scriptSourceOwnerSet": "launchpad-static","stateProfile": "representative"},@@@ -90,29 -90,29 +90,29 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 210.19999998807907,- "domContentLoadedMedianMs": 135.5,++ "domContentLoadedMedianMs": 209.80000001192093,"id": "editor-minimal","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 210.4000000357628,- "longestTaskMaxMs": 307,- "loadMedianMs": 135.60000000149012,- "longestTaskMaxMs": 202,++ "loadMedianMs": 210.0999999642372,++ "longestTaskMaxMs": 374,"owner": "workbench",- "projectSwitchMedianMs": 78.5,- "projectSwitchMedianMs": 35.100000001490116,++ "projectSwitchMedianMs": 71.10000002384186,"readyMark": "invokeai:ready:widget:center:preview","remediationTicket": "deepen-widget-registry-loading","resourceBaseline": {"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 778932,- "otherRawBytes": 157352,- "requestCount": 100,- "scriptRawBytes": 3716518,- "scriptRequestCount": 95,- "totalRawBytes": 4056069+ "largestAssetRawBytes": 778953,- "otherRawBytes": 161118,++ "otherRawBytes": 163620,+ "requestCount": 99,- "scriptRawBytes": 3736608,++ "scriptRawBytes": 3758430,+ "scriptRequestCount": 94,- "totalRawBytes": 4079925++ "totalRawBytes": 4104249},- "routeReadyMedianMs": 724.6999999880791,- "routeReadyMedianMs": 459.90000000596046,++ "routeReadyMedianMs": 854.1000000238419,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "empty"},@@@ -128,29 -128,29 +128,29 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 232.4000000357628,- "domContentLoadedMedianMs": 127.29999999701977,++ "domContentLoadedMedianMs": 312.5,"id": "editor-minimal","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,"layoutSwitchMedianMs": 0,- "loadMedianMs": 232.70000004768372,- "longestTaskMaxMs": 291,- "loadMedianMs": 127.39999999850988,- "longestTaskMaxMs": 193,++ "loadMedianMs": 312.9000000357628,++ "longestTaskMaxMs": 849,"owner": "workbench",- "projectSwitchMedianMs": 109.70000004768372,- "projectSwitchMedianMs": 46.399999998509884,++ "projectSwitchMedianMs": 191.29999995231628,"readyMark": "invokeai:ready:widget:center:preview","remediationTicket": "deepen-widget-registry-loading","resourceBaseline": {"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 778932,- "otherRawBytes": 157352,- "requestCount": 100,- "scriptRawBytes": 3716518,- "scriptRequestCount": 95,- "totalRawBytes": 4056069+ "largestAssetRawBytes": 778953,- "otherRawBytes": 161118,++ "otherRawBytes": 163620,+ "requestCount": 99,- "scriptRawBytes": 3736608,++ "scriptRawBytes": 3758430,+ "scriptRequestCount": 94,- "totalRawBytes": 4079925++ "totalRawBytes": 4104249},- "routeReadyMedianMs": 782.1999999880791,- "routeReadyMedianMs": 441.19999999552965,++ "routeReadyMedianMs": 1223.800000011921,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "representative"},@@@ -159,20 -159,20 +159,20 @@@"cssRawBytes": 0,"fontRawBytes": 0,"imageRawBytes": 0,- "largestAssetRawBytes": 309208,+ "largestAssetRawBytes": 309239,"otherRawBytes": 0,- "requestCount": 10,- "scriptRawBytes": 503365,- "scriptRequestCount": 10,- "totalRawBytes": 503365+ "requestCount": 9,- "scriptRawBytes": 502842,++ "scriptRawBytes": 502840,+ "scriptRequestCount": 9,- "totalRawBytes": 502842++ "totalRawBytes": 502840},- "domContentLoadedMedianMs": 198.69999998807907,- "domContentLoadedMedianMs": 124.70000000298023,++ "domContentLoadedMedianMs": 220.39999997615814,"id": "editor-canvas",- "layoutAckMedianMs": 4.699999988079071,- "layoutReturnSwitchMedianMs": 67.09999996423721,- "layoutSwitchMedianMs": 128.0999999642372,- "loadMedianMs": 198.9000000357628,- "longestTaskMaxMs": 328,- "layoutAckMedianMs": 2.600000001490116,- "layoutReturnSwitchMedianMs": 45.79999999701977,- "layoutSwitchMedianMs": 83.09999999403954,- "loadMedianMs": 124.80000000447035,- "longestTaskMaxMs": 152,++ "layoutAckMedianMs": 8.200000047683716,++ "layoutReturnSwitchMedianMs": 67.80000001192093,++ "layoutSwitchMedianMs": 168.19999998807907,++ "loadMedianMs": 220.69999998807907,++ "longestTaskMaxMs": 650,"owner": "canvas","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:canvas",@@@ -181,14 -181,14 +181,14 @@@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 778932,- "otherRawBytes": 157352,- "requestCount": 110,- "scriptRawBytes": 4219883,- "scriptRequestCount": 105,- "totalRawBytes": 4559434+ "largestAssetRawBytes": 778953,- "otherRawBytes": 161118,++ "otherRawBytes": 163620,+ "requestCount": 108,- "scriptRawBytes": 4239450,++ "scriptRawBytes": 4261270,+ "scriptRequestCount": 103,- "totalRawBytes": 4582767++ "totalRawBytes": 4607089},- "routeReadyMedianMs": 1580.5999999642372,- "routeReadyMedianMs": 1109.8000000044703,++ "routeReadyMedianMs": 1777.8999999761581,"scriptSourceOwnerSet": "editor-canvas-static","stateProfile": "empty"},@@@ -197,20 -197,20 +197,20 @@@"cssRawBytes": 0,"fontRawBytes": 0,"imageRawBytes": 0,- "largestAssetRawBytes": 309208,+ "largestAssetRawBytes": 309239,"otherRawBytes": 0,- "requestCount": 10,- "scriptRawBytes": 503365,- "scriptRequestCount": 10,- "totalRawBytes": 503365+ "requestCount": 9,- "scriptRawBytes": 502842,++ "scriptRawBytes": 502840,+ "scriptRequestCount": 9,- "totalRawBytes": 502842++ "totalRawBytes": 502840},- "domContentLoadedMedianMs": 216.5,- "domContentLoadedMedianMs": 130.29999999701977,++ "domContentLoadedMedianMs": 310.80000001192093,"id": "editor-canvas",- "layoutAckMedianMs": 4.800000011920929,- "layoutReturnSwitchMedianMs": 83.5,- "layoutSwitchMedianMs": 144,- "loadMedianMs": 216.79999995231628,- "longestTaskMaxMs": 320,- "layoutAckMedianMs": 2.7999999970197678,- "layoutReturnSwitchMedianMs": 49,- "layoutSwitchMedianMs": 84.20000000298023,- "loadMedianMs": 130.39999999850988,- "longestTaskMaxMs": 207,++ "layoutAckMedianMs": 9.200000047683716,++ "layoutReturnSwitchMedianMs": 111.19999998807907,++ "layoutSwitchMedianMs": 270.80000001192093,++ "loadMedianMs": 311.0999999642372,++ "longestTaskMaxMs": 1409,"owner": "canvas","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:canvas",@@@ -219,14 -219,14 +219,14 @@@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 778932,- "otherRawBytes": 157352,- "requestCount": 110,- "scriptRawBytes": 4219883,- "scriptRequestCount": 105,- "totalRawBytes": 4559434+ "largestAssetRawBytes": 778953,- "otherRawBytes": 161118,++ "otherRawBytes": 163620,+ "requestCount": 108,- "scriptRawBytes": 4239450,++ "scriptRawBytes": 4261270,+ "scriptRequestCount": 103,- "totalRawBytes": 4582767++ "totalRawBytes": 4607089},- "routeReadyMedianMs": 1632.0999999642372,- "routeReadyMedianMs": 1133.1999999955297,++ "routeReadyMedianMs": 2517.399999976158,"scriptSourceOwnerSet": "editor-canvas-static","stateProfile": "representative"},@@@ -238,17 -238,17 +238,17 @@@"largestAssetRawBytes": 175033,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 397947,- "scriptRawBytes": 397914,++ "scriptRawBytes": 398142,"scriptRequestCount": 6,- "totalRawBytes": 413360- "totalRawBytes": 413327++ "totalRawBytes": 413555},- "domContentLoadedMedianMs": 212.5,- "domContentLoadedMedianMs": 127.29999999701977,++ "domContentLoadedMedianMs": 290.10000002384186,"id": "editor-workflow",- "layoutAckMedianMs": 5.699999988079071,- "layoutReturnSwitchMedianMs": 52,- "layoutSwitchMedianMs": 141.39999997615814,- "loadMedianMs": 213,- "longestTaskMaxMs": 285,- "layoutAckMedianMs": 2.5,- "layoutReturnSwitchMedianMs": 34.100000001490116,- "layoutSwitchMedianMs": 101.10000000149012,- "loadMedianMs": 127.39999999850988,- "longestTaskMaxMs": 161,++ "layoutAckMedianMs": 10.5,++ "layoutReturnSwitchMedianMs": 86.60000002384186,++ "layoutSwitchMedianMs": 225.10000002384186,++ "loadMedianMs": 290.7000000476837,++ "longestTaskMaxMs": 781,"owner": "workflow","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:workflow",@@@ -257,14 -257,14 +257,14 @@@"cssRawBytes": 17572,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 778932,- "otherRawBytes": 157352,- "requestCount": 107,- "scriptRawBytes": 4114465,- "scriptRequestCount": 101,- "totalRawBytes": 4469429+ "largestAssetRawBytes": 778953,- "otherRawBytes": 161118,++ "otherRawBytes": 163620,+ "requestCount": 106,- "scriptRawBytes": 4134522,++ "scriptRawBytes": 4156572,+ "scriptRequestCount": 100,- "totalRawBytes": 4493252++ "totalRawBytes": 4517804},- "routeReadyMedianMs": 1596.3999999761581,- "routeReadyMedianMs": 1145,++ "routeReadyMedianMs": 2222.2000000476837,"scriptSourceOwnerSet": "editor-workflow-static","stateProfile": "empty"},@@@ -276,17 -276,17 +276,17 @@@"largestAssetRawBytes": 175033,"otherRawBytes": 0,"requestCount": 7,- "scriptRawBytes": 397947,- "scriptRawBytes": 397914,++ "scriptRawBytes": 398142,"scriptRequestCount": 6,- "totalRawBytes": 413360- "totalRawBytes": 413327++ "totalRawBytes": 413555},- "domContentLoadedMedianMs": 194.19999998807907,- "domContentLoadedMedianMs": 120.60000000149012,++ "domContentLoadedMedianMs": 232.10000002384186,"id": "editor-workflow",- "layoutAckMedianMs": 4.699999988079071,- "layoutReturnSwitchMedianMs": 61.10000002384186,- "layoutSwitchMedianMs": 221.5,- "loadMedianMs": 194.5,- "longestTaskMaxMs": 696,- "layoutAckMedianMs": 2.600000001490116,- "layoutReturnSwitchMedianMs": 39.5,- "layoutSwitchMedianMs": 137,- "loadMedianMs": 120.70000000298023,- "longestTaskMaxMs": 380,++ "layoutAckMedianMs": 9.399999976158142,++ "layoutReturnSwitchMedianMs": 67,++ "layoutSwitchMedianMs": 327.10000002384186,++ "loadMedianMs": 232.30000001192093,++ "longestTaskMaxMs": 893,"owner": "workflow","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:workflow",@@@ -295,14 -295,14 +295,14 @@@"cssRawBytes": 17572,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 778932,- "otherRawBytes": 157352,- "requestCount": 107,- "scriptRawBytes": 4114465,- "scriptRequestCount": 101,- "totalRawBytes": 4469429+ "largestAssetRawBytes": 778953,- "otherRawBytes": 161118,++ "otherRawBytes": 163620,+ "requestCount": 106,- "scriptRawBytes": 4134522,++ "scriptRawBytes": 4156572,+ "scriptRequestCount": 100,- "totalRawBytes": 4493252++ "totalRawBytes": 4517804},- "routeReadyMedianMs": 1757,- "routeReadyMedianMs": 1156.4000000059605,++ "routeReadyMedianMs": 2154.399999976158,"scriptSourceOwnerSet": "editor-workflow-static","stateProfile": "representative"},@@@ -318,13 -318,13 +318,13 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 193.30000001192093,- "domContentLoadedMedianMs": 122.70000000298023,++ "domContentLoadedMedianMs": 240,"id": "editor-gallery","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,- "layoutSwitchMedianMs": 93.79999995231628,- "loadMedianMs": 193.39999997615814,- "longestTaskMaxMs": 289,- "layoutSwitchMedianMs": 44.70000000298023,- "loadMedianMs": 122.80000000447035,- "longestTaskMaxMs": 163,++ "layoutSwitchMedianMs": 85.59999996423721,++ "loadMedianMs": 240.5,++ "longestTaskMaxMs": 424,"owner": "gallery","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:gallery",@@@ -333,14 -333,14 +333,14 @@@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 778932,- "otherRawBytes": 157352,- "requestCount": 100,- "scriptRawBytes": 3716518,- "scriptRequestCount": 95,- "totalRawBytes": 4056069+ "largestAssetRawBytes": 778953,- "otherRawBytes": 161118,++ "otherRawBytes": 163620,+ "requestCount": 99,- "scriptRawBytes": 3736608,++ "scriptRawBytes": 3758430,+ "scriptRequestCount": 94,- "totalRawBytes": 4079925++ "totalRawBytes": 4104249},- "routeReadyMedianMs": 1822.7999999523163,- "routeReadyMedianMs": 1342.7000000029802,++ "routeReadyMedianMs": 2125.300000011921,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "empty"},@@@ -356,13 -356,13 +356,13 @@@"scriptRequestCount": 0,"totalRawBytes": 0},- "domContentLoadedMedianMs": 231.19999998807907,- "domContentLoadedMedianMs": 124.89999999850988,++ "domContentLoadedMedianMs": 259.39999997615814,"id": "editor-gallery","layoutAckMedianMs": 0,"layoutReturnSwitchMedianMs": 0,- "layoutSwitchMedianMs": 110.19999998807907,- "loadMedianMs": 231.4000000357628,- "longestTaskMaxMs": 308,- "layoutSwitchMedianMs": 52.19999999552965,- "loadMedianMs": 125.10000000149012,- "longestTaskMaxMs": 150,++ "layoutSwitchMedianMs": 126.69999998807907,++ "loadMedianMs": 259.69999998807907,++ "longestTaskMaxMs": 460,"owner": "gallery","projectSwitchMedianMs": 0,"readyMark": "invokeai:ready:widget:center:gallery",@@@ -371,14 -371,14 +371,14 @@@"cssRawBytes": 2159,"fontRawBytes": 23664,"imageRawBytes": 156376,- "largestAssetRawBytes": 778932,- "otherRawBytes": 157352,- "requestCount": 100,- "scriptRawBytes": 3716518,- "scriptRequestCount": 95,- "totalRawBytes": 4056069+ "largestAssetRawBytes": 778953,- "otherRawBytes": 161118,++ "otherRawBytes": 163620,+ "requestCount": 99,- "scriptRawBytes": 3736608,++ "scriptRawBytes": 3758430,+ "scriptRequestCount": 94,- "totalRawBytes": 4079925++ "totalRawBytes": 4104249},- "routeReadyMedianMs": 2007.5,- "routeReadyMedianMs": 1359.6000000014901,++ "routeReadyMedianMs": 2442.399999976158,"scriptSourceOwnerSet": "editor-minimal-static","stateProfile": "representative"}diff --cc invokeai/frontend/webv2/src/features/queue/runtime/coordinator.tsindex e19b72ceeb,bce22d2cdc..d8ff2d0941--- a/invokeai/frontend/webv2/src/features/queue/runtime/coordinator.ts+++ b/invokeai/frontend/webv2/src/features/queue/runtime/coordinator.ts@@@ -40,14 -44,11 +44,13 @@@ const coordinatorLogger = createLogger(const TERMINAL_EVENT_BUFFER_LIMIT = 256;const NODE_EVENT_BUFFER_ITEM_LIMIT = 64;const NODE_EVENT_BUFFER_EVENTS_PER_ITEM = 512;+const PROGRESS_EVENT_BUFFER_ITEM_LIMIT = 64;const BACKEND_READ_CONCURRENCY = 16;+const FRAME_GATES_PER_WAIT_LIMIT = 64;/**- * Queue's view of model-load activity derived from socket events. The- * production adapter is Models' modelLoadActivitySink, injected by the App- * composition root (see app/QueueRuntimeAdapter); tests inject a double.+ * App injects Models' model-load activity sink so Queue can report socket-derived activity without importing its+ * owner.*/export interface QueueModelLoadPort {completed(payload: unknown): void;@@@ -375,19 -341,16 +372,16 @@@ export const createQueueCoordinator =}};- /**- * The store follows whichever item most recently produced a live event; the backend may run items- * in any order, so only a replayed event from before the current item's takeover is a straggler.- */+ /** Backend order may vary; reject only replayed events predating the current item's takeover. */const isStaleNodeEvent = (nodeEvent: NodeEvent): boolean =>- nodeExecutionItemId !== null &&- nodeEvent.event.item_id !== nodeExecutionItemId &&- nodeEvent.sequence < nodeExecutionItemSequence;+ nodeExecutionRootItemId !== null &&+ getTrackedBackendItemId(nodeEvent.event) !== nodeExecutionRootItemId &&+ nodeEvent.sequence < nodeExecutionRootItemSequence;const trackNodeForItem = (backendItemId: number, nodeId: string, sequence: number): void => {- if (nodeExecutionItemId !== backendItemId) {- nodeExecutionItemId = backendItemId;- nodeExecutionItemSequence = sequence;+ if (nodeExecutionRootItemId !== backendItemId) {+ nodeExecutionRootItemId = backendItemId;+ nodeExecutionRootItemSequence = sequence;nodeExecution.clearAll();}@@@ -421,21 -380,21 +415,32 @@@return;}case 'completed':- nodeExecution.completed(nodeEvent.event);+ // A called workflow's child lifecycle is represented by the visible+ // Call Saved Workflow node. Only the root invocation may settle that+ // node or replace its latest output.+ waits.get(backendItemId)?.frameGates.delete(nodeEvent.event.item_id);+ if (backendItemId !== nodeEvent.event.item_id) {+ return;+ }+ nodeExecution.completed(routeNodeEvent(nodeEvent.event, backendItemId, invocationSourceId));return;case 'failed':+ waits.get(backendItemId)?.frameGates.delete(nodeEvent.event.item_id);+ if (backendItemId !== nodeEvent.event.item_id) {+ return;+ }+ coordinatorLogger.debug({+ context: {+ errorMessage: nodeEvent.event.error_message,+ errorType: nodeEvent.event.error_type,+ itemId: nodeEvent.event.item_id,+ nodeId: nodeEvent.event.invocation_source_id,+ sessionId: nodeEvent.event.session_id,+ },+ message: `Invocation failed: ${nodeEvent.event.error_type}`,+ name: 'queue.invocation-error',+ });- nodeExecution.failed(nodeEvent.event);+ nodeExecution.failed(routeNodeEvent(nodeEvent.event, backendItemId, invocationSourceId));return;}};@@@ -856,26 -764,9 +851,19 @@@}};+ const replayProgressEvent = (backendItemId: number): void => {+ const event = pendingProgressEvents.get(backendItemId);++ pendingProgressEvents.delete(backendItemId);++ if (event) {+ handleProgress(event);+ }+ };+/**- * React to the shared socket's connection lifecycle. The Platform hub owns- * transport mechanics only; this Queue coordinator clears its transient- * per-node and model-load state and, on (re)connect, schedules a gallery- * refresh and missed-event sweep.- *- * The followed slot and its last frame deliberately survive a drop: the run- * continues on the backend and the sweep reconciles its durable outcome, so- * wiping them only ever produced a blank card — until the next event if the- * run was still going, or for good if it finished while disconnected.+ * Clear transient node/model-load state on connection changes and reconcile on reconnect. Preserve followed+ * slots/frames because backend runs continue offline.*/const handleConnectionChange = (status: BackendConnectionStatus): void => {if (!isActive()) {diff --cc invokeai/frontend/webv2/src/features/workflow/ui/editor/CallSavedWorkflowSyncRuntime.browser.test.tsxindex bc60fc6980,e72ef076bb..1ecc237377--- a/invokeai/frontend/webv2/src/features/workflow/ui/editor/CallSavedWorkflowSyncRuntime.browser.test.tsx+++ b/invokeai/frontend/webv2/src/features/workflow/ui/editor/CallSavedWorkflowSyncRuntime.browser.test.tsx@@@ -86,36 -86,9 +86,32 @@@ const settle = async (ms: number) =>});};+/** Waits until the request count stops changing, so an early window cannot read as a pass. */+const settleUntilRequestsStop = async (getCount: () => number, sample = 25, maxSamples = 80) => {+ let previous = -1;+ let unchangedSamples = 0;++ for (let index = 0; index < maxSamples; index += 1) {+ const current = getCount();++ if (current === previous) {+ unchangedSamples += 1;+ } else {+ unchangedSamples = 0;+ }++ if (unchangedSamples >= 3) {+ return;+ }++ previous = current;+ await settle(sample);+ }+};+/**- * A child workflow that cannot be fetched has to settle: every node naming it- * ends at `error`, so the Invoke button can say why, and the requests stop.- *- * Regression: the retry bookkeeping is keyed by workflow id while the status it- * drives is per node, so two nodes naming one failing id hand the shared flag- * back and forth, and neither the requests nor the `loading` state ever stop.+ * Shared failing child-workflow IDs must settle every node to error without ping-ponging retries or remaining+ * loading forever.*/describe('CallSavedWorkflowSyncRuntime with an unreachable child workflow', () => {let host: HTMLDivElement;