InvokeAI/invokeai/frontend/web/src/features
psychedelicious df9a903a50 fix(ui): do not cache VAE decode on linear
The VAE decode on linear graphs was getting cached. This caused some unexpected behaviour around image outputs.

For example, say you ran the exact same graph twice. The first time, you get an image written to disk and added to gallery. The second time, the VAE decode is cached and no image file is created. But, the UI still gets the graph complete event and selects the first image in the gallery. The second run does not add an image to the gallery.

There are probbably edge cases related to this - the UI does not expect this to happen. I'm not sure how to handle it any better in the UI.

The solution is to not cache VAE decode on the linear graphs, ever. If you run a graph twice in linear, you expect two images.

This simple change disables the node cache for terminal VAE decode nodes in all linear graphs, ensuring you always get images. If they graph was fully cached, all images after the first will be created very quickly of course.
2023-12-16 12:37:49 +11:00
..
canvas fix(ui): fix memoized selectors 2023-12-09 16:09:26 +11:00
changeBoardModal feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
controlAdapters feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
deleteImageModal feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
dnd feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
dynamicPrompts feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
embedding/components eslint added to enforce translations (#5150) 2023-11-25 14:46:19 +11:00
gallery Selected in View within Gallery (#5240) 2023-12-12 17:14:28 +11:00
lora feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
modelManager feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
nodes fix(ui): do not cache VAE decode on linear 2023-12-16 12:37:49 +11:00
parameters feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
queue feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
sdxl feat(ui): upgrade redux and RTK 2023-12-09 16:09:26 +11:00
system fix(ui): fix memoized selectors 2023-12-09 16:09:26 +11:00
ui fix(ui): fix memoized selectors 2023-12-09 16:09:26 +11:00
workflowLibrary feat(ui): workflow menu tweaks 2023-12-14 08:30:59 -05:00