Revert PRs #4506 and #4507 - Fix execution output issues (#4508)

This commit is contained in:
Christian Byrne
2025-07-23 17:53:04 -07:00
committed by GitHub
parent e34d9bb411
commit 052d5320c0
4 changed files with 11 additions and 59 deletions

View File

@@ -14,7 +14,6 @@ import type {
ComfyApiWorkflow,
ComfyWorkflowJSON
} from '@/schemas/comfyWorkflowSchema'
import { useExecutionStore } from '@/stores/executionStore'
import { ExecutableGroupNodeDTO, isGroupNode } from './executableGroupNodeDto'
import { compressWidgetInputSlots } from './litegraphUtil'
@@ -59,8 +58,6 @@ export const graphToPrompt = async (
options: { sortNodes?: boolean; queueNodeIds?: NodeId[] } = {}
): Promise<{ workflow: ComfyWorkflowJSON; output: ComfyApiWorkflow }> => {
const { sortNodes = false, queueNodeIds } = options
const executionStore = useExecutionStore()
executionStore.locatorIdToExecutionIdMap.clear()
for (const node of graph.computeExecutionOrder(false)) {
const innerNodes = node.getInnerNodes
@@ -162,13 +159,6 @@ export const graphToPrompt = async (
]
}
// Temporary workaround for Subgraph phase 1. Overwrites the ID, but keeps the image.
const baseNodeId = node.id.split(':').at(-1)
executionStore.locatorIdToExecutionIdMap.set(
`${node.subgraphId}:${baseNodeId}`,
node.id
)
output[String(node.id)] = {
inputs,
// TODO(huchenlei): Filter out all nodes that cannot be mapped to a