Skip to content

Conversation

@viva-jinyi
Copy link
Member

@viva-jinyi viva-jinyi commented Jul 27, 2025

Summary

  • Use collectAllNodes utility to recursively scan subgraphs for missing custom nodes
  • Update both useMissingNodes and useWorkflowPacks to include nodes from all graph levels
  • This ensures Manager can detect and list custom nodes that are inside subgraphs

Test plan

  • Create a workflow with custom nodes inside a subgraph
  • Load the workflow in a ComfyUI instance without those custom nodes installed
  • Open Manager → "Install Missing Custom Nodes"
  • Verify that custom nodes from inside subgraphs are now listed

Fixes #2032

┆Issue is synchronized with this Notion page by Unito

@viva-jinyi viva-jinyi requested a review from a team as a code owner July 27, 2025 07:56
@github-actions
Copy link

github-actions bot commented Jul 27, 2025

⚠️ Warnings

⚠️ Warning: E2E Test Coverage Missing

If this PR modifies behavior that can be covered by browser-based E2E tests, those tests are required. PRs lacking applicable test coverage may not be reviewed until added. Please add or update browser tests to ensure code quality and prevent regressions.

⚠️ Warning: Visual Documentation Missing

If this PR changes user-facing behavior, visual proof (screen recording or screenshot) is required. PRs without applicable visual documentation may not be reviewed until provided.
You can add it by:

  • GitHub: Drag & drop media directly into the PR description

  • YouTube: Include a link to a short demo

@viva-jinyi viva-jinyi force-pushed the fix/subgraph-missing-nodes branch from c144551 to 34b8f42 Compare July 27, 2025 07:57
@viva-jinyi viva-jinyi requested a review from a team as a code owner July 27, 2025 08:06
@viva-jinyi viva-jinyi self-assigned this Jul 27, 2025
@viva-jinyi viva-jinyi force-pushed the fix/subgraph-missing-nodes branch from a6f3d2d to 4cce37e Compare July 28, 2025 23:26
Use collectAllNodes to recursively scan subgraphs for missing custom nodes.

Fixes #2032
- Mock collectAllNodes to test subgraph node detection
- Update existing tests to use collectAllNodes mock
- Add new test cases for subgraph scenarios
@viva-jinyi viva-jinyi force-pushed the fix/subgraph-missing-nodes branch from c121a53 to 75a7cc9 Compare July 29, 2025 01:33
Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for fixing!

Comment on lines +116 to +119
if (!app.graph) return []
const allNodes = collectAllNodes(app.graph)
if (!allNodes.length) return []
const packs = await Promise.all(allNodes.map(workflowNodeToPack))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching this one

@christian-byrne christian-byrne merged commit 680c09a into main Jul 29, 2025
12 checks passed
@christian-byrne christian-byrne deleted the fix/subgraph-missing-nodes branch July 29, 2025 04:55
@christian-byrne christian-byrne added needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch area:subgraph labels Jul 29, 2025
@christian-byrne christian-byrne mentioned this pull request Jul 29, 2025
3 tasks
christian-byrne pushed a commit that referenced this pull request Aug 4, 2025
christian-byrne pushed a commit that referenced this pull request Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:subgraph needs-backport Fix/change that needs to be cherry-picked to the current feature freeze branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug/Oversight] Custom node suites are not picked up from subgraphs

3 participants