[backport cloud/1.35] Nesting support for autogrow (#7710)

Backport of #7275 to `cloud/1.35`

Automatically created by backport workflow.

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7710-backport-cloud-1-35-Nesting-support-for-autogrow-2d16d73d365081559be8ee14b30a2d6d)
by [Unito](https://www.unito.io)

Co-authored-by: AustinMroz <austin@comfy.org>
This commit is contained in:
Comfy Org PR Bot
2025-12-23 02:02:03 +09:00
committed by GitHub
parent f5bd2bdab6
commit e3cdcc784e
3 changed files with 262 additions and 189 deletions

View File

@@ -118,8 +118,8 @@ describe('Autogrow', () => {
connectInput(node, 1, graph)
connectInput(node, 2, graph)
expect(node.inputs.length).toBe(4)
expect(node.inputs[0].name).toBe('test0')
expect(node.inputs[2].name).toBe('test2')
expect(node.inputs[0].name).toBe('0.test0')
expect(node.inputs[2].name).toBe('0.test2')
})
test('Can name by list of names', () => {
const graph = new LGraph()
@@ -130,8 +130,8 @@ describe('Autogrow', () => {
connectInput(node, 1, graph)
connectInput(node, 2, graph)
expect(node.inputs.length).toBe(3)
expect(node.inputs[0].name).toBe('a')
expect(node.inputs[2].name).toBe('c')
expect(node.inputs[0].name).toBe('0.a')
expect(node.inputs[2].name).toBe('0.c')
})
test('Can add autogrow with min input count', () => {
const node = testNode()