From 4eec4cf13566777911786b4f75fc7cf5fdc041a4 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Tue, 24 Feb 2026 19:39:08 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20workflow=20key=20detection=20=E2=80=94=20?= =?UTF-8?q?use=20.key/.filename=20instead=20of=20.name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The ComfyUI activeWorkflow object doesn't have a .name property. It uses .key (path minus workflows/ prefix) and .filename (no extension). The old code always fell through to "default", making all snapshots share one key. Co-Authored-By: Claude Opus 4.6 --- js/snapshot_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/snapshot_manager.js b/js/snapshot_manager.js index 1769966..c6658b6 100644 --- a/js/snapshot_manager.js +++ b/js/snapshot_manager.js @@ -199,7 +199,7 @@ function quickHash(str) { function getWorkflowKey() { try { const wf = app.workflowManager?.activeWorkflow; - return wf?.name || wf?.path || "default"; + return wf?.key || wf?.filename || wf?.path || "default"; } catch { return "default"; }