Comfy-Org / Comfy-Org/ComfyUI

Caching workflows and workflow handling is seriously wrong

Open
#14,211 1 comment 4 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

I expect Comfy to open the same workflow(s) I was using last time, or alternatively to open a blank page. This should be configurable. I do not expect it to open some basic template which is not even among the templates or to revive some random workflows I deleted in the past. I expect Comfy to not open Unsaved workflows from the past that I did not even intend to save. I expect Comfy to not pop up random templates that I'm not interested in using.

### Actual Behavior

Actual behavior seems entirely random and unpredictable. Attempt to test this, the last three times I opened Comfy.
First time it gives me this template workflow from out of nowhere, a very basic SD1.5 workflow apparently. I most certainly did not even open this to my knowledge.
2nd time it revives two of my workflows I was working on totally randomly, I don't recall when I had these two open, since every time I open it it seems to do something different. When I close the two it further revives an unsaved workflow, this last workflow did not even have a tab. I had to close the other two for it to pop up.
3rd time Opening it it once again does the basic workflow which I have no idea where that even came from as it's most definitely not in my workflows folder.
Something is very wrong with the workflow management and it should not be caching workflows that have already been discarded long ago.

### Steps to Reproduce

Use Comfy Ui and try working with workflows.

### Debug Logs

```powershell
No relevant log items.
```

### Other

Workflows should not be cached in first place, we store them in files in known locations, caching them when a person thought we deleted them can amount to a privacy risk too.

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.