Remove workflow sidebar toggle from picker

ComfyUI only supports one sidebar at a time, so opening the
workflows panel just replaces the snapshot manager. Revert to
simple view-only behavior for cross-workflow snapshot browsing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 14:08:18 +01:00
parent f0e407616e
commit b933c34c73

View File

@@ -2833,14 +2833,6 @@ async function buildSidebar(el) {
if (entry.workflowKey === currentKey) {
viewingWorkflowKey = null;
} else {
// Open the workflows sidebar so the user can switch
try {
const sidebarStore = app.extensionManager?.sidebarTab;
const store = sidebarStore?.value ?? sidebarStore;
if (store?.toggleSidebarTab) {
store.toggleSidebarTab("workflows");
}
} catch { /* ignore */ }
viewingWorkflowKey = entry.workflowKey;
}
activeBranchSelections.clear();