Skip to content

[fix] Prevent incorrect 'frontend_only' badges in subgraphs #4571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2025

Conversation

christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented Jul 29, 2025

Fixes #4566

This PR fixes an issue where pressing 'r' in a subgraph would cause all nodes to incorrectly display 'frontend_only' badges. The root cause was a fragile pattern in updateVueAppNodeDefs() that created frontend_only definitions for ALL nodes first, then relied on object spreading to overwrite them - which could fail in certain conditions.

The fix ensures frontend_only definitions are only created for nodes that genuinely lack backend definitions, eliminating the reliance on object spread ordering.

Related:

┆Issue is synchronized with this Notion page by Unito

…ckend definitions

Fixes #4566

The previous implementation created frontend_only definitions for ALL LiteGraph registered nodes, then relied on object spreading to overwrite them with backend definitions. This fragile pattern could fail in certain conditions, particularly in subgraphs, causing all nodes to show 'frontend_only' badges.

The fix now only creates frontend_only definitions for nodes that genuinely lack backend definitions, eliminating the reliance on object spread ordering and preventing incorrect badge display.
@christian-byrne christian-byrne requested a review from a team as a code owner July 29, 2025 05:08
Copy link

github-actions bot commented Jul 29, 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

@christian-byrne christian-byrne merged commit 98d694f into main Jul 29, 2025
13 checks passed
@christian-byrne christian-byrne deleted the fix/subgraph-frontend-only-badges branch July 29, 2025 06:05
@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
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]: Pressing "r" hotkey in subgraph causes all nodes to show "frontend_only" badges
1 participant