From 679288500a9cf1e48a9eaa00d72438641b9fd50a Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Fri, 30 Jan 2026 16:51:31 -0800 Subject: [PATCH] fix(cloud): disable legacy node templates feature on cloud (#8462) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Disables the legacy "node templates" feature on ComfyUI Cloud. This feature is accessed via right-clicking on the canvas and is distinct from both subgraphs and workflow templates. ## Problem The legacy node templates feature presents false-positive errors on cloud: - Errors appear when no existing templates exist initially - After refresh, workflow progress is lost from workflow tabs - Node templates fail to delete (except the first one) ## Solution Conditionally load the `nodeTemplates` extension only for non-cloud builds by wrapping the import in `if (!isCloud)`. ## Testing - [ ] Verify right-click canvas menu no longer shows "Node Templates" submenu on cloud - [ ] Verify right-click canvas menu no longer shows "Save Selected as Template" on cloud - [ ] Verify the feature still works on desktop/OSS builds ## Related - Refs: COM-14105 - Related issue: #4056 (Migrate Node Templates to Workflows) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8462-fix-cloud-disable-legacy-node-templates-feature-on-cloud-2f86d73d36508162948cc897d4c7ef5e) by [Unito](https://www.unito.io) Co-authored-by: Amp --- src/extensions/core/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/extensions/core/index.ts b/src/extensions/core/index.ts index fe8cbf2c7..457ef244f 100644 --- a/src/extensions/core/index.ts +++ b/src/extensions/core/index.ts @@ -13,7 +13,9 @@ import './imageCompare' import './imageCrop' import './load3d' import './maskeditor' -import './nodeTemplates' +if (!isCloud) { + await import('./nodeTemplates') +} import './noteNode' import './previewAny' import './rerouteNode'