From bdf6d4dea26d69ceb99594f98fb90ab9cbbd6cab Mon Sep 17 00:00:00 2001 From: AustinMroz Date: Thu, 20 Nov 2025 17:07:15 -0800 Subject: [PATCH] Allow updating position and mode on missing nodes (#6792) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When a node is missing, attempts to serialize it will return the "last known good" serialization to ensure that the node will still be functional in the future (the node pack is installed/comfyui is updated). However, this means even small and safe changes (like moving the node out of the way or bypassing it so the workflow can be run) will be discarded on reload. This is resolved by including the updated position and mode when returning early. | Before | After | | ------ | ----- | | before | after | Thanks to @Kosinkadink for bringing this up ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6792-Allow-updating-position-and-mode-on-missing-nodes-2b26d73d365081ed8c22fafe5348c49f) by [Unito](https://www.unito.io) --- src/lib/litegraph/src/LGraphNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/litegraph/src/LGraphNode.ts b/src/lib/litegraph/src/LGraphNode.ts index 90a06afa3..d4149e6ec 100644 --- a/src/lib/litegraph/src/LGraphNode.ts +++ b/src/lib/litegraph/src/LGraphNode.ts @@ -882,7 +882,7 @@ export class LGraphNode // special case for when there were errors if (this.constructor === LGraphNode && this.last_serialization) - return this.last_serialization + return { ...this.last_serialization, mode: o.mode, pos: o.pos } if (this.inputs) o.inputs = this.inputs.map((input) => inputAsSerialisable(input))