Skip to content

every operation triggers a "Failed to save workflow draft" error. This error persists even after manually disabling "Show error tab in side panel" in Settings > Error System. #13131

Open

Description

@GHOSTLXH

Custom Node Testing

Expected Behavior

I hope to have the option "whether to forcibly save the workflow draft after every operation" as a toggle in the settings that can be manually turned on or off. When this setting is turned off, it should still be possible to manually save the workflow draft, and a pop-up should appear when closing the entire web page, asking whether to save the workflow.

Actual Behavior

Every operation (whether dragging the workflow, generating an image, or any other action) triggers a "Failed to save workflow draft" error. This error persists even after manually disabling "Show error tab in side panel" in Settings > Error System.

Image

Steps to Reproduce

After entering ComfyUI, navigating to Workflow, clicking a saved workflow file, and making any changes (such as running the workflow, enabling nodes, creating groups, etc.), an error occurs.

Debug Logs

There is no error reported in the terminal.

Other

No response

Activity

  1. huanggou666 commented on Apr 3, 2026

    @huanggou666

    解决了吗 ,好多天了 一直弹

  2. huanggou666 commented on Apr 3, 2026

    @huanggou666

    ImageError
    Failed to save workflow draft

  3. clink2012 commented on Apr 3, 2026

    @clink2012

    I was experiencing the same issue in Chrome - and, this cleared it:

    The "Failed to save workflow draft" error in ComfyUI is typically caused by a known browser storage bug or an outdated frontend version.

    • Clear Browser Local Storage: This is the most common fix. Open your browser's developer console (F12), go to the Console tab, and run the following command: localStorage.removeItem('Comfy.Workflow.Drafts')
    • Then refresh the page.
    • Hard Refresh: Press Ctrl + F5 (or Cmd + Shift + R on Mac) to bypass the browser cache and reload the interface.
  4. simsim9-stack commented on Apr 27, 2026

    @simsim9-stack

    А как тоже самое сделать в firefox?

    localStorage.removeItem('Comfy.Workflow.Drafts')
    возвращает

    undefined

  5. Metam0rfosen commented on May 16, 2026

    @Metam0rfosen

    Same error here, very annoying.

  6. xmarre commented on Aug 7, 2026

    @xmarre

    I tracked this failure path down in the current frontend and opened Comfy-Org/ComfyUI_frontend#14897.

    The important failure is in V2 draft quota recovery: once a draft payload write hits localStorage quota, the store starts deleting older LRU draft payloads before it knows the incoming draft can be committed. If the incoming payload/final index still fails, those old payloads are already gone. The same path then calls a one-way markStorageUnavailable() latch, so every later autosave returns false for the rest of the page lifetime and produces the repeated Failed to save workflow draft behavior.

    On restart, index/payload drift cleanup removes entries whose payloads were deleted, which explains reports where draft history subsequently appears to vanish.

    #14897 makes failed saves non-destructive, keeps quota failures retryable, rolls tentative evictions back on all failure paths, preserves the newer workspace-transition write fence, and deduplicates the error notification per continuous failure episode. The focused persistence suite passes 72 tests plus lint, typecheck, and production build.

    I would strongly avoid recommending localStorage.clear() as a first-line workaround here: it destroys any draft data that is still recoverable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Potential BugUser is reporting a bug. This should be tested.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions