Comfy-Org / Comfy-Org/ComfyUI_frontend

Tab-Graph-Prompt State Sync Issues

Open
#3,377 9 comments 2 reactions 1 assignee Claimed by @christian-byrne View on GitHub
area:comms verified bug
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

After a prompt is queued from the frontend, the backend will send various messages about the status of the job.

These status messages are used for various dynamic frontend components/features, such as:

- in-node output displays (`app.nodeOutputs`)
- latent previews displays (`app.nodePreviewImages`)
- execution progress (progress bar)
- currently executing node (browser title)

The frontend workspace can have multiple tabs, each corresponding to its own graph. The frontend does not currently make an attempt to associate each prompt/job with its initiating tab/graph. As a result, the frontend defaults to assuming the status messages relate to the active graph/tab, which can be wrong (e.g., you initiate a job with tab A, then switch to tab B, then get a status message about the job after switching).

This causes various minor (for now) bugs. For this issue, a more comprehensive solution seems necessary, as it will need to be maintainable and extendable in the future.

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-3377-Tab-Graph-Prompt-State-Sync-Issues-1d16d73d3650813184cff25bb60f1bb9) 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.