-
Notifications
You must be signed in to change notification settings - Fork 511
Open
Labels
Description
Bug
When a user refreshes the page, a different workflow loads instead of the one they were working on.
Root Cause
Two interacting bugs in useWorkflowPersistenceV2.ts:
-
Draft cleanup removes active workflow's draft (line 124-127): Saved, unmodified workflows have their drafts removed during persistence. On reload, the session path lookup fails and
fallbackToLatestDraftloads a completely different workflow. -
Tab restoration never activates the correct workflow (line 274-277):
restoreWorkflowTabsState()callsopenWorkflowsInBackground()which only adds paths to the tab bar but never callsopenWorkflow()on the active tab.
Reproduction
- Open two workflows: A (saved, unmodified) as active tab, B (modified) as background tab
- Wait for persistence debounce (512ms)
- Refresh the page
- Workflow B is loaded instead of A
Related Issues
- ComfyUI keeps loading no or outdated workflows on startup ComfyUI#12628
- Constantly and permanent loss of open and saved workflows ComfyUI#10225
- My workflow got overwritten by another one when computer shutted down. ComfyUI#5095
- Switching between open workflow reset the workflow to past version #5465
- [Bug]: comfyui doesn't automatically load previous workflows even 'Persist workflow state and restore on page (re)load' is enabled, after update to 0.5.8 desktop#1435
- New UI, refresh page, all workflows except active workflow disappear (saved or unsaved) #5848
┆Issue is synchronized with this Notion page by Unito
Reactions are currently unavailable