From 61bf9406222c8c49aa47772d703061fab9c6c17b Mon Sep 17 00:00:00 2001 From: bymyself Date: Thu, 5 Nov 2026 02:42:45 +0000 Subject: [PATCH 1/5] fix: report prompt build failures with an id-free Sentry fingerprint When graphToPrompt throws at queue time, only PostHog learned that the prompt build failed. The raw error carried node ids and slot indexes in its message, so one failure could split into a separate Sentry issue per id. Report it through reportError as error_building_prompt, with a fingerprint of the error name and the message with bracketed ids and numbers removed. --- src/scripts/app.test.ts | 20 +++++++++ src/scripts/app.ts | 7 +++ src/utils/promptBuildErrorFingerprint.test.ts | 43 +++++++++++++++++++ src/utils/promptBuildErrorFingerprint.ts | 8 ++++ 4 files changed, 78 insertions(+) create mode 100644 src/utils/promptBuildErrorFingerprint.test.ts create mode 100644 src/utils/promptBuildErrorFingerprint.ts diff --git a/src/scripts/app.test.ts b/src/scripts/app.test.ts index d97e71f1213..98caa19f43e 100644 --- a/src/scripts/app.test.ts +++ b/src/scripts/app.test.ts @@ -2505,6 +2505,26 @@ describe('ComfyApp', () => { } }) + it('reports prompt construction failures with an id-free fingerprint', async () => { + prepareEmptyPromptQueue() + const failure = new Error( + 'No output node found for id [632] slot [0] images' + ) + vi.spyOn(app, 'graphToPrompt').mockRejectedValue(failure) + + await expect(app.queuePrompt(0)).rejects.toThrow(failure) + expect(reportError).toHaveBeenCalledWith(failure, { + surface: 'graph', + errorType: 'error_building_prompt', + fingerprint: [ + 'error_building_prompt', + 'Error', + 'No output node found for id [] slot [] images' + ], + logToConsole: false + }) + }) + it('stores execution intent when workflow context collection fails', async () => { prepareEmptyPromptQueue() const registry = new TelemetryRegistry() diff --git a/src/scripts/app.ts b/src/scripts/app.ts index c6fbd692b2a..df75cbd3c55 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -154,6 +154,7 @@ import type { NodeExecutionId } from '@comfyorg/graph-model/nodeIdentification' import { getErrorMessage } from '@comfyorg/shared-frontend-utils/errorUtil' import { normalizePromptError } from '@/utils/executionErrorUtil' import { graphToPrompt, unwrapExportedWidgetValue } from '@/utils/executionUtil' +import { promptBuildErrorFingerprint } from '@/utils/promptBuildErrorFingerprint' import { parseJsonWithNonFinite } from '@/utils/jsonUtil' import { getCnrIdFromProperties } from '@/platform/workflowErrors/nodeReplacement/cnrIdUtil' import { useMissingNodesErrorStore } from '@/platform/workflowErrors/nodeReplacement/missingNodesErrorStore' @@ -1867,6 +1868,12 @@ export class ComfyApp implements IComfyApp { failureReason: 'prompt_build_failed', ...workflowExecutionIntent }) + reportError(error, { + surface: 'graph', + errorType: 'error_building_prompt', + fingerprint: promptBuildErrorFingerprint(error), + logToConsole: false + }) throw error } ) diff --git a/src/utils/promptBuildErrorFingerprint.test.ts b/src/utils/promptBuildErrorFingerprint.test.ts new file mode 100644 index 00000000000..3d803cf2628 --- /dev/null +++ b/src/utils/promptBuildErrorFingerprint.test.ts @@ -0,0 +1,43 @@ +import { describe, expect, it } from 'vitest' + +import { promptBuildErrorFingerprint } from '@/utils/promptBuildErrorFingerprint' + +describe('promptBuildErrorFingerprint', () => { + it('groups the same failure across different node ids', () => { + const first = new Error('No output node found for id [632] slot [0] images') + const second = new Error( + 'No output node found for id [12:7] slot [3] images' + ) + + expect(promptBuildErrorFingerprint(first)).toEqual( + promptBuildErrorFingerprint(second) + ) + }) + + it('keeps different failure kinds apart', () => { + const missingOutput = new Error( + 'No output node found for id [1] slot [0] x' + ) + const missingInput = new TypeError( + 'No input found for flattened id [1] slot [0]' + ) + + expect(promptBuildErrorFingerprint(missingOutput)).not.toEqual( + promptBuildErrorFingerprint(missingInput) + ) + }) + + it('strips bare numeric ids outside brackets', () => { + expect( + promptBuildErrorFingerprint(new Error('Node 42 has no graph')) + ).toEqual(['error_building_prompt', 'Error', 'Node N has no graph']) + }) + + it('uses the error name for values that are not errors', () => { + expect(promptBuildErrorFingerprint('boom 12')).toEqual([ + 'error_building_prompt', + 'Error', + 'boom N' + ]) + }) +}) diff --git a/src/utils/promptBuildErrorFingerprint.ts b/src/utils/promptBuildErrorFingerprint.ts new file mode 100644 index 00000000000..54f18af68ff --- /dev/null +++ b/src/utils/promptBuildErrorFingerprint.ts @@ -0,0 +1,8 @@ +import { toError } from '@comfyorg/shared-frontend-utils/errorUtil' + +/** Sentry fingerprint for a prompt build failure, with node ids and slot indexes removed. */ +export function promptBuildErrorFingerprint(error: unknown): string[] { + const { name, message } = toError(error) + const shape = message.replace(/\[[^\]]*\]/g, '[]').replace(/\d+/g, 'N') + return ['error_building_prompt', name, shape] +} From c2482c113b05b41f8abdbde50492dae2764763be Mon Sep 17 00:00:00 2001 From: bymyself Date: Thu, 5 Nov 2026 03:19:04 +0000 Subject: [PATCH 2/5] fix: normalize string node ids, titles and paths in prompt build fingerprints Recursion errors put the node id, its title and the subgraph path after 'of node', outside any brackets, and node ids can be non-numeric strings. Collapse everything after 'of node' and a trailing ': ' so the same failure from different nodes shares one fingerprint. --- src/utils/promptBuildErrorFingerprint.test.ts | 37 +++++++++++++++++++ src/utils/promptBuildErrorFingerprint.ts | 8 +++- 2 files changed, 43 insertions(+), 2 deletions(-) diff --git a/src/utils/promptBuildErrorFingerprint.test.ts b/src/utils/promptBuildErrorFingerprint.test.ts index 3d803cf2628..484fb989650 100644 --- a/src/utils/promptBuildErrorFingerprint.test.ts +++ b/src/utils/promptBuildErrorFingerprint.test.ts @@ -33,6 +33,43 @@ describe('promptBuildErrorFingerprint', () => { ).toEqual(['error_building_prompt', 'Error', 'Node N has no graph']) }) + it.for([ + { direction: 'input', path: '' }, + { direction: 'output', path: ' at path sub-a:sub-b' } + ])( + 'groups recursion errors across string node ids, titles and paths ($direction)', + ({ direction, path }) => { + function recursionError(nodeInfo: string, uniqueId: string) { + const error = new Error( + `Circular reference detected while resolving ${direction} 0 of node ${nodeInfo}${path}. ` + + `This creates an infinite loop in link resolution. UniqueID: [${uniqueId}]` + ) + error.name = 'RecursionError' + return error + } + + expect( + promptBuildErrorFingerprint( + recursionError('alpha (Load. Image)', 'x:alpha[I]0') + ) + ).toEqual( + promptBuildErrorFingerprint(recursionError('beta', 'y:beta[I]0')) + ) + } + ) + + it('groups errors that end with a string node id', () => { + expect( + promptBuildErrorFingerprint( + new TypeError('Node is not a subgraph node: alpha') + ) + ).toEqual( + promptBuildErrorFingerprint( + new TypeError('Node is not a subgraph node: beta') + ) + ) + }) + it('uses the error name for values that are not errors', () => { expect(promptBuildErrorFingerprint('boom 12')).toEqual([ 'error_building_prompt', diff --git a/src/utils/promptBuildErrorFingerprint.ts b/src/utils/promptBuildErrorFingerprint.ts index 54f18af68ff..e71ad5ffd1d 100644 --- a/src/utils/promptBuildErrorFingerprint.ts +++ b/src/utils/promptBuildErrorFingerprint.ts @@ -1,8 +1,12 @@ import { toError } from '@comfyorg/shared-frontend-utils/errorUtil' -/** Sentry fingerprint for a prompt build failure, with node ids and slot indexes removed. */ +/** Sentry fingerprint for a prompt build failure, with node ids, titles, paths and slot indexes removed. */ export function promptBuildErrorFingerprint(error: unknown): string[] { const { name, message } = toError(error) - const shape = message.replace(/\[[^\]]*\]/g, '[]').replace(/\d+/g, 'N') + const shape = message + .replace(/ of node [\s\S]*$/, ' of node N') + .replace(/\[[^\]]*\]/g, '[]') + .replace(/: \S+$/, ': N') + .replace(/\d+/g, 'N') return ['error_building_prompt', name, shape] } From 9689aea93756f1de02b9d41eba238bdc29b437c3 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Wed, 4 Nov 2026 21:13:51 -0800 Subject: [PATCH 3/5] fix: normalize the NullGraphError and subgraph-hierarchy node ids too `SubgraphNode has no graph[ during input resolution]` (ExecutableNodeDTO.resolveInput, SubgraphNode.rootGraph) and `Circular reference detected at depth in node () of subgraph '<name>'.` (SubgraphNode.getInnerNodes) carry the id outside brackets. Node ids are branded strings, so stripping digits did not reach them and the same failure still produced one Sentry issue per node. The replacement list is now one ordered table with each entry naming the thrower whose message shape it normalizes, so a new shape is added beside the one it belongs with. Regressions use the throwers' own messages rather than restating them: promptBuildErrorFingerprint.producers.test.ts drives the real NullGraphError and RecursionError out of SubgraphNode with nonnumeric ids, and the unit cases cover both NullGraphError sites, numeric and string ids grouping together, and the two sites staying apart. --- ...mptBuildErrorFingerprint.producers.test.ts | 73 +++++++++++++++++++ src/utils/promptBuildErrorFingerprint.test.ts | 65 ++++++++++++++++- src/utils/promptBuildErrorFingerprint.ts | 38 ++++++++-- 3 files changed, 167 insertions(+), 9 deletions(-) create mode 100644 src/utils/promptBuildErrorFingerprint.producers.test.ts diff --git a/src/utils/promptBuildErrorFingerprint.producers.test.ts b/src/utils/promptBuildErrorFingerprint.producers.test.ts new file mode 100644 index 00000000000..5150b192cc9 --- /dev/null +++ b/src/utils/promptBuildErrorFingerprint.producers.test.ts @@ -0,0 +1,73 @@ +import { beforeEach, describe, expect, it } from 'vitest' + +import { + createTestSubgraph, + createTestSubgraphNode, + resetSubgraphFixtureState +} from '@/lib/litegraph/src/subgraph/__fixtures__/subgraphHelpers' +import { promptBuildErrorFingerprint } from '@/utils/promptBuildErrorFingerprint' + +/** + * The fingerprint has to normalize the message shapes the prompt build throwers + * actually emit, so these cases take their messages from the throwers instead of + * restating them. Node ids are branded strings, so the ids here are nonnumeric. + */ +describe('promptBuildErrorFingerprint on real prompt build throwers', () => { + beforeEach(() => { + resetSubgraphFixtureState() + }) + + function fingerprintOfThrow(run: () => void): string[] { + try { + run() + } catch (error) { + return promptBuildErrorFingerprint(error) + } + throw new Error('expected the prompt build thrower to throw') + } + + it('groups SubgraphNode.rootGraph NullGraphError across string node ids', () => { + function detachedRootGraphAccess(nodeId: string) { + const subgraphNode = createTestSubgraphNode(createTestSubgraph(), { + id: nodeId + }) + subgraphNode.graph = null + return fingerprintOfThrow(() => subgraphNode.rootGraph) + } + + expect(detachedRootGraphAccess('alpha')).toEqual([ + 'error_building_prompt', + 'NullGraphError', + 'SubgraphNode N has no graph' + ]) + expect(detachedRootGraphAccess('beta')).toEqual( + detachedRootGraphAccess('alpha') + ) + }) + + it('groups SubgraphNode.getInnerNodes RecursionError across ids, titles and subgraph names', () => { + function selfVisitingInnerNodes( + nodeId: string, + title: string, + subgraphName: string + ) { + const subgraphNode = createTestSubgraphNode( + createTestSubgraph({ name: subgraphName }), + { id: nodeId } + ) + subgraphNode.title = title + return fingerprintOfThrow(() => + subgraphNode.getInnerNodes(new Map(), [], [], new Set([subgraphNode])) + ) + } + + expect(selfVisitingInnerNodes('alpha', 'Load. Image', 'Detailer')).toEqual([ + 'error_building_prompt', + 'RecursionError', + 'Circular reference detected at depth N in node N of subgraph N' + ]) + expect(selfVisitingInnerNodes('beta', 'Upscale', 'Refiner')).toEqual( + selfVisitingInnerNodes('alpha', 'Load. Image', 'Detailer') + ) + }) +}) diff --git a/src/utils/promptBuildErrorFingerprint.test.ts b/src/utils/promptBuildErrorFingerprint.test.ts index 484fb989650..9e575fdf4dc 100644 --- a/src/utils/promptBuildErrorFingerprint.test.ts +++ b/src/utils/promptBuildErrorFingerprint.test.ts @@ -27,10 +27,69 @@ describe('promptBuildErrorFingerprint', () => { ) }) - it('strips bare numeric ids outside brackets', () => { + it.for([ + { + thrower: 'ExecutableNodeDTO.resolveInput', + suffix: ' during input resolution' + }, + { thrower: 'SubgraphNode.rootGraph', suffix: '' } + ])( + 'groups NullGraphError across numeric and string subgraph node ids ($thrower)', + ({ suffix }) => { + function nullGraphError(nodeId: string) { + const error = new Error(`SubgraphNode ${nodeId} has no graph${suffix}`) + error.name = 'NullGraphError' + return error + } + + expect(promptBuildErrorFingerprint(nullGraphError('alpha'))).toEqual([ + 'error_building_prompt', + 'NullGraphError', + `SubgraphNode N has no graph${suffix}` + ]) + expect(promptBuildErrorFingerprint(nullGraphError('beta'))).toEqual( + promptBuildErrorFingerprint(nullGraphError('alpha')) + ) + expect(promptBuildErrorFingerprint(nullGraphError('42'))).toEqual( + promptBuildErrorFingerprint(nullGraphError('alpha')) + ) + } + ) + + it('keeps the two NullGraphError sites apart', () => { + const duringInput = new Error( + 'SubgraphNode alpha has no graph during input resolution' + ) + const rootGraph = new Error('SubgraphNode alpha has no graph') + + expect(promptBuildErrorFingerprint(duringInput)).not.toEqual( + promptBuildErrorFingerprint(rootGraph) + ) + }) + + it('groups subgraph hierarchy recursion errors across ids, titles, names and depths', () => { + function hierarchyRecursionError( + depth: number, + nodeInfo: string, + subgraphName: string + ) { + const error = new Error( + `Circular reference detected at depth ${depth} in node ${nodeInfo} of subgraph '${subgraphName}'. ` + + `This creates an infinite loop in the subgraph hierarchy.` + ) + error.name = 'RecursionError' + return error + } + expect( - promptBuildErrorFingerprint(new Error('Node 42 has no graph')) - ).toEqual(['error_building_prompt', 'Error', 'Node N has no graph']) + promptBuildErrorFingerprint( + hierarchyRecursionError(2, 'alpha (Load. Image)', 'Detailer') + ) + ).toEqual( + promptBuildErrorFingerprint( + hierarchyRecursionError(3, 'beta', 'Unnamed Subgraph') + ) + ) }) it.for([ diff --git a/src/utils/promptBuildErrorFingerprint.ts b/src/utils/promptBuildErrorFingerprint.ts index e71ad5ffd1d..14404f7f66c 100644 --- a/src/utils/promptBuildErrorFingerprint.ts +++ b/src/utils/promptBuildErrorFingerprint.ts @@ -1,12 +1,38 @@ import { toError } from '@comfyorg/shared-frontend-utils/errorUtil' -/** Sentry fingerprint for a prompt build failure, with node ids, titles, paths and slot indexes removed. */ +/** + * Positions where a prompt build thrower interpolates a node id, node title, + * subgraph name or subgraph instance path into its message without bracketing + * it. Node ids are branded strings, so stripping digits does not reach them: + * each position gets a placeholder that keeps the failure kind and drops the + * identity. Every entry names its thrower, so a new message shape is added + * next to the one it belongs with. Applied in order. + */ +const IDENTITY_POSITIONS: readonly (readonly [RegExp, string])[] = [ + // ExecutableNodeDTO.resolveInput / .resolveOutput RecursionError: + // `... of node <id> (<title>) at path <a:b>. ... UniqueID: [<id>]` + [/ of node [\s\S]*$/, ' of node N'], + // SubgraphNode.getInnerNodes RecursionError: + // `... in node <id> (<title>) of subgraph '<name>'. ...` + [/ in node [\s\S]*? of subgraph [\s\S]*$/, ' in node N of subgraph N'], + // ExecutableNodeDTO.resolveInput and SubgraphNode.rootGraph NullGraphError: + // `SubgraphNode <id> has no graph[ during input resolution]` + [/\b(Subgraph)?Node \S+ has no graph/, '$1Node N has no graph'], + // Bracketed ids, execution ids and slot indexes: `id [12:7] slot [0]`. + [/\[[^\]]*\]/g, '[]'], + // ExecutableNodeDTO.resolveSubgraphOutput TypeError: + // `Node is not a subgraph node: <id>` + [/: \S+$/, ': N'], + // Remaining bare numbers: slot indexes, recursion depths, numeric ids. + [/\d+/g, 'N'] +] + +/** Sentry fingerprint for a prompt build failure, with node ids, titles, subgraph names, paths and slot indexes removed. */ export function promptBuildErrorFingerprint(error: unknown): string[] { const { name, message } = toError(error) - const shape = message - .replace(/ of node [\s\S]*$/, ' of node N') - .replace(/\[[^\]]*\]/g, '[]') - .replace(/: \S+$/, ': N') - .replace(/\d+/g, 'N') + const shape = IDENTITY_POSITIONS.reduce( + (text, [position, placeholder]) => text.replace(position, placeholder), + message + ) return ['error_building_prompt', name, shape] } From aaceb9d1163af68f78d991581136bd531d762823 Mon Sep 17 00:00:00 2001 From: Christian Byrne <cbyrne@comfy.org> Date: Wed, 4 Nov 2026 23:11:26 -0800 Subject: [PATCH 4/5] fix: normalize prompt output names in fingerprints --- src/scripts/app.test.ts | 2 +- ...mptBuildErrorFingerprint.producers.test.ts | 5 ----- src/utils/promptBuildErrorFingerprint.test.ts | 6 ++--- src/utils/promptBuildErrorFingerprint.ts | 22 ++++--------------- 4 files changed, 7 insertions(+), 28 deletions(-) diff --git a/src/scripts/app.test.ts b/src/scripts/app.test.ts index 98caa19f43e..04cd45eda78 100644 --- a/src/scripts/app.test.ts +++ b/src/scripts/app.test.ts @@ -2519,7 +2519,7 @@ describe('ComfyApp', () => { fingerprint: [ 'error_building_prompt', 'Error', - 'No output node found for id [] slot [] images' + 'No output node found for id [] slot []' ], logToConsole: false }) diff --git a/src/utils/promptBuildErrorFingerprint.producers.test.ts b/src/utils/promptBuildErrorFingerprint.producers.test.ts index 5150b192cc9..796bb198de0 100644 --- a/src/utils/promptBuildErrorFingerprint.producers.test.ts +++ b/src/utils/promptBuildErrorFingerprint.producers.test.ts @@ -7,11 +7,6 @@ import { } from '@/lib/litegraph/src/subgraph/__fixtures__/subgraphHelpers' import { promptBuildErrorFingerprint } from '@/utils/promptBuildErrorFingerprint' -/** - * The fingerprint has to normalize the message shapes the prompt build throwers - * actually emit, so these cases take their messages from the throwers instead of - * restating them. Node ids are branded strings, so the ids here are nonnumeric. - */ describe('promptBuildErrorFingerprint on real prompt build throwers', () => { beforeEach(() => { resetSubgraphFixtureState() diff --git a/src/utils/promptBuildErrorFingerprint.test.ts b/src/utils/promptBuildErrorFingerprint.test.ts index 9e575fdf4dc..3ab68ed1382 100644 --- a/src/utils/promptBuildErrorFingerprint.test.ts +++ b/src/utils/promptBuildErrorFingerprint.test.ts @@ -3,11 +3,9 @@ import { describe, expect, it } from 'vitest' import { promptBuildErrorFingerprint } from '@/utils/promptBuildErrorFingerprint' describe('promptBuildErrorFingerprint', () => { - it('groups the same failure across different node ids', () => { + it('groups missing output nodes across ids, slots and output names', () => { const first = new Error('No output node found for id [632] slot [0] images') - const second = new Error( - 'No output node found for id [12:7] slot [3] images' - ) + const second = new Error('No output node found for id [12:7] slot [3] mask') expect(promptBuildErrorFingerprint(first)).toEqual( promptBuildErrorFingerprint(second) diff --git a/src/utils/promptBuildErrorFingerprint.ts b/src/utils/promptBuildErrorFingerprint.ts index 14404f7f66c..621e6994e13 100644 --- a/src/utils/promptBuildErrorFingerprint.ts +++ b/src/utils/promptBuildErrorFingerprint.ts @@ -1,29 +1,15 @@ import { toError } from '@comfyorg/shared-frontend-utils/errorUtil' -/** - * Positions where a prompt build thrower interpolates a node id, node title, - * subgraph name or subgraph instance path into its message without bracketing - * it. Node ids are branded strings, so stripping digits does not reach them: - * each position gets a placeholder that keeps the failure kind and drops the - * identity. Every entry names its thrower, so a new message shape is added - * next to the one it belongs with. Applied in order. - */ const IDENTITY_POSITIONS: readonly (readonly [RegExp, string])[] = [ - // ExecutableNodeDTO.resolveInput / .resolveOutput RecursionError: - // `... of node <id> (<title>) at path <a:b>. ... UniqueID: [<id>]` [/ of node [\s\S]*$/, ' of node N'], - // SubgraphNode.getInnerNodes RecursionError: - // `... in node <id> (<title>) of subgraph '<name>'. ...` [/ in node [\s\S]*? of subgraph [\s\S]*$/, ' in node N of subgraph N'], - // ExecutableNodeDTO.resolveInput and SubgraphNode.rootGraph NullGraphError: - // `SubgraphNode <id> has no graph[ during input resolution]` [/\b(Subgraph)?Node \S+ has no graph/, '$1Node N has no graph'], - // Bracketed ids, execution ids and slot indexes: `id [12:7] slot [0]`. + [ + /^(No output node found for id \[[^\]]*\] slot \[[^\]]*\])\s+[\s\S]+$/, + '$1' + ], [/\[[^\]]*\]/g, '[]'], - // ExecutableNodeDTO.resolveSubgraphOutput TypeError: - // `Node is not a subgraph node: <id>` [/: \S+$/, ': N'], - // Remaining bare numbers: slot indexes, recursion depths, numeric ids. [/\d+/g, 'N'] ] From ef43424d560c2719bc28cb9d55fb85c7cff89f19 Mon Sep 17 00:00:00 2001 From: Christian Byrne <cbyrne@comfy.org> Date: Wed, 4 Nov 2026 23:31:02 -0800 Subject: [PATCH 5/5] fix: scope prompt recursion fingerprint matching --- src/utils/promptBuildErrorFingerprint.producers.test.ts | 3 +++ src/utils/promptBuildErrorFingerprint.ts | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/utils/promptBuildErrorFingerprint.producers.test.ts b/src/utils/promptBuildErrorFingerprint.producers.test.ts index 796bb198de0..020bc69eb89 100644 --- a/src/utils/promptBuildErrorFingerprint.producers.test.ts +++ b/src/utils/promptBuildErrorFingerprint.producers.test.ts @@ -64,5 +64,8 @@ describe('promptBuildErrorFingerprint on real prompt build throwers', () => { expect(selfVisitingInnerNodes('beta', 'Upscale', 'Refiner')).toEqual( selfVisitingInnerNodes('alpha', 'Load. Image', 'Detailer') ) + expect( + selfVisitingInnerNodes('gamma', 'Load of node Image', 'Enhancer') + ).toEqual(selfVisitingInnerNodes('alpha', 'Load. Image', 'Detailer')) }) }) diff --git a/src/utils/promptBuildErrorFingerprint.ts b/src/utils/promptBuildErrorFingerprint.ts index 621e6994e13..de8cc10804d 100644 --- a/src/utils/promptBuildErrorFingerprint.ts +++ b/src/utils/promptBuildErrorFingerprint.ts @@ -1,7 +1,10 @@ import { toError } from '@comfyorg/shared-frontend-utils/errorUtil' const IDENTITY_POSITIONS: readonly (readonly [RegExp, string])[] = [ - [/ of node [\s\S]*$/, ' of node N'], + [ + /^(Circular reference detected while resolving (?:input|output) \d+ of node) [\s\S]*$/, + '$1 N' + ], [/ in node [\s\S]*? of subgraph [\s\S]*$/, ' in node N of subgraph N'], [/\b(Subgraph)?Node \S+ has no graph/, '$1Node N has no graph'], [