Comfy-Org / ComfyUI_frontend

Official front-end implementation of ComfyUI
https://www.comfy.org/
GNU General Public License v3.0
580 stars 100 forks source link

[Bug]: Sidebar's queue viewer doesn't open the lightbox after a job in the queue is cancelled #1329

Closed alessandroperilli closed 4 days ago

alessandroperilli commented 1 week ago

Frontend Version

1.3.24 (but I had this issue with every version after 1.3.8)

Expected Behavior

You expand the sidebar by clicking on the Queue Viewer icon, then you click on the eye icon at the center of any thumbnail, then the image expands in a lightbox.

Actual Behavior

The expected behavior occurs for the first image (or first round of images) generated by the workflow. Then, if a running job in the queue is cancelled, the eye icon stops opening the lightbox. The functionality is NOT restored even if you hard refresh the browser with a CTRL+SHIFT+R.

On top of this, if you close the sidebar by clicking on the Queue icon, and then you open it again, the sidebar suddenly appears empty, with no previously generate image visible anymore.

The only way to recover that is by stopping ComfyUI and restarting it.

Steps to Reproduce

Generate one or more images. Cancel an ongoing job in the queue. Try to click on the eye icon to open the lightbox.

(I don't know if this is the only even that causes the issue, but it's definitely one)

Debug Logs

Nothing relevant.

Browser Logs

This is when the lightbox fails to open:

Screenshot 2024-10-27 at 10 26 45

This, instead, is when you close the Queue Viewer and you open it again:

Screenshot 2024-10-27 at 10 32 23

Setting JSON

I am not sure this is relevant given that 1.3.8 works flawlessly.

What browsers do you use to access the UI ?

Other

Other

Vivaldi on macOS (but I replicated on Safari for macOS, too)