Merge remote-tracking branch 'origin/main' into feat/new-workflow-templates

This commit is contained in:
Johnpaul
2025-08-27 22:53:16 +01:00
57 changed files with 12929 additions and 20016 deletions

View File

@@ -63,6 +63,7 @@ import { ExtensionManager } from '@/types/extensionTypes'
import type { NodeExecutionId } from '@/types/nodeIdentification'
import { ColorAdjustOptions, adjustColor } from '@/utils/colorUtil'
import { graphToPrompt } from '@/utils/executionUtil'
import { forEachNode } from '@/utils/graphTraversalUtil'
import {
getNodeByExecutionId,
triggerCallbackOnAllNodes
@@ -1700,12 +1701,13 @@ export class ComfyApp {
for (const nodeId in defs) {
this.registerNodeDef(nodeId, defs[nodeId])
}
for (const node of this.graph.nodes) {
// Refresh combo widgets in all nodes including those in subgraphs
forEachNode(this.graph, (node) => {
const def = defs[node.type]
// Allow primitive nodes to handle refresh
node.refreshComboInNode?.(defs)
if (!def?.input) continue
if (!def?.input) return
if (node.widgets) {
const nodeInputs = def.input
@@ -1732,7 +1734,7 @@ export class ComfyApp {
}
}
}
}
})
await useExtensionService().invokeExtensionsAsync(
'refreshComboInNodes',