Comfy-Org / Comfy-Org/ComfyUI_frontend

[Bug]: Sampler preview disappears when switching tabs or applications

Open
#10,688 2 comments 1 reaction 1 assignee Claimed by @dante01yoon View on GitHub
area:comms area:previews area:ui area:workflows Potential Bug verified bug
Dominant language
TypeScript
Stars
2k
Forks
702
Avg merge
1d 7h
Merged PRs (30d)
490

Description

Mirror of comfyanonymous/ComfyUI#8959 — moved to frontend repo since the fix is frontend-side.

## Description

When a sampler is running and showing a preview, switching to another browser tab or application causes the preview to disappear. When returning to the ComfyUI tab, the preview is gone even though the sampler is still running.

## Root Cause

This is a symptom of the broader Tab-Graph-Prompt State Sync issue (#3377). WebSocket messages (including preview data) are not properly associated with the originating workflow tab, causing state to be lost or misapplied when switching contexts.

## Original Issue

https://github.com/comfyanonymous/ComfyUI/issues/8959

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-10688-Bug-Sampler-preview-disappears-when-switching-tabs-or-applications-3316d73d365081ae8385cca67e734c48) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.