ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

ComfyUI will sometimes randomly revert work to a previous state

Open chrisoyng opened this issue 1 year ago • 11 comments

Custom Node Testing

Your question

Sometimes when working on my workflows, it will randomly revert to a previous state (even if i save). I have no idea what the specific conditions are for this to happen.

E.g. open a subgraph, change some stuff, exit the subgraph, and the changes are gone. Or open a different workflow, come back, and it has gone back.

Mostly posting to see if someone very familiar with ComfyUI recognizes this type of issue.

Logs


Other

No response

chrisoyng avatar Aug 29 '25 00:08 chrisoyng

I'm also seeing this, especially as it relates to subgraphs. It can also be triggered by undo/redo operations. I've seen it a fair amount but most recently it appears all of the subgraphs I painstakingly fixed have gone back to a broken state from yesterday (multiple restarts ago, including restarting the browser)

TheXenocide avatar Aug 30 '25 03:08 TheXenocide

Also worth adding that what I'm seeing appears to be related to copy/pasting subgraphs. The issue I fixed yesterday that came back also reappeared in subgraphs that didn't exist yesterday (which were copied/pasted from the fixed subgraphs). It seems like maybe there's some id collisions going on somewhere? Like maybe subgraphs within subgraphs are accidentally sharing the same child nodes?

TheXenocide avatar Aug 30 '25 03:08 TheXenocide

Thanks for the information I suppose as more people experience this bug it will probably get fixed eventually

chrisoyng avatar Sep 08 '25 04:09 chrisoyng

What version of the app are you on?

christian-byrne avatar Sep 08 '25 11:09 christian-byrne

I'm also seeing this, especially as it relates to subgraphs. It can also be triggered by undo/redo operations. I've seen it a fair amount but most recently it appears all of the subgraphs I painstakingly fixed have gone back to a broken state from yesterday (multiple restarts ago, including restarting the browser)

Same thing. glad to see it's not just me, or I would go crazy! Seems like undo/redo is broken, and a quick look at the Discord server tells me it's still going on.

GordonShock avatar Sep 10 '25 18:09 GordonShock

Can report the same. The issue is happening after I've made a copy of the subgraph. Some changes are now not saved in the original subgraph.

krugdenis avatar Sep 18 '25 16:09 krugdenis

I have been avoiding subgraphs for the time being and have not had any issues since I stopped messing with them. That said, I really really want to be able to use them; I've been a little busy lately but when next I get a chance I'll try getting the latest version and playing with it all again

TheXenocide avatar Sep 23 '25 21:09 TheXenocide

This might be related to this bug: https://github.com/Comfy-Org/ComfyUI_frontend/issues/5749

krugdenis avatar Sep 24 '25 08:09 krugdenis

This might be related to this bug: Comfy-Org/ComfyUI_frontend#5749

I personally never use reroutes in subgraphs. That being said, there's hasn't been a workflow "reset" since the last update, though I avoid "ctrl+z" at all cost, and only have one workflow open at a time.

GordonShock avatar Sep 24 '25 13:09 GordonShock

I am also seeing that when I save, it opens the newly saved workflow, but it's actually the old one reloaded. I am at the point where I export workflows as a backup to make sure I have the newest one around.

I can't confirm that it's with Subgraphs, as I am fading them out again, because it's clumsy (order or inputs) and unreliable.

If it helps, here's my version info (Ubuntu on WSL2): Total VRAM 24564 MB, total RAM 46952 MB pytorch version: 2.9.0.dev20250719+cu129 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync Using pytorch attention Python version: 3.10.18 (main, Jun 5 2025, 13:14:17) [GCC 11.2.0] ComfyUI version: 0.3.60 ComfyUI frontend version: 1.28.3

alFrame avatar Sep 30 '25 11:09 alFrame

This issue is being marked stale because it has not had any activity for 30 days. Reply below within 7 days if your issue still isn't solved, and it will be left open. Otherwise, the issue will be closed automatically.

github-actions[bot] avatar Oct 30 '25 11:10 github-actions[bot]