Skip to content

Still Draft Feature: ECS Migration - #14246

Merged
christian-byrne merged 30 commits into
mainfrom
feature/ecs-migration
Aug 24, 2026
Merged

christian-byrne merged 30 commits into
mainfrom
feature/ecs-migration

Conversation

@DrJKL

@DrJKL DrJKL commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Still-draft feature branch for migrating entity state from LiteGraph objects and runtime mirrors into dedicated stores with derived, reactive views.

This consolidates the reviewed ECS migration slices, strengthens their coverage, incorporates the layout-state follow-up, and documents the current migration status and remaining work.

Changes

  • Move widget values and node shell state into dedicated stores.
  • Make link topology the source of truth for connectivity.
  • Store reroute chains while deriving membership and floating-link state.
  • Derive widgeted input connectivity, badges, and promoted widget rows from store-backed state.
  • Remove the input and output runtime link mirrors.
  • Keep DOM measurements separate from persisted node layout state.
  • Add migration coverage, extension guidance, and architecture/status documentation.

Reviewed PRs merged into this feature branch:

Review Focus

  • Store ownership and synchronization boundaries.
  • Serialization, undo/redo, subgraph, and extension compatibility.
  • Whether remaining direct entity state should migrate before this feature leaves draft.

Status

Still draft. The branch is rebased onto main; CI is running against the rebased history.

@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright: ✅ 1991 passed, 0 failed · 2 flaky

📊 Browser Reports
  • chromium: View Report (✅ 1970 / ❌ 0 / ⚠️ 2 / ⏭️ 5)
  • chromium-2x: View Report (✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0)
  • chromium-0.5x: View Report (✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0)
  • mobile-chrome: View Report (✅ 18 / ❌ 0 / ⚠️ 0 / ⏭️ 0)
  • New-test walkthrough (chromium, recorded video): View Report

🎨 Storybook: ✅ Built — View Storybook

Details

⏰ Completed at: 08/24/2026, 10:47:07 AM UTC

Links

📦 Bundle Size

⚠️ Size data collection failed. Check the CI workflow logs.

⚡ Performance Report

canvas-idle: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 64.2 MB heap
canvas-mouse-sweep: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 70.8 MB heap
canvas-zoom-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 69.2 MB heap
dom-widget-clipping: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 59.7 MB heap
large-graph-idle: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 65.5 MB heap
large-graph-pan: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 1ms TBT · 77.5 MB heap
large-graph-zoom: · 60.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 75.8 MB heap
legacy-node-drag: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 72.4 MB heap
minimap-idle: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 69.1 MB heap
subgraph-dom-widget-clipping: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 83.8 MB heap
subgraph-idle: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 65.4 MB heap
subgraph-mouse-sweep: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 0ms TBT · 65.0 MB heap
subgraph-transition-enter: · 60.0 avg FPS · 59.5 P5 FPS ✅ (target: ≥52) · 99ms TBT · 103.3 MB heap
viewport-pan-sweep: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 73.2 MB heap
vue-large-graph-idle: · 59.0 avg FPS · 59.9 P5 FPS ✅ (target: ≥52) · 0ms TBT · 170.8 MB heap
vue-large-graph-pan: · 58.1 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 34ms TBT · 183.3 MB heap
workflow-execution: · 60.0 avg FPS · 59.7 P5 FPS ✅ (target: ≥52) · 0ms TBT · 67.9 MB heap

⚠️ 3 regressions detected

Show regressions
Metric Baseline PR (median) Δ Sig
large-graph-pan: task duration 1250ms 1895ms +52% ⚠️ z=18.9
large-graph-pan: script duration 357ms 647ms +81% ⚠️ z=12.1
workflow-execution: event listeners 27 61 +126% ⚠️ z=2.1
All metrics
Metric Baseline PR (median) Δ Sig
canvas-idle: avg frame time 17ms 17ms +0% z=-0.1
canvas-idle: p95 frame time 17ms 17ms +0% —
canvas-idle: layout duration 0ms 0ms +0% —
canvas-idle: style recalc duration 8ms 6ms -27% z=-5.9
canvas-idle: layout count 0 0 +0% —
canvas-idle: style recalc count 8 10 +19% z=-2.9
canvas-idle: task duration 511ms 408ms -20% z=0.4
canvas-idle: script duration 8ms 7ms -9% z=-8.2
canvas-idle: TBT 0ms 0ms +0% —
canvas-idle: heap used 59.5 MB 64.2 MB +8% —
canvas-idle: DOM nodes -283 -282 -1% z=-238.4
canvas-idle: event listeners -181 -155 -14% z=-35.2
canvas-mouse-sweep: avg frame time 17ms 17ms -0% z=-0.4
canvas-mouse-sweep: p95 frame time 17ms 17ms -1% —
canvas-mouse-sweep: layout duration 4ms 3ms -26% z=-4.8
canvas-mouse-sweep: style recalc duration 38ms 28ms -28% z=-4.8
canvas-mouse-sweep: layout count 12 12 +0% —
canvas-mouse-sweep: style recalc count 74 78 +5% z=-0.5
canvas-mouse-sweep: task duration 888ms 967ms +9% z=1.8
canvas-mouse-sweep: script duration 113ms 113ms -0% z=-3.5
canvas-mouse-sweep: TBT 0ms 0ms +0% —
canvas-mouse-sweep: heap used 54.8 MB 70.8 MB +29% —
canvas-mouse-sweep: DOM nodes -281 -281 +0% z=-132.7
canvas-mouse-sweep: event listeners -151 -155 +3% z=-39.2
canvas-zoom-sweep: avg frame time 17ms 17ms +0% z=0.5
canvas-zoom-sweep: p95 frame time 17ms 17ms +0% —
canvas-zoom-sweep: layout duration 1ms 1ms -16% z=-2.2
canvas-zoom-sweep: style recalc duration 17ms 12ms -29% z=-4.7
canvas-zoom-sweep: layout count 6 6 +0% —
canvas-zoom-sweep: style recalc count 31 30 -3% z=-2.8
canvas-zoom-sweep: task duration 373ms 280ms -25% z=-2.1
canvas-zoom-sweep: script duration 10ms 8ms -15% z=-6.3
canvas-zoom-sweep: TBT 0ms 0ms +0% —
canvas-zoom-sweep: heap used 62.9 MB 69.2 MB +10% —
canvas-zoom-sweep: DOM nodes 77 78 +1% z=-2.2
canvas-zoom-sweep: event listeners 19 20 +5% z=-0.7
dom-widget-clipping: avg frame time 17ms 17ms +0% z=0.1
dom-widget-clipping: p95 frame time 17ms 17ms -0% —
dom-widget-clipping: layout duration 0ms 0ms +0% —
dom-widget-clipping: style recalc duration 8ms 5ms -41% z=-6.3
dom-widget-clipping: layout count 0 0 +0% —
dom-widget-clipping: style recalc count 11 11 +0% z=-4.2
dom-widget-clipping: task duration 359ms 307ms -15% z=-3.5
dom-widget-clipping: script duration 56ms 22ms -60% z=-14.1
dom-widget-clipping: TBT 0ms 0ms +0% —
dom-widget-clipping: heap used 70.1 MB 59.7 MB -15% —
dom-widget-clipping: DOM nodes 18 18 +0% z=-2.9
dom-widget-clipping: event listeners 2 1 -50% variance too high
large-graph-idle: avg frame time 17ms 17ms -0% z=-0.6
large-graph-idle: p95 frame time 17ms 17ms +0% —
large-graph-idle: layout duration 0ms 0ms +0% —
large-graph-idle: style recalc duration 8ms 4ms -48% z=-7.7
large-graph-idle: layout count 0 0 +0% —
large-graph-idle: style recalc count 8 6 -25% z=-17.9
large-graph-idle: task duration 626ms 472ms -25% z=-1.3
large-graph-idle: script duration 14ms 26ms +84% z=-7.3
large-graph-idle: TBT 0ms 0ms +0% —
large-graph-idle: heap used 60.7 MB 65.5 MB +8% —
large-graph-idle: DOM nodes -282 -274 -3% z=-330.5
large-graph-idle: event listeners -181 -167 -8% z=-31.7
large-graph-pan: avg frame time 17ms 17ms -0% z=-0.2
large-graph-pan: p95 frame time 17ms 17ms -1% —
large-graph-pan: layout duration 0ms 0ms +0% —
large-graph-pan: style recalc duration 16ms 8ms -47% z=-11.2
large-graph-pan: layout count 0 0 +0% —
large-graph-pan: style recalc count 68 68 -1% z=-3.2
large-graph-pan: task duration 1250ms 1895ms +52% ⚠️ z=18.9
large-graph-pan: script duration 357ms 647ms +81% ⚠️ z=12.1
large-graph-pan: TBT 0ms 1ms — —
large-graph-pan: heap used 67.1 MB 77.5 MB +15% —
large-graph-pan: DOM nodes -277 -258 -7% z=-167.6
large-graph-pan: event listeners -149 -164 +10% z=-204.0
large-graph-zoom: avg frame time 17ms 17ms +0% —
large-graph-zoom: p95 frame time 17ms 17ms +0% —
large-graph-zoom: layout duration 8ms 6ms -24% —
large-graph-zoom: style recalc duration 15ms 9ms -42% —
large-graph-zoom: layout count 60 60 +0% —
large-graph-zoom: style recalc count 65 68 +4% —
large-graph-zoom: task duration 1391ms 1789ms +29% —
large-graph-zoom: script duration 389ms 580ms +49% —
large-graph-zoom: TBT 0ms 0ms +0% —
large-graph-zoom: heap used 68.2 MB 75.8 MB +11% —
large-graph-zoom: DOM nodes -278 27 -110% —
large-graph-zoom: event listeners -147 10 -107% —
legacy-node-drag: avg frame time 17ms 17ms -0% —
legacy-node-drag: p95 frame time 17ms 17ms -0% —
legacy-node-drag: layout duration 0ms 0ms +0% —
legacy-node-drag: style recalc duration 10ms 5ms -54% —
legacy-node-drag: layout count 0 0 +0% —
legacy-node-drag: style recalc count 46 44 -5% —
legacy-node-drag: task duration 1447ms 1484ms +3% —
legacy-node-drag: script duration 473ms 127ms -73% —
legacy-node-drag: TBT 0ms 0ms +0% —
legacy-node-drag: heap used 66.7 MB 72.4 MB +9% —
legacy-node-drag: DOM nodes 12 -139 -1254% —
legacy-node-drag: event listeners 184 93 -50% —
minimap-idle: avg frame time 17ms 17ms +0% z=-0.4
minimap-idle: p95 frame time 17ms 17ms +0% —
minimap-idle: layout duration 0ms 0ms +0% —
minimap-idle: style recalc duration 8ms 4ms -51% z=-6.9
minimap-idle: layout count 0 0 +0% —
minimap-idle: style recalc count 8 6 -25% z=-5.2
minimap-idle: task duration 680ms 447ms -34% z=-1.7
minimap-idle: script duration 18ms 25ms +38% z=-7.4
minimap-idle: TBT 0ms 0ms +0% —
minimap-idle: heap used 68.1 MB 69.1 MB +2% —
minimap-idle: DOM nodes -281 -272 -3% z=-212.5
minimap-idle: event listeners -151 -152 +1% z=-237.1
subgraph-dom-widget-clipping: avg frame time 17ms 17ms +0% z=0.1
subgraph-dom-widget-clipping: p95 frame time 17ms 17ms +1% —
subgraph-dom-widget-clipping: layout duration 0ms 0ms +0% —
subgraph-dom-widget-clipping: style recalc duration 11ms 6ms -42% z=-6.9
subgraph-dom-widget-clipping: layout count 0 0 +0% —
subgraph-dom-widget-clipping: style recalc count 45 46 +2% z=-3.3
subgraph-dom-widget-clipping: task duration 392ms 370ms -6% z=-0.5
subgraph-dom-widget-clipping: script duration 120ms 94ms -21% z=-5.3
subgraph-dom-widget-clipping: TBT 0ms 0ms +0% —
subgraph-dom-widget-clipping: heap used 71.0 MB 83.8 MB +18% —
subgraph-dom-widget-clipping: DOM nodes 16 18 +13% z=-3.7
subgraph-dom-widget-clipping: event listeners 8 7 -13% z=-1.6
subgraph-idle: avg frame time 17ms 17ms -0% z=-0.7
subgraph-idle: p95 frame time 17ms 17ms +1% —
subgraph-idle: layout duration 0ms 0ms +0% —
subgraph-idle: style recalc duration 8ms 6ms -29% z=-5.9
subgraph-idle: layout count 0 0 +0% —
subgraph-idle: style recalc count 9 11 +17% z=-0.6
subgraph-idle: task duration 511ms 405ms -21% z=1.1
subgraph-idle: script duration 7ms 6ms -17% z=-5.3
subgraph-idle: TBT 0ms 0ms +0% —
subgraph-idle: heap used 53.3 MB 65.4 MB +23% —
subgraph-idle: DOM nodes -281 -295 +5% z=-211.6
subgraph-idle: event listeners -151 -216 +43% variance too high
subgraph-mouse-sweep: avg frame time 17ms 17ms -0% z=-0.5
subgraph-mouse-sweep: p95 frame time 17ms 17ms +0% —
subgraph-mouse-sweep: layout duration 4ms 3ms -36% z=-5.8
subgraph-mouse-sweep: style recalc duration 39ms 24ms -39% z=-5.7
subgraph-mouse-sweep: layout count 16 16 +0% —
subgraph-mouse-sweep: style recalc count 76 76 +0% z=-2.1
subgraph-mouse-sweep: task duration 830ms 793ms -4% z=0.4
subgraph-mouse-sweep: script duration 89ms 71ms -21% z=-4.6
subgraph-mouse-sweep: TBT 0ms 0ms +0% —
subgraph-mouse-sweep: heap used 62.3 MB 65.0 MB +4% —
subgraph-mouse-sweep: DOM nodes -281 -294 +5% z=-161.5
subgraph-mouse-sweep: event listeners -183 -201 +10% variance too high
subgraph-transition-enter: avg frame time 17ms 17ms +0% —
subgraph-transition-enter: p95 frame time 17ms 17ms +1% —
subgraph-transition-enter: layout duration 15ms 9ms -37% —
subgraph-transition-enter: style recalc duration 32ms 24ms -26% —
subgraph-transition-enter: layout count 15 14 -7% —
subgraph-transition-enter: style recalc count 20 19 -5% —
subgraph-transition-enter: task duration 932ms 723ms -22% —
subgraph-transition-enter: script duration 17ms 21ms +26% —
subgraph-transition-enter: TBT 146ms 99ms -32% —
subgraph-transition-enter: heap used 98.4 MB 103.3 MB +5% —
subgraph-transition-enter: DOM nodes 13673 13671 -0% —
subgraph-transition-enter: event listeners 2373 2381 +0% —
viewport-pan-sweep: avg frame time 17ms 17ms +0% —
viewport-pan-sweep: p95 frame time 17ms 17ms +0% —
viewport-pan-sweep: layout duration 0ms 0ms +0% —
viewport-pan-sweep: style recalc duration 38ms 23ms -38% —
viewport-pan-sweep: layout count 0 0 +0% —
viewport-pan-sweep: style recalc count 250 247 -1% —
viewport-pan-sweep: task duration 4386ms 6608ms +51% —
viewport-pan-sweep: script duration 1094ms 2184ms +100% —
viewport-pan-sweep: TBT 0ms 0ms +0% —
viewport-pan-sweep: heap used 67.7 MB 73.2 MB +8% —
viewport-pan-sweep: DOM nodes -281 -260 -7% —
viewport-pan-sweep: event listeners -165 -142 -14% —
vue-large-graph-idle: avg frame time 18ms 17ms -5% —
vue-large-graph-idle: p95 frame time 17ms 17ms -1% —
vue-large-graph-idle: layout duration 0ms 0ms +0% —
vue-large-graph-idle: style recalc duration 0ms 0ms +0% —
vue-large-graph-idle: layout count 0 0 +0% —
vue-large-graph-idle: style recalc count 0 0 +0% —
vue-large-graph-idle: task duration 16759ms 10756ms -36% —
vue-large-graph-idle: script duration 119ms 181ms +52% —
vue-large-graph-idle: TBT 0ms 0ms +0% —
vue-large-graph-idle: heap used 170.2 MB 170.8 MB +0% —
vue-large-graph-idle: DOM nodes -8312 -6548 -21% —
vue-large-graph-idle: event listeners -16391 -7474 -54% —
vue-large-graph-pan: avg frame time 18ms 17ms -3% —
vue-large-graph-pan: p95 frame time 17ms 17ms -0% —
vue-large-graph-pan: layout duration 0ms 0ms +0% —
vue-large-graph-pan: style recalc duration 17ms 12ms -32% —
vue-large-graph-pan: layout count 0 0 +0% —
vue-large-graph-pan: style recalc count 174 68 -61% —
vue-large-graph-pan: task duration 20274ms 13628ms -33% —
vue-large-graph-pan: script duration 428ms 632ms +48% —
vue-large-graph-pan: TBT 74ms 34ms -54% —
vue-large-graph-pan: heap used 184.1 MB 183.3 MB -0% —
vue-large-graph-pan: DOM nodes -8312 -6549 -21% —
vue-large-graph-pan: event listeners -16385 -7475 -54% —
workflow-execution: avg frame time 17ms 17ms +0% z=0.1
workflow-execution: p95 frame time 17ms 17ms -0% —
workflow-execution: layout duration 2ms 1ms -68% z=-6.9
workflow-execution: style recalc duration 20ms 12ms -40% z=-5.6
workflow-execution: layout count 6 2 -67% z=-5.4
workflow-execution: style recalc count 9 11 +22% z=-3.3
workflow-execution: task duration 85ms 73ms -14% z=-4.6
workflow-execution: script duration 7ms 5ms -35% z=-8.2
workflow-execution: TBT 0ms 0ms +0% —
workflow-execution: heap used 62.3 MB 67.9 MB +9% —
workflow-execution: DOM nodes 125 123 -2% z=-5.3
workflow-execution: event listeners 27 61 +126% ⚠️ z=2.1
Historical variance (last 15 runs)
Metric μ σ CV
canvas-idle: avg frame time 17ms 0ms 0.0%
canvas-idle: layout duration 0ms 0ms 0.0%
canvas-idle: style recalc duration 11ms 1ms 8.2%
canvas-idle: layout count 0 0 0.0%
canvas-idle: style recalc count 11 1 5.0%
canvas-idle: task duration 395ms 31ms 7.9%
canvas-idle: script duration 25ms 2ms 8.8%
canvas-idle: TBT 0ms 0ms 0.0%
canvas-idle: DOM nodes 23 1 5.6%
canvas-idle: event listeners 12 5 40.9%
canvas-mouse-sweep: avg frame time 17ms 0ms 0.0%
canvas-mouse-sweep: layout duration 4ms 0ms 5.4%
canvas-mouse-sweep: style recalc duration 43ms 3ms 7.4%
canvas-mouse-sweep: layout count 12 0 0.0%
canvas-mouse-sweep: style recalc count 79 2 3.0%
canvas-mouse-sweep: task duration 865ms 58ms 6.7%
canvas-mouse-sweep: script duration 136ms 6ms 4.8%
canvas-mouse-sweep: TBT 0ms 0ms 0.0%
canvas-mouse-sweep: DOM nodes 62 3 4.2%
canvas-mouse-sweep: event listeners 8 4 49.4%
canvas-zoom-sweep: avg frame time 17ms 0ms 0.0%
canvas-zoom-sweep: layout duration 1ms 0ms 7.0%
canvas-zoom-sweep: style recalc duration 19ms 2ms 8.0%
canvas-zoom-sweep: layout count 6 0 0.0%
canvas-zoom-sweep: style recalc count 31 0 1.5%
canvas-zoom-sweep: task duration 327ms 23ms 7.1%
canvas-zoom-sweep: script duration 27ms 3ms 11.1%
canvas-zoom-sweep: TBT 0ms 0ms 0.0%
canvas-zoom-sweep: DOM nodes 79 1 1.0%
canvas-zoom-sweep: event listeners 24 5 21.8%
dom-widget-clipping: avg frame time 17ms 0ms 0.0%
dom-widget-clipping: layout duration 0ms 0ms 0.0%
dom-widget-clipping: style recalc duration 10ms 1ms 8.0%
dom-widget-clipping: layout count 0 0 0.0%
dom-widget-clipping: style recalc count 13 0 3.8%
dom-widget-clipping: task duration 365ms 16ms 4.5%
dom-widget-clipping: script duration 68ms 3ms 4.8%
dom-widget-clipping: TBT 0ms 0ms 0.0%
dom-widget-clipping: DOM nodes 22 1 6.4%
dom-widget-clipping: event listeners 8 6 81.2%
large-graph-idle: avg frame time 17ms 0ms 0.0%
large-graph-idle: layout duration 0ms 0ms 0.0%
large-graph-idle: style recalc duration 12ms 1ms 8.6%
large-graph-idle: layout count 0 0 0.0%
large-graph-idle: style recalc count 12 0 2.7%
large-graph-idle: task duration 542ms 54ms 10.0%
large-graph-idle: script duration 102ms 11ms 10.3%
large-graph-idle: TBT 0ms 0ms 0.0%
large-graph-idle: DOM nodes 25 1 3.7%
large-graph-idle: event listeners 26 6 23.2%
large-graph-pan: avg frame time 17ms 0ms 0.0%
large-graph-pan: layout duration 0ms 0ms 0.0%
large-graph-pan: style recalc duration 17ms 1ms 4.6%
large-graph-pan: layout count 0 0 0.0%
large-graph-pan: style recalc count 70 1 0.9%
large-graph-pan: task duration 1082ms 43ms 4.0%
large-graph-pan: script duration 408ms 20ms 4.8%
large-graph-pan: TBT 0ms 0ms 0.0%
large-graph-pan: DOM nodes 19 2 8.7%
large-graph-pan: event listeners 5 1 16.8%
minimap-idle: avg frame time 17ms 0ms 0.0%
minimap-idle: layout duration 0ms 0ms 0.0%
minimap-idle: style recalc duration 10ms 1ms 8.6%
minimap-idle: layout count 0 0 0.0%
minimap-idle: style recalc count 10 1 7.1%
minimap-idle: task duration 527ms 47ms 9.0%
minimap-idle: script duration 98ms 10ms 10.1%
minimap-idle: TBT 0ms 0ms 0.0%
minimap-idle: DOM nodes 19 1 7.1%
minimap-idle: event listeners 5 1 14.4%
subgraph-dom-widget-clipping: avg frame time 17ms 0ms 0.0%
subgraph-dom-widget-clipping: layout duration 0ms 0ms 0.0%
subgraph-dom-widget-clipping: style recalc duration 13ms 1ms 7.4%
subgraph-dom-widget-clipping: layout count 0 0 0.0%
subgraph-dom-widget-clipping: style recalc count 48 1 1.2%
subgraph-dom-widget-clipping: task duration 378ms 18ms 4.9%
subgraph-dom-widget-clipping: script duration 128ms 6ms 4.9%
subgraph-dom-widget-clipping: TBT 0ms 0ms 0.0%
subgraph-dom-widget-clipping: DOM nodes 22 1 5.0%
subgraph-dom-widget-clipping: event listeners 16 6 36.0%
subgraph-idle: avg frame time 17ms 0ms 0.0%
subgraph-idle: layout duration 0ms 0ms 0.0%
subgraph-idle: style recalc duration 10ms 1ms 7.5%
subgraph-idle: layout count 0 0 0.0%
subgraph-idle: style recalc count 11 1 6.0%
subgraph-idle: task duration 370ms 31ms 8.5%
subgraph-idle: script duration 20ms 3ms 13.2%
subgraph-idle: TBT 0ms 0ms 0.0%
subgraph-idle: DOM nodes 22 1 6.9%
subgraph-idle: event listeners 10 7 64.5%
subgraph-mouse-sweep: avg frame time 17ms 0ms 0.0%
subgraph-mouse-sweep: layout duration 5ms 0ms 6.8%
subgraph-mouse-sweep: style recalc duration 42ms 3ms 7.8%
subgraph-mouse-sweep: layout count 16 0 0.0%
subgraph-mouse-sweep: style recalc count 80 2 2.4%
subgraph-mouse-sweep: task duration 766ms 69ms 9.0%
subgraph-mouse-sweep: script duration 101ms 7ms 6.5%
subgraph-mouse-sweep: TBT 0ms 0ms 0.0%
subgraph-mouse-sweep: DOM nodes 67 2 3.3%
subgraph-mouse-sweep: event listeners 8 4 52.6%
workflow-execution: avg frame time 17ms 0ms 0.0%
workflow-execution: layout duration 2ms 0ms 9.4%
workflow-execution: style recalc duration 24ms 2ms 9.1%
workflow-execution: layout count 5 1 11.0%
workflow-execution: style recalc count 18 2 11.5%
workflow-execution: task duration 123ms 11ms 8.8%
workflow-execution: script duration 29ms 3ms 10.2%
workflow-execution: TBT 0ms 0ms 0.0%
workflow-execution: DOM nodes 161 7 4.4%
workflow-execution: event listeners 52 4 8.4%
Trend (last 15 commits on main)
Metric Trend Dir Latest
canvas-idle: avg frame time ▆▃▆▁▆▃▆█▆▆▄▃▃▄▃ ➡️ 17ms
canvas-idle: p95 frame time ➡️ NaNms
canvas-idle: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
canvas-idle: style recalc duration ▇▇▆▆▃█▄▃▄▃▇▄▁▆▇ ➡️ 11ms
canvas-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
canvas-idle: style recalc count █▃▅▂▅▆▃▁▂▁▂▅▆▅▆ ➡️ 12
canvas-idle: task duration ▃▃▃▆▂▃▃▅▆▂█▃▁▃▃ ➡️ 391ms
canvas-idle: script duration ▄▃▅▇▂▅▃▆▇▅█▄▁▅▆ ➡️ 27ms
canvas-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
canvas-idle: heap used ➡️ NaN MB
canvas-idle: DOM nodes █▇▆▅▃▇▃▁▂▂▅▆▆▆▇ ➡️ 24
canvas-idle: event listeners ▅█▅▄▁▅▁▁▁▄▅▅▁▅▄ 📉 11
canvas-mouse-sweep: avg frame time ▆█▆▃▁▃▁▆▆▁▃▆▆▃▃ ➡️ 17ms
canvas-mouse-sweep: p95 frame time ➡️ NaNms
canvas-mouse-sweep: layout duration ▁▃▂▄▁▂▁▃▆▂█▇▆▄▃ ➡️ 4ms
canvas-mouse-sweep: style recalc duration ▄▄▂▄▁▂▃▃▅▄█▆▂▄▄ ➡️ 43ms
canvas-mouse-sweep: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 12
canvas-mouse-sweep: style recalc count █▅▄▃▂▂▁▄▄▅▆▅▂▇▄ ➡️ 79
canvas-mouse-sweep: task duration █▆▄▂▂▃▂▄▄▅█▆▁▆▄ ➡️ 868ms
canvas-mouse-sweep: script duration ▄▅▄▆▄▆▆▆▅▅█▆▁▅▆ ➡️ 139ms
canvas-mouse-sweep: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
canvas-mouse-sweep: heap used ➡️ NaN MB
canvas-mouse-sweep: DOM nodes █▅▃▃▁▂▂▃▂▄▆▅▃▅▅ ➡️ 64
canvas-mouse-sweep: event listeners █▁▁▁▁▁▇▁▁▁██▇▁█ 📈 13
canvas-zoom-sweep: avg frame time ▅▅█▄▅▁▁▁▅▁▁▅▄▅▁ ➡️ 17ms
canvas-zoom-sweep: p95 frame time ➡️ NaNms
canvas-zoom-sweep: layout duration ▆▅▅▄▁▁█▅▃▅▇▆▁▂▆ ➡️ 1ms
canvas-zoom-sweep: style recalc duration ▆▅▄▆▅▃█▆▇▅▇▄▁▃▅ ➡️ 20ms
canvas-zoom-sweep: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 6
canvas-zoom-sweep: style recalc count ▁▁▃▄▆▃▆█▄▄▆▁▆▁▆ ➡️ 32
canvas-zoom-sweep: task duration ▄▂▁▇▂▂▄▅▆▃█▄▁▁▅ ➡️ 338ms
canvas-zoom-sweep: script duration ▃▃▂▇▂▂▅▇▆▅█▄▁▂▆ ➡️ 30ms
canvas-zoom-sweep: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
canvas-zoom-sweep: heap used ➡️ NaN MB
canvas-zoom-sweep: DOM nodes ▄▃▁▅█▁▃▆▄▅▅▃▃▄▃ ➡️ 79
canvas-zoom-sweep: event listeners ▁▁▂▅█▂▁▅▁▅▅▄▁▅▁ ➡️ 19
dom-widget-clipping: avg frame time ▂▄▅▅▂▄█▇▅▇▇▅▅▁▇ ➡️ 17ms
dom-widget-clipping: p95 frame time ➡️ NaNms
dom-widget-clipping: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
dom-widget-clipping: style recalc duration ▆▆▂▆▄▃██▄▁▆▇▆▃▅ ➡️ 10ms
dom-widget-clipping: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
dom-widget-clipping: style recalc count ▇█▅█▅▄█▇▇▁▇▄▇▂▅ ➡️ 13
dom-widget-clipping: task duration ▃▃▁▅▄▃▅▆▅▂▇█▁▅▅ ➡️ 371ms
dom-widget-clipping: script duration ▅▄▄▆▆▅▇▇▆▃█▇▁▇▇ ➡️ 71ms
dom-widget-clipping: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
dom-widget-clipping: heap used ➡️ NaN MB
dom-widget-clipping: DOM nodes ▇▇▄▇▅▄█▇▅▁▅▄▇▃▄ ➡️ 21
dom-widget-clipping: event listeners ▅▅▅▅▁▅██▁▁▁▁█▁▁ 📉 2
large-graph-idle: avg frame time ▅▅▅▅▅▂▁▂▄▅▄▂▂▅█ ➡️ 17ms
large-graph-idle: p95 frame time ➡️ NaNms
large-graph-idle: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-idle: style recalc duration ▅▅▅▆▄▅▃▄▅▅▆█▁▄▆ ➡️ 13ms
large-graph-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
large-graph-idle: style recalc count █▆█▃▃▁▃▆▃▆▆▃▆██ ➡️ 12
large-graph-idle: task duration ▂▃▂▆▂▃▃▇▅▃██▁▂▅ ➡️ 569ms
large-graph-idle: script duration ▄▅▄▆▄▅▅▇▆▅█▆▁▃▆ ➡️ 110ms
large-graph-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-idle: heap used ➡️ NaN MB
large-graph-idle: DOM nodes ▆█▅▂▅▃▁▂▃▅▅▆▂▆▅ ➡️ 25
large-graph-idle: event listeners ███▇██▄▁▄▇▇█▂█▇ ➡️ 29
large-graph-pan: avg frame time ▆▃▃▆█▃▁█▆▆▆▆█▁▆ ➡️ 17ms
large-graph-pan: p95 frame time ➡️ NaNms
large-graph-pan: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-pan: style recalc duration ▃▂▄▄▁▅▂▂▁▄▄█▃▁▂ ➡️ 17ms
large-graph-pan: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
large-graph-pan: style recalc count ▆▃█▂▃▂▂▂▁▇▅▃█▆▃ ➡️ 69
large-graph-pan: task duration ▄▃▄▆▄▄▄▆▄▄█▆▁▂▅ ➡️ 1100ms
large-graph-pan: script duration ▅▄▅▆▆▅▄▆▄▅█▄▁▄▅ ➡️ 413ms
large-graph-pan: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
large-graph-pan: heap used ➡️ NaN MB
large-graph-pan: DOM nodes ▅▃▆▂▄▁▃▁▁▅▁▂█▅▂ ➡️ 18
large-graph-pan: event listeners █▆█▁▁▆▁▁▃▆▁▃██▃ ➡️ 5
minimap-idle: avg frame time ▃▆▆▃█▁█▆▆▃▃▆█▆█ ➡️ 17ms
minimap-idle: p95 frame time ➡️ NaNms
minimap-idle: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
minimap-idle: style recalc duration ▄█▁█▅▅█▅▅▃▅▁▁▄▆ ➡️ 10ms
minimap-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
minimap-idle: style recalc count ▃▅▂▄█▃▆▁▂▅▂▁▅▆▃ ➡️ 9
minimap-idle: task duration ▃▄▁▅▁▃▄▅▇▃█▅▁▁▅ ➡️ 547ms
minimap-idle: script duration ▄▆▃▇▃▅▆▆▇▅█▅▁▃▆ ➡️ 106ms
minimap-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
minimap-idle: heap used ➡️ NaN MB
minimap-idle: DOM nodes ▃▅▂▄█▃▆▁▂▅▂▁▅▆▃ ➡️ 19
minimap-idle: event listeners ▃▃▆▁▁▁▃▁▁▆▁▃█▆▁ ➡️ 4
subgraph-dom-widget-clipping: avg frame time ▅▄▄▄▄▄█▄▄▄▃▁▆▃▃ ➡️ 17ms
subgraph-dom-widget-clipping: p95 frame time ➡️ NaNms
subgraph-dom-widget-clipping: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-dom-widget-clipping: style recalc duration ▂▄▃▅▅▃▂▅▇▃▄█▁▄▆ ➡️ 14ms
subgraph-dom-widget-clipping: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
subgraph-dom-widget-clipping: style recalc count ▇█▆▃▆▃▁▆█▇▃▆▇█▅ ➡️ 48
subgraph-dom-widget-clipping: task duration ▂▃▃▆▅▅▂▅█▂▆█▁▂▇ ➡️ 398ms
subgraph-dom-widget-clipping: script duration ▃▃▃▄▅▅▂▄█▂▅▇▁▂▅ ➡️ 131ms
subgraph-dom-widget-clipping: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-dom-widget-clipping: heap used ➡️ NaN MB
subgraph-dom-widget-clipping: DOM nodes ▅▇▅▂▅▂▁▅▅▅▁▇▅█▄ ➡️ 22
subgraph-dom-widget-clipping: event listeners ▅▅▅▂▅▁▅██▁▁█▅█▅ 📈 16
subgraph-idle: avg frame time ▆▆█▁▆▃▆▆▆▃▆▁▃▆█ ➡️ 17ms
subgraph-idle: p95 frame time ➡️ NaNms
subgraph-idle: layout duration ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-idle: style recalc duration ▁▇▃▆▂▄▂▃▃▆▆▄▃▇█ ➡️ 12ms
subgraph-idle: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0
subgraph-idle: style recalc count ▃▆▃▃▂▅▁▂▁▆▃▃██▇ ➡️ 12
subgraph-idle: task duration ▁▃▁▇▁▁▃▆▅▂█▅▁▁▄ ➡️ 378ms
subgraph-idle: script duration ▁▃▂▇▁▂▃▇▆▂█▅▂▁▅ ➡️ 22ms
subgraph-idle: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-idle: heap used ➡️ NaN MB
subgraph-idle: DOM nodes ▃▅▃▂▁▄▁▂▁▅▃▂▇█▇ ➡️ 24
subgraph-idle: event listeners ▁▅▁▁▁▁▁▁▁▅▄▁███ 📈 21
subgraph-mouse-sweep: avg frame time ▅▄▁▃▃▄▆▄▆▃▃█▁▃▃ ➡️ 17ms
subgraph-mouse-sweep: p95 frame time ➡️ NaNms
subgraph-mouse-sweep: layout duration ▁▄▄▄▃▃▅▅▅▂█▇▂▃▆ ➡️ 5ms
subgraph-mouse-sweep: style recalc duration ▃▂▄▅▂▃▄▅█▃█▆▁▂▅ ➡️ 43ms
subgraph-mouse-sweep: layout count ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 16
subgraph-mouse-sweep: style recalc count ▅▂▅▅▁▄▃▅█▅▆▄▂▄▅ ➡️ 81
subgraph-mouse-sweep: task duration ▃▂▄▅▂▄▄▅▇▄█▆▁▃▅ ➡️ 785ms
subgraph-mouse-sweep: script duration ▄▅▄▇▅▅▆▇▆▅██▁▄▆ ➡️ 105ms
subgraph-mouse-sweep: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
subgraph-mouse-sweep: heap used ➡️ NaN MB
subgraph-mouse-sweep: DOM nodes ▅▁▄▅▁▄▃▃█▅▅▄▂▅▃ ➡️ 66
subgraph-mouse-sweep: event listeners ▇▁▂▇▁▂▂▂█▇▂▂▇▇▂ 📈 5
workflow-execution: avg frame time ▆▆▆▄▆▆▃▄▁▄█▆▅▄▆ ➡️ 17ms
workflow-execution: p95 frame time ➡️ NaNms
workflow-execution: layout duration ▁▆▁▃▂▄▃▂▃▃▅█▄▂▅ ➡️ 2ms
workflow-execution: style recalc duration ▃▇▅▇▁▅▆▇█▁██▂▄▆ ➡️ 25ms
workflow-execution: layout count ▁█▂▃▂▃▃▁▃▃▄▃▂▃▂ ➡️ 5
workflow-execution: style recalc count ▃█▅▇▁▄▅▆▅▅▅▅▄▄▂ ➡️ 15
workflow-execution: task duration ▂▅▄▅▁▄▆▆▆▁▇█▁▃▃ ➡️ 120ms
workflow-execution: script duration ▄▃▄▄▃▅▄▅▆▂▇█▁▃▄ ➡️ 29ms
workflow-execution: TBT ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ➡️ 0ms
workflow-execution: heap used ➡️ NaN MB
workflow-execution: DOM nodes ▂█▃▆▁▄▃▅▃█▃▃▄▃▁ ➡️ 152
workflow-execution: event listeners ▅███▁▅███▁██▅█▅ ➡️ 49
Raw data
{
  "timestamp": "2026-08-24T10:57:33.003Z",
  "gitSha": "89e850fcaac9d0723055f66e3371d49aa128c78f",
  "branch": "feature/ecs-migration",
  "measurements": [
    {
      "name": "canvas-idle",
      "durationMs": 1998.6770000000433,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 5.239000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 407.186,
      "heapDeltaBytes": -10976616,
      "heapUsedBytes": 58208068,
      "domNodes": -283,
      "jsHeapTotalBytes": 4448256,
      "scriptDurationMs": 6.859999999999999,
      "eventListeners": -155,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-idle",
      "durationMs": 1993.4829999999693,
      "styleRecalcs": 10,
      "styleRecalcDurationMs": 5.958,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 409.40999999999997,
      "heapDeltaBytes": 7008288,
      "heapUsedBytes": 76437504,
      "domNodes": -280,
      "jsHeapTotalBytes": 4972544,
      "scriptDurationMs": 6.952000000000001,
      "eventListeners": -155,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-mouse-sweep",
      "durationMs": 2084.2250000000035,
      "styleRecalcs": 78,
      "styleRecalcDurationMs": 29.119000000000003,
      "layouts": 12,
      "layoutDurationMs": 2.8840000000000003,
      "taskDurationMs": 1039.369,
      "heapDeltaBytes": -447396,
      "heapUsedBytes": 68751408,
      "domNodes": -282,
      "jsHeapTotalBytes": 4710400,
      "scriptDurationMs": 117.15299999999999,
      "eventListeners": -155,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "canvas-mouse-sweep",
      "durationMs": 1860.1639999999406,
      "styleRecalcs": 77,
      "styleRecalcDurationMs": 25.902999999999995,
      "layouts": 12,
      "layoutDurationMs": 2.4549999999999996,
      "taskDurationMs": 895.4469999999999,
      "heapDeltaBytes": 10187144,
      "heapUsedBytes": 79804168,
      "domNodes": -280,
      "jsHeapTotalBytes": 5496832,
      "scriptDurationMs": 108.11999999999999,
      "eventListeners": -155,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "canvas-zoom-sweep",
      "durationMs": 1681.0870000000477,
      "styleRecalcs": 29,
      "styleRecalcDurationMs": 11.636999999999999,
      "layouts": 6,
      "layoutDurationMs": 0.5429999999999999,
      "taskDurationMs": 282.46700000000004,
      "heapDeltaBytes": 3905132,
      "heapUsedBytes": 72788668,
      "domNodes": 77,
      "jsHeapTotalBytes": 4980736,
      "scriptDurationMs": 8.424999999999999,
      "eventListeners": 19,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "canvas-zoom-sweep",
      "durationMs": 1720.9159999999883,
      "styleRecalcs": 31,
      "styleRecalcDurationMs": 12.328999999999999,
      "layouts": 6,
      "layoutDurationMs": 0.54,
      "taskDurationMs": 276.533,
      "heapDeltaBytes": 4205044,
      "heapUsedBytes": 72426856,
      "domNodes": 78,
      "jsHeapTotalBytes": 4718592,
      "scriptDurationMs": 8.287,
      "eventListeners": 21,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "dom-widget-clipping",
      "durationMs": 591.5960000000382,
      "styleRecalcs": 11,
      "styleRecalcDurationMs": 4.695999999999999,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 303.67100000000005,
      "heapDeltaBytes": -5952536,
      "heapUsedBytes": 63320876,
      "domNodes": 18,
      "jsHeapTotalBytes": 6029312,
      "scriptDurationMs": 21.942,
      "eventListeners": 2,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "dom-widget-clipping",
      "durationMs": 605.4439999999204,
      "styleRecalcs": 11,
      "styleRecalcDurationMs": 5.114000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 309.596,
      "heapDeltaBytes": -7152768,
      "heapUsedBytes": 61944664,
      "domNodes": 18,
      "jsHeapTotalBytes": 6553600,
      "scriptDurationMs": 22.16,
      "eventListeners": 0,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "large-graph-idle",
      "durationMs": 2009.3650000000025,
      "styleRecalcs": 5,
      "styleRecalcDurationMs": 4.052,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 466.514,
      "heapDeltaBytes": -22077052,
      "heapUsedBytes": 68590700,
      "domNodes": -276,
      "jsHeapTotalBytes": 2355200,
      "scriptDurationMs": 25.43999999999999,
      "eventListeners": -183,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.699999999999818
    },
    {
      "name": "large-graph-idle",
      "durationMs": 2025.7480000000214,
      "styleRecalcs": 7,
      "styleRecalcDurationMs": 4.301000000000001,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 478.227,
      "heapDeltaBytes": -22236780,
      "heapUsedBytes": 68874516,
      "domNodes": -272,
      "jsHeapTotalBytes": 4452352,
      "scriptDurationMs": 26.438999999999997,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "large-graph-pan",
      "durationMs": 3168.641999999977,
      "styleRecalcs": 67,
      "styleRecalcDurationMs": 8.53,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1922.2710000000002,
      "heapDeltaBytes": -12924724,
      "heapUsedBytes": 77957880,
      "domNodes": -248,
      "jsHeapTotalBytes": 4415488,
      "scriptDurationMs": 658.035,
      "eventListeners": -179,
      "totalBlockingTimeMs": 1,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-pan",
      "durationMs": 3127.7710000000525,
      "styleRecalcs": 68,
      "styleRecalcDurationMs": 8.224,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1867.5010000000002,
      "heapDeltaBytes": -7171084,
      "heapUsedBytes": 84523232,
      "domNodes": -267,
      "jsHeapTotalBytes": 745472,
      "scriptDurationMs": 635.706,
      "eventListeners": -149,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-zoom",
      "durationMs": 3988.322000000039,
      "styleRecalcs": 67,
      "styleRecalcDurationMs": 9.138,
      "layouts": 60,
      "layoutDurationMs": 6.042000000000001,
      "taskDurationMs": 1780.0159999999998,
      "heapDeltaBytes": 9416400,
      "heapUsedBytes": 79096852,
      "domNodes": 26,
      "jsHeapTotalBytes": 262144,
      "scriptDurationMs": 572.21,
      "eventListeners": 10,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "large-graph-zoom",
      "durationMs": 3976.2329999999793,
      "styleRecalcs": 68,
      "styleRecalcDurationMs": 8.588000000000001,
      "layouts": 60,
      "layoutDurationMs": 5.343999999999999,
      "taskDurationMs": 1797.072,
      "heapDeltaBytes": 10450784,
      "heapUsedBytes": 79771444,
      "domNodes": 28,
      "jsHeapTotalBytes": 0,
      "scriptDurationMs": 587.312,
      "eventListeners": 10,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "legacy-node-drag",
      "durationMs": 2243.5990000000174,
      "styleRecalcs": 42,
      "styleRecalcDurationMs": 3.493999999999999,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1444.407,
      "heapDeltaBytes": 11598740,
      "heapUsedBytes": 82134040,
      "domNodes": 2,
      "jsHeapTotalBytes": 679936,
      "scriptDurationMs": 126.87900000000002,
      "eventListeners": 186,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "legacy-node-drag",
      "durationMs": 2234.141999999906,
      "styleRecalcs": 45,
      "styleRecalcDurationMs": 5.788999999999999,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 1523.4289999999999,
      "heapDeltaBytes": -3082316,
      "heapUsedBytes": 69727072,
      "domNodes": -279,
      "jsHeapTotalBytes": -1089536,
      "scriptDurationMs": 126.36200000000001,
      "eventListeners": -1,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "minimap-idle",
      "durationMs": 2020.2800000000138,
      "styleRecalcs": 6,
      "styleRecalcDurationMs": 4.305999999999999,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 461.093,
      "heapDeltaBytes": -21288884,
      "heapUsedBytes": 71379280,
      "domNodes": -273,
      "jsHeapTotalBytes": 4190208,
      "scriptDurationMs": 27.937,
      "eventListeners": -153,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "minimap-idle",
      "durationMs": 2036.4319999999907,
      "styleRecalcs": 6,
      "styleRecalcDurationMs": 3.5340000000000007,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 433.60800000000006,
      "heapDeltaBytes": -18927228,
      "heapUsedBytes": 73608300,
      "domNodes": -270,
      "jsHeapTotalBytes": -1839104,
      "scriptDurationMs": 21.278000000000002,
      "eventListeners": -151,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-dom-widget-clipping",
      "durationMs": 527.8319999999894,
      "styleRecalcs": 46,
      "styleRecalcDurationMs": 6.009000000000002,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 365.281,
      "heapDeltaBytes": 18029544,
      "heapUsedBytes": 87743260,
      "domNodes": 18,
      "jsHeapTotalBytes": 5505024,
      "scriptDurationMs": 92.734,
      "eventListeners": 6,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999727
    },
    {
      "name": "subgraph-dom-widget-clipping",
      "durationMs": 550.2920000000131,
      "styleRecalcs": 46,
      "styleRecalcDurationMs": 6.4159999999999995,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 374.092,
      "heapDeltaBytes": 17258924,
      "heapUsedBytes": 88062056,
      "domNodes": 18,
      "jsHeapTotalBytes": 5242880,
      "scriptDurationMs": 95.98,
      "eventListeners": 8,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-idle",
      "durationMs": 1992.3700000000508,
      "styleRecalcs": 9,
      "styleRecalcDurationMs": 5.391,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 402.132,
      "heapDeltaBytes": -7610620,
      "heapUsedBytes": 62295660,
      "domNodes": -297,
      "jsHeapTotalBytes": 5234688,
      "scriptDurationMs": 5.538,
      "eventListeners": -201,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "subgraph-idle",
      "durationMs": 2017.6529999999957,
      "styleRecalcs": 12,
      "styleRecalcDurationMs": 6.260999999999999,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 406.91299999999995,
      "heapDeltaBytes": 5080272,
      "heapUsedBytes": 74766836,
      "domNodes": -292,
      "jsHeapTotalBytes": 5758976,
      "scriptDurationMs": 6.446999999999999,
      "eventListeners": -231,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-mouse-sweep",
      "durationMs": 1711.4010000000235,
      "styleRecalcs": 75,
      "styleRecalcDurationMs": 23.475,
      "layouts": 16,
      "layoutDurationMs": 2.9819999999999998,
      "taskDurationMs": 782.5849999999999,
      "heapDeltaBytes": -2378572,
      "heapUsedBytes": 68164688,
      "domNodes": -295,
      "jsHeapTotalBytes": 5496832,
      "scriptDurationMs": 70.395,
      "eventListeners": -201,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333332,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-mouse-sweep",
      "durationMs": 1731.0320000000274,
      "styleRecalcs": 77,
      "styleRecalcDurationMs": 23.758,
      "layouts": 16,
      "layoutDurationMs": 2.7009999999999996,
      "taskDurationMs": 803.284,
      "heapDeltaBytes": -2389408,
      "heapUsedBytes": 68110884,
      "domNodes": -293,
      "jsHeapTotalBytes": 6545408,
      "scriptDurationMs": 70.93199999999999,
      "eventListeners": -201,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.66333333333335,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "subgraph-transition-enter",
      "durationMs": 932.6889999999821,
      "styleRecalcs": 19,
      "styleRecalcDurationMs": 23.596000000000007,
      "layouts": 14,
      "layoutDurationMs": 9.319999999999999,
      "taskDurationMs": 723.225,
      "heapDeltaBytes": 20797164,
      "heapUsedBytes": 108343644,
      "domNodes": 13671,
      "jsHeapTotalBytes": 9961472,
      "scriptDurationMs": 21.428999999999995,
      "eventListeners": 2381,
      "totalBlockingTimeMs": 99,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    },
    {
      "name": "viewport-pan-sweep",
      "durationMs": 12029.696000000002,
      "styleRecalcs": 247,
      "styleRecalcDurationMs": 24.005,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 6636.292,
      "heapDeltaBytes": -5629864,
      "heapUsedBytes": 85354884,
      "domNodes": -271,
      "jsHeapTotalBytes": 2285568,
      "scriptDurationMs": 2188.305,
      "eventListeners": -127,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "viewport-pan-sweep",
      "durationMs": 12048.20099999995,
      "styleRecalcs": 247,
      "styleRecalcDurationMs": 22.938,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 6578.798,
      "heapDeltaBytes": -22404796,
      "heapUsedBytes": 68091260,
      "domNodes": -249,
      "jsHeapTotalBytes": 4714496,
      "scriptDurationMs": 2179.611,
      "eventListeners": -157,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "vue-large-graph-idle",
      "durationMs": 10901.704999999993,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 10420.535999999998,
      "heapDeltaBytes": -14789456,
      "heapUsedBytes": 176421112,
      "domNodes": -6548,
      "jsHeapTotalBytes": 540672,
      "scriptDurationMs": 167.918,
      "eventListeners": -7473,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "vue-large-graph-idle",
      "durationMs": 11963.39999999998,
      "styleRecalcs": 0,
      "styleRecalcDurationMs": 0,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 11092.231,
      "heapDeltaBytes": -32018104,
      "heapUsedBytes": 181843976,
      "domNodes": -6548,
      "jsHeapTotalBytes": 8376320,
      "scriptDurationMs": 193.44,
      "eventListeners": -7475,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.223333333333358,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "vue-large-graph-pan",
      "durationMs": 14269.183999999996,
      "styleRecalcs": 67,
      "styleRecalcDurationMs": 11.893999999999988,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 13657.428,
      "heapDeltaBytes": -5260232,
      "heapUsedBytes": 187098536,
      "domNodes": -6549,
      "jsHeapTotalBytes": -4276224,
      "scriptDurationMs": 656.314,
      "eventListeners": -7475,
      "totalBlockingTimeMs": 68,
      "frameDurationMs": 17.216666666666665,
      "p95FrameDurationMs": 16.799999999999272
    },
    {
      "name": "vue-large-graph-pan",
      "durationMs": 14166.04499999994,
      "styleRecalcs": 69,
      "styleRecalcDurationMs": 11.715000000000003,
      "layouts": 0,
      "layoutDurationMs": 0,
      "taskDurationMs": 13598.091,
      "heapDeltaBytes": -30297320,
      "heapUsedBytes": 197232392,
      "domNodes": -6548,
      "jsHeapTotalBytes": 757760,
      "scriptDurationMs": 607.822,
      "eventListeners": -7475,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 17.223333333333358,
      "p95FrameDurationMs": 16.700000000000728
    },
    {
      "name": "workflow-execution",
      "durationMs": 92.01600000005783,
      "styleRecalcs": 7,
      "styleRecalcDurationMs": 9.136999999999999,
      "layouts": 2,
      "layoutDurationMs": 0.6809999999999999,
      "taskDurationMs": 57.24299999999999,
      "heapDeltaBytes": 3327268,
      "heapUsedBytes": 70078624,
      "domNodes": 123,
      "jsHeapTotalBytes": 0,
      "scriptDurationMs": 3.7920000000000003,
      "eventListeners": 25,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.663333333333338,
      "p95FrameDurationMs": 16.700000000000273
    },
    {
      "name": "workflow-execution",
      "durationMs": 448.3590000000959,
      "styleRecalcs": 15,
      "styleRecalcDurationMs": 14.402,
      "layouts": 2,
      "layoutDurationMs": 0.42200000000000004,
      "taskDurationMs": 88.19200000000001,
      "heapDeltaBytes": 5443740,
      "heapUsedBytes": 72331308,
      "domNodes": 123,
      "jsHeapTotalBytes": 0,
      "scriptDurationMs": 5.523999999999999,
      "eventListeners": 97,
      "totalBlockingTimeMs": 0,
      "frameDurationMs": 16.666666666666668,
      "p95FrameDurationMs": 16.800000000000182
    }
  ]
}

@coderabbitai

coderabbitai Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Too many files!

This PR contains 411 files, which is 111 over the limit of 300.

To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch.

Usage-priced reviews support at most 300 files.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: a673ac71-e56d-4f54-92f9-57e5eba87434

📥 Commits

Reviewing files that changed from the base of the PR and between ebd3289 and ce8f8aa.

⛔ Files ignored due to path filters (14)
  • browser_tests/tests/domWidget.spec.ts-snapshots/focus-mode-on-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/graphCanvasMenu.spec.ts-snapshots/canvas-with-visible-links-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/nodeBadge.spec.ts-snapshots/node-badge-left-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/primitiveNode.spec.ts-snapshots/primitive-node-connected-dom-widget-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/saveImageAndWebp.spec.ts-snapshots/save-image-and-webm-preview-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/selectionToolbox.spec.ts-snapshots/selection-toolbox-multiple-nodes-border-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/selectionToolbox.spec.ts-snapshots/selection-toolbox-multiple-selections-border-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/selectionToolbox.spec.ts-snapshots/selection-toolbox-single-node-no-border-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/bypass.spec.ts-snapshots/vue-node-bypassed-state-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/colors.spec.ts-snapshots/vue-node-custom-color-blue-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/colors.spec.ts-snapshots/vue-node-custom-colors-dark-all-colors-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/colors.spec.ts-snapshots/vue-node-custom-colors-light-all-colors-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/error.spec.ts-snapshots/vue-node-required-input-missing-slot-error-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/mute.spec.ts-snapshots/vue-node-muted-state-chromium-linux.png is excluded by !**/*.png
📒 Files selected for processing (411)
  • AGENTS.md
  • browser_tests/README.md
  • browser_tests/assets/missing/missing_model_nested_promoted_widget.json
  • browser_tests/assets/missing/missing_models_in_subgraph.json
  • browser_tests/assets/nodes/duplicate_node_ids.json
  • browser_tests/assets/subgraphs/subgraph-link-identity-collision.json
  • browser_tests/fixtures/VueNodeHelpers.ts
  • browser_tests/fixtures/helpers/CanvasHelper.ts
  • browser_tests/fixtures/helpers/NodeOperationsHelper.ts
  • browser_tests/fixtures/utils/nodeInputLinks.ts
  • browser_tests/tests/legacySlotMutation.spec.ts
  • browser_tests/tests/nodeBadge.spec.ts
  • browser_tests/tests/nodeDisplay.spec.ts
  • browser_tests/tests/nodeReplacement.spec.ts
  • browser_tests/tests/propertiesPanel/errorsTabCloudMissingModels.spec.ts
  • browser_tests/tests/propertiesPanel/errorsTabModeAware.spec.ts
  • browser_tests/tests/rightClickMenu.spec.ts
  • browser_tests/tests/subgraph/subgraphLinkIdentity.spec.ts
  • browser_tests/tests/subgraph/subgraphPromotion.spec.ts
  • browser_tests/tests/subgraph/subgraphSerialization.spec.ts
  • browser_tests/tests/vueNodes/interactions/links/linkInteraction.spec.ts
  • browser_tests/tests/vueNodes/interactions/node/bringToFront.spec.ts
  • browser_tests/tests/vueNodes/interactions/node/move.spec.ts
  • browser_tests/tests/vueNodes/interactions/node/resize.spec.ts
  • browser_tests/tests/vueNodes/layout/ecsBridgeHistory.spec.ts
  • browser_tests/tests/vueNodes/layout/rendererToggleGeometry.spec.ts
  • browser_tests/tests/vueNodes/nodeStates/collapse.spec.ts
  • browser_tests/tests/vueNodes/nodeStates/registration.spec.ts
  • browser_tests/tests/vueNodes/widgets/legacy.spec.ts
  • browser_tests/tests/vueNodes/widgets/widgetReactivity.spec.ts
  • browser_tests/tests/workflowPersistence.spec.ts
  • docs/adr/0003-crdt-based-layout-system.md
  • docs/adr/0008-entity-component-system.md
  • docs/architecture/appendix-ecs-pattern-survey.md
  • docs/architecture/domain-glossary.md
  • docs/architecture/ecs-lifecycle-scenarios.md
  • docs/architecture/ecs-migration-plan.md
  • docs/architecture/ecs-target-architecture.md
  • docs/architecture/ecs/ecs-decision-traceability.md
  • docs/architecture/ecs/ecs-documentation-audit.md
  • docs/architecture/ecs/ecs-extension-compatibility-audit.md
  • docs/architecture/ecs/ecs-identity-scope-audit.md
  • docs/architecture/ecs/ecs-lifecycle-audit.md
  • docs/architecture/ecs/ecs-migration-plan.md
  • docs/architecture/ecs/ecs-migration-summary.md
  • docs/architecture/ecs/ecs-mutation-audit.md
  • docs/architecture/ecs/ecs-state-authority-audit.md
  • docs/architecture/ecs/ecs-verification-audit.md
  • docs/architecture/entity-interactions.md
  • docs/architecture/entity-problems.md
  • docs/architecture/link-topology-store.md
  • docs/architecture/node-badge-store.md
  • docs/architecture/node-data-store.md
  • docs/architecture/output-slot-connectivity.md
  • docs/architecture/proto-ecs-stores.md
  • docs/architecture/reroute-chain-store.md
  • docs/architecture/subgraph-boundaries-and-promotion.md
  • docs/extensions/README.md
  • docs/extensions/link-registration-migration.md
  • src/components/builder/AppModeWidgetList.vue
  • src/components/graph/GraphCanvas.vue
  • src/components/graph/widgets/DomWidget.test.ts
  • src/components/graph/widgets/DomWidget.vue
  • src/components/graph/widgets/domWidgetZIndex.test.ts
  • src/components/rightSidePanel/errors/useErrorGroups.test.ts
  • src/components/rightSidePanel/errors/useErrorGroups.ts
  • src/components/rightSidePanel/parameters/SectionWidgets.vue
  • src/components/rightSidePanel/parameters/TabSubgraphInputs.test.ts
  • src/components/rightSidePanel/parameters/TabSubgraphInputs.vue
  • src/components/rightSidePanel/parameters/WidgetActions.test.ts
  • src/components/rightSidePanel/parameters/WidgetActions.vue
  • src/components/rightSidePanel/parameters/WidgetItem.test.ts
  • src/components/rightSidePanel/parameters/WidgetItem.vue
  • src/components/rightSidePanel/shared.test.ts
  • src/components/rightSidePanel/subgraph/SubgraphEditor.test.ts
  • src/components/rightSidePanel/subgraph/SubgraphEditor.vue
  • src/composables/canvas/useSelectionToolboxPosition.test.ts
  • src/composables/canvas/useSelectionToolboxPosition.ts
  • src/composables/graph/useArrangeNodes.ts
  • src/composables/graph/useErrorClearingHooks.promotion.test.ts
  • src/composables/graph/useErrorClearingHooks.test.ts
  • src/composables/graph/useErrorClearingHooks.ts
  • src/composables/graph/useGraphNodeManager.test.ts
  • src/composables/graph/useGraphNodeManager.ts
  • src/composables/graph/useNodeArrangement.ts
  • src/composables/graph/useNodeErrorFlagSync.test.ts
  • src/composables/graph/useSelectionState.test.ts
  • src/composables/graph/useVueNodeLifecycle.ts
  • src/composables/node/badgeRendererParity.test.ts
  • src/composables/node/useNodeBadge.ts
  • src/composables/node/useNodePricing.test.ts
  • src/composables/node/useNodePricing.ts
  • src/composables/node/usePriceBadge.test.ts
  • src/composables/node/usePriceBadge.ts
  • src/composables/useUpstreamValue.test.ts
  • src/composables/useUpstreamValue.ts
  • src/core/graph/nodeShell/nodeShellLifecycle.test.ts
  • src/core/graph/nodeShell/nodeShellLifecycle.ts
  • src/core/graph/nodeShell/nodeShellState.test.ts
  • src/core/graph/nodeShell/nodeShellState.ts
  • src/core/graph/subgraph/migration/proxyWidgetMigration.test.ts
  • src/core/graph/subgraph/migration/proxyWidgetMigration.ts
  • src/core/graph/subgraph/promotedInputWidget.ts
  • src/core/graph/subgraph/promotionAfterReplacement.test.ts
  • src/core/graph/subgraph/promotionUtils.test.ts
  • src/core/graph/subgraph/promotionUtils.ts
  • src/core/graph/subgraph/resolveConcretePromotedWidget.test.ts
  • src/core/graph/subgraph/resolveSubgraphInputLink.ts
  • src/core/graph/widgets/dynamicWidgets.test.ts
  • src/core/graph/widgets/dynamicWidgets.ts
  • src/core/graph/widgets/matchTypeConfiguring.test.ts
  • src/extensions/core/groupNode.ts
  • src/extensions/core/load3d.ts
  • src/extensions/core/rerouteNode.ts
  • src/extensions/core/saveImageExtraOutput.test.ts
  • src/extensions/core/widgetInputs.refreshCombo.test.ts
  • src/extensions/core/widgetInputs.test.ts
  • src/extensions/core/widgetInputs.ts
  • src/extensions/core/widgetValuePropagation.test.ts
  • src/extensions/core/widgetValuePropagation.ts
  • src/lib/litegraph/src/LGraph.compoundUndo.test.ts
  • src/lib/litegraph/src/LGraph.deepCollision.test.ts
  • src/lib/litegraph/src/LGraph.failedConfigure.test.ts
  • src/lib/litegraph/src/LGraph.inputSlotRealign.test.ts
  • src/lib/litegraph/src/LGraph.serialise.test.ts
  • src/lib/litegraph/src/LGraph.test.ts
  • src/lib/litegraph/src/LGraph.ts
  • src/lib/litegraph/src/LGraphBadge.ts
  • src/lib/litegraph/src/LGraphCanvas.clipboard.test.ts
  • src/lib/litegraph/src/LGraphCanvas.cloneZIndex.test.ts
  • src/lib/litegraph/src/LGraphCanvas.deprecated.test.ts
  • src/lib/litegraph/src/LGraphCanvas.drawConnections.test.ts
  • src/lib/litegraph/src/LGraphCanvas.ghost.test.ts
  • src/lib/litegraph/src/LGraphCanvas.groupSelection.test.ts
  • src/lib/litegraph/src/LGraphCanvas.linkDragAutoPan.test.ts
  • src/lib/litegraph/src/LGraphCanvas.onMenuAdd.test.ts
  • src/lib/litegraph/src/LGraphCanvas.renderInfo.test.ts
  • src/lib/litegraph/src/LGraphCanvas.slotHitDetection.test.ts
  • src/lib/litegraph/src/LGraphCanvas.subgraphPasteDelete.test.ts
  • src/lib/litegraph/src/LGraphCanvas.titleButtons.test.ts
  • src/lib/litegraph/src/LGraphCanvas.ts
  • src/lib/litegraph/src/LGraphGroup.test.ts
  • src/lib/litegraph/src/LGraphGroup.ts
  • src/lib/litegraph/src/LGraphNode.nodeState.test.ts
  • src/lib/litegraph/src/LGraphNode.ownCollectionFields.test.ts
  • src/lib/litegraph/src/LGraphNode.propertyChanged.test.ts
  • src/lib/litegraph/src/LGraphNode.test.ts
  • src/lib/litegraph/src/LGraphNode.ts
  • src/lib/litegraph/src/LGraphNode.widgetLabelRename.regression.test.ts
  • src/lib/litegraph/src/LGraphNodeProperties.test.ts
  • src/lib/litegraph/src/LGraphNodeProperties.ts
  • src/lib/litegraph/src/LLink.spreadCopy.test.ts
  • src/lib/litegraph/src/LLink.store.test.ts
  • src/lib/litegraph/src/LLink.test.ts
  • src/lib/litegraph/src/LLink.ts
  • src/lib/litegraph/src/LinkMap.ts
  • src/lib/litegraph/src/LiteGraphGlobal.ts
  • src/lib/litegraph/src/Reroute.store.test.ts
  • src/lib/litegraph/src/Reroute.ts
  • src/lib/litegraph/src/__fixtures__/duplicateLinks.ts
  • src/lib/litegraph/src/__fixtures__/duplicateSubgraphNodeIds.ts
  • src/lib/litegraph/src/__fixtures__/nodeHelpers.ts
  • src/lib/litegraph/src/canvas/FloatingRenderLink.test.ts
  • src/lib/litegraph/src/canvas/FloatingRenderLink.ts
  • src/lib/litegraph/src/canvas/LinkConnector.core.test.ts
  • src/lib/litegraph/src/canvas/LinkConnector.integration.test.ts
  • src/lib/litegraph/src/canvas/LinkConnector.test.ts
  • src/lib/litegraph/src/canvas/LinkConnector.ts
  • src/lib/litegraph/src/canvas/LinkConnectorSubgraphInputValidation.test.ts
  • src/lib/litegraph/src/canvas/ToInputFromIoNodeLink.ts
  • src/lib/litegraph/src/canvas/ToInputRenderLink.ts
  • src/lib/litegraph/src/canvas/findRerouteAtPoint.ts
  • src/lib/litegraph/src/canvas/getCanvasContextMenuTarget.test.ts
  • src/lib/litegraph/src/canvas/getCanvasContextMenuTarget.ts
  • src/lib/litegraph/src/idAllocation.test.ts
  • src/lib/litegraph/src/idAllocation.ts
  • src/lib/litegraph/src/infrastructure/LGraphEventMap.ts
  • src/lib/litegraph/src/infrastructure/createMutationView.test.ts
  • src/lib/litegraph/src/infrastructure/createMutationView.ts
  • src/lib/litegraph/src/interfaces.ts
  • src/lib/litegraph/src/linkDeduplication.conflictingOrigins.test.ts
  • src/lib/litegraph/src/linkDeduplication.ts
  • src/lib/litegraph/src/litegraph.ts
  • src/lib/litegraph/src/node/NodeInputSlot.test.ts
  • src/lib/litegraph/src/node/NodeInputSlot.ts
  • src/lib/litegraph/src/node/NodeOutputSlot.test.ts
  • src/lib/litegraph/src/node/NodeOutputSlot.ts
  • src/lib/litegraph/src/node/NodeSlot.test.ts
  • src/lib/litegraph/src/node/NodeSlot.ts
  • src/lib/litegraph/src/node/SlotBase.ts
  • src/lib/litegraph/src/node/legacySlotLinkMutations.test.ts
  • src/lib/litegraph/src/node/slotEcosystemPatterns.test.ts
  • src/lib/litegraph/src/node/slotLinks.test.ts
  • src/lib/litegraph/src/node/slotLinks.ts
  • src/lib/litegraph/src/node/slotUtils.test.ts
  • src/lib/litegraph/src/node/slotUtils.ts
  • src/lib/litegraph/src/node/widgetsView.test.ts
  • src/lib/litegraph/src/node/widgetsView.ts
  • src/lib/litegraph/src/nodeBadgeDraw.test.ts
  • src/lib/litegraph/src/nodeBadgeDraw.ts
  • src/lib/litegraph/src/serialization.test.ts
  • src/lib/litegraph/src/subgraph/ExecutableNodeDTO.test.ts
  • src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts
  • src/lib/litegraph/src/subgraph/SubgraphConversion.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphDuplicateDeleteOrder.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphIO.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphIONodeBase.ts
  • src/lib/litegraph/src/subgraph/SubgraphInput.ts
  • src/lib/litegraph/src/subgraph/SubgraphInputNode.ts
  • src/lib/litegraph/src/subgraph/SubgraphNode.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphNode.ts
  • src/lib/litegraph/src/subgraph/SubgraphOutput.ts
  • src/lib/litegraph/src/subgraph/SubgraphSerialization.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphSlotConnections.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphWidgetPromotion.test.ts
  • src/lib/litegraph/src/subgraph/__fixtures__/README.md
  • src/lib/litegraph/src/subgraph/__fixtures__/subgraphHelpers.test.ts
  • src/lib/litegraph/src/subgraph/__fixtures__/subgraphHelpers.ts
  • src/lib/litegraph/src/subgraph/subgraphDeduplication.test.ts
  • src/lib/litegraph/src/subgraph/subgraphDeduplication.ts
  • src/lib/litegraph/src/subgraph/subgraphUtils.test.ts
  • src/lib/litegraph/src/subgraph/subgraphUtils.ts
  • src/lib/litegraph/src/types/graphTriggers.ts
  • src/lib/litegraph/src/types/serialisation.ts
  • src/lib/litegraph/src/types/widgets.ts
  • src/lib/litegraph/src/utils/collections.test.ts
  • src/lib/litegraph/src/utils/collections.ts
  • src/lib/litegraph/src/utils/widget.ts
  • src/lib/litegraph/src/widgetValueNullContract.test.ts
  • src/lib/litegraph/src/widgets/BaseWidget.test.ts
  • src/lib/litegraph/src/widgets/BaseWidget.ts
  • src/locales/ar/main.json
  • src/locales/en/main.json
  • src/locales/es/main.json
  • src/locales/fa/main.json
  • src/locales/fr/main.json
  • src/locales/he/main.json
  • src/locales/ja/main.json
  • src/locales/ko/main.json
  • src/locales/pt-BR/main.json
  • src/locales/ru/main.json
  • src/locales/tr/main.json
  • src/locales/zh-TW/main.json
  • src/locales/zh/main.json
  • src/platform/cloud/subscription/composables/useFreeTierQuota.ts
  • src/platform/missingMedia/__fixtures__/promotedMedia.ts
  • src/platform/missingMedia/missingMediaScan.test.ts
  • src/platform/missingMedia/missingMediaStore.ts
  • src/platform/missingModel/missingModelScan.test.ts
  • src/platform/missingModel/missingModelScan.ts
  • src/platform/missingModel/missingModelStore.ts
  • src/platform/nodeReplacement/useNodeReplacement.test.ts
  • src/platform/nodeReplacement/useNodeReplacement.ts
  • src/platform/telemetry/nodeAdded/installNodeAddedTelemetry.test.ts
  • src/platform/telemetry/nodeAdded/installNodeAddedTelemetry.ts
  • src/platform/workflow/core/services/workflowService.insertWorkflow.test.ts
  • src/platform/workflow/core/services/workflowService.ts
  • src/platform/workflow/core/utils/workflowToClipboardItems.integration.test.ts
  • src/platform/workflow/core/utils/workflowToClipboardItems.test.ts
  • src/platform/workflow/core/utils/workflowToClipboardItems.ts
  • src/platform/workflow/validation/schemas/workflowSchema.test.ts
  • src/renderer/core/canvas/canvasStore.test.ts
  • src/renderer/core/canvas/canvasStore.ts
  • src/renderer/core/canvas/links/linkConnectorAdapter.ts
  • src/renderer/core/canvas/links/linkDropOrchestrator.test.ts
  • src/renderer/core/canvas/litegraph/arrangeForLegacyRender.test.ts
  • src/renderer/core/canvas/litegraph/arrangeForLegacyRender.ts
  • src/renderer/core/canvas/litegraph/notifyLayoutChanges.test.ts
  • src/renderer/core/canvas/litegraph/notifyLayoutChanges.ts
  • src/renderer/core/canvas/litegraph/slotCalculations.test.ts
  • src/renderer/core/canvas/litegraph/slotCalculations.ts
  • src/renderer/core/layout/constants.ts
  • src/renderer/core/layout/operations/graphLayoutAttachment.ts
  • src/renderer/core/layout/operations/layoutMutations.test.ts
  • src/renderer/core/layout/operations/layoutMutations.ts
  • src/renderer/core/layout/store/__mocks__/layoutStore.ts
  • src/renderer/core/layout/store/batchUpdateNodeBounds.test.ts
  • src/renderer/core/layout/store/hitTargetAuthority.test.ts
  • src/renderer/core/layout/store/layoutStore.multiHolder.test.ts
  • src/renderer/core/layout/store/layoutStore.test.ts
  • src/renderer/core/layout/store/layoutStore.ts
  • src/renderer/core/layout/sync/syncLayoutStoreFromGraph.test.ts
  • src/renderer/core/layout/sync/syncLayoutStoreFromGraph.ts
  • src/renderer/core/layout/sync/useLayoutSync.test.ts
  • src/renderer/core/layout/sync/useLayoutSync.ts
  • src/renderer/core/layout/types.ts
  • src/renderer/core/layout/utils/mappers.test.ts
  • src/renderer/core/layout/utils/mappers.ts
  • src/renderer/extensions/firstRunTour/roles/heuristicRoles.test.ts
  • src/renderer/extensions/firstRunTour/roles/heuristicRoles.ts
  • src/renderer/extensions/firstRunTour/tour/canvasCoachTarget.test.ts
  • src/renderer/extensions/firstRunTour/tour/canvasCoachTarget.ts
  • src/renderer/extensions/firstRunTour/tour/firstRunTourDefinition.test.ts
  • src/renderer/extensions/layerEditor/engine/editor/selectionMath.test.ts
  • src/renderer/extensions/linearMode/PartnerNodesList.vue
  • src/renderer/extensions/minimap/composables/useMinimap.intervalLifecycle.test.ts
  • src/renderer/extensions/minimap/composables/useMinimap.test.ts
  • src/renderer/extensions/minimap/composables/useMinimapGraph.test.ts
  • src/renderer/extensions/minimap/composables/useMinimapGraph.ts
  • src/renderer/extensions/minimap/composables/useMinimapViewport.test.ts
  • src/renderer/extensions/minimap/composables/useMinimapViewport.ts
  • src/renderer/extensions/minimap/data/AbstractMinimapDataSource.ts
  • src/renderer/extensions/minimap/data/LayoutStoreDataSource.ts
  • src/renderer/extensions/minimap/data/LiteGraphDataSource.ts
  • src/renderer/extensions/minimap/data/MinimapDataSource.test.ts
  • src/renderer/extensions/minimap/data/MinimapDataSource.ts
  • src/renderer/extensions/minimap/data/MinimapDataSourceFactory.ts
  • src/renderer/extensions/minimap/minimapCanvasRenderer.test.ts
  • src/renderer/extensions/minimap/minimapCanvasRenderer.ts
  • src/renderer/extensions/minimap/types.ts
  • src/renderer/extensions/vueNodes/components/LGraphNode.subgraph.test.ts
  • src/renderer/extensions/vueNodes/components/LGraphNode.test.ts
  • src/renderer/extensions/vueNodes/components/LGraphNode.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.test.ts
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
  • src/renderer/extensions/vueNodes/components/NodeContent.vue
  • src/renderer/extensions/vueNodes/components/NodeHeader.test.ts
  • src/renderer/extensions/vueNodes/components/NodeHeader.vue
  • src/renderer/extensions/vueNodes/components/NodeSlots.test.ts
  • src/renderer/extensions/vueNodes/components/NodeSlots.vue
  • src/renderer/extensions/vueNodes/components/NodeWidgets.test.ts
  • src/renderer/extensions/vueNodes/components/NodeWidgets.vue
  • src/renderer/extensions/vueNodes/components/WidgetGrid.vue
  • src/renderer/extensions/vueNodes/composables/useNodeEventHandlers.test.ts
  • src/renderer/extensions/vueNodes/composables/useNodeEventHandlers.ts
  • src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.test.ts
  • src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts
  • src/renderer/extensions/vueNodes/composables/useNodeTooltips.test.ts
  • src/renderer/extensions/vueNodes/composables/useNodeTooltips.ts
  • src/renderer/extensions/vueNodes/composables/useNodeZIndex.test.ts
  • src/renderer/extensions/vueNodes/composables/useNodeZIndex.ts
  • src/renderer/extensions/vueNodes/composables/usePartitionedBadges.test.ts
  • src/renderer/extensions/vueNodes/composables/usePartitionedBadges.ts
  • src/renderer/extensions/vueNodes/composables/useProcessedWidgets.test.ts
  • src/renderer/extensions/vueNodes/composables/useProcessedWidgets.ts
  • src/renderer/extensions/vueNodes/composables/useSlotElementTracking.test.ts
  • src/renderer/extensions/vueNodes/composables/useSlotElementTracking.ts
  • src/renderer/extensions/vueNodes/composables/useSlotLinkInteraction.autoPan.test.ts
  • src/renderer/extensions/vueNodes/composables/useSlotLinkInteraction.ts
  • src/renderer/extensions/vueNodes/composables/useVueNodeResizeTracking.test.ts
  • src/renderer/extensions/vueNodes/composables/useVueNodeResizeTracking.ts
  • src/renderer/extensions/vueNodes/interactions/resize/useNodeResize.test.ts
  • src/renderer/extensions/vueNodes/interactions/resize/useNodeResize.ts
  • src/renderer/extensions/vueNodes/layout/ensureCorrectLayoutScale.test.ts
  • src/renderer/extensions/vueNodes/layout/ensureCorrectLayoutScale.ts
  • src/renderer/extensions/vueNodes/layout/nodeSizeReflow.test.ts
  • src/renderer/extensions/vueNodes/layout/useNodeDrag.test.ts
  • src/renderer/extensions/vueNodes/layout/useNodeDrag.ts
  • src/renderer/extensions/vueNodes/layout/useNodeLayout.test.ts
  • src/renderer/extensions/vueNodes/layout/useNodeLayout.ts
  • src/renderer/extensions/vueNodes/types/widgetGrid.ts
  • src/renderer/extensions/vueNodes/utils/__tests__/nodeDataUtils.test.ts
  • src/renderer/extensions/vueNodes/utils/nodeDataUtils.ts
  • src/renderer/extensions/vueNodes/utils/nodeErrorState.ts
  • src/renderer/extensions/vueNodes/widgets/components/WidgetButton.test.ts
  • src/renderer/extensions/vueNodes/widgets/components/WidgetButton.vue
  • src/renderer/extensions/vueNodes/widgets/components/WidgetDOM.test.ts
  • src/renderer/extensions/vueNodes/widgets/components/WidgetDOM.vue
  • src/renderer/extensions/vueNodes/widgets/components/WidgetLegacy.vue
  • src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.test.ts
  • src/renderer/extensions/vueNodes/widgets/composables/useProgressTextWidget.ts
  • src/renderer/extensions/vueNodes/widgets/composables/useWidgetRenderer.test.ts
  • src/renderer/extensions/vueNodes/widgets/registry/widgetRegistry.ts
  • src/renderer/glsl/glslPreviewUtils.ts
  • src/renderer/glsl/useGLSLUniforms.test.ts
  • src/renderer/glsl/useGLSLUniforms.ts
  • src/scripts/app.test.ts
  • src/scripts/app.ts
  • src/scripts/changeTracker.test.ts
  • src/scripts/pnginfo.test.ts
  • src/scripts/promotedWidgetControl.test.ts
  • src/scripts/promotedWidgetControl.ts
  • src/scripts/widgets.ts
  • src/services/litegraphService.lateRegistration.test.ts
  • src/services/litegraphService.ts
  • src/services/subgraphService.ts
  • src/stores/appModeStore.test.ts
  • src/stores/linkStore.test.ts
  • src/stores/linkStore.ts
  • src/stores/nodeDataStore.test.ts
  • src/stores/nodeDataStore.ts
  • src/stores/rerouteStore.test.ts
  • src/stores/rerouteStore.ts
  • src/stores/widgetValueStore.graphReactivity.test.ts
  • src/stores/widgetValueStore.test.ts
  • src/stores/widgetValueStore.ts
  • src/stores/workspace/favoritedWidgetsStore.ts
  • src/systems/badgeSystem.pricing.test.ts
  • src/systems/badgeSystem.subgraph.test.ts
  • src/systems/badgeSystem.test.ts
  • src/systems/badgeSystem.ts
  • src/types/badgeData.ts
  • src/types/graphScopeId.ts
  • src/types/groupId.ts
  • src/types/linkTopology.ts
  • src/types/nodeState.ts
  • src/types/rerouteChain.ts
  • src/types/simplifiedWidget.ts
  • src/types/widgetState.ts
  • src/utils/__tests__/litegraphTestUtils.ts
  • src/utils/executionUtil.test.ts
  • src/utils/graphTraversalUtil.test.ts
  • src/utils/graphTraversalUtil.ts
  • src/utils/linkFixer.test.ts
  • src/utils/linkFixer.ts
  • src/utils/litegraphUtil.test.ts
  • src/utils/litegraphUtil.ts
  • src/utils/searchAndReplace.test.ts
  • src/utils/vintageClipboard.ts
  • src/utils/widgetUtil.ts
  • tools/devtools/web/legacyWidget.js

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

📝 Walkthrough

Walkthrough

This PR migrates LiteGraph's link, reroute, and node topology from mutable slot mirrors (input.link, output.links, _floatingLinks) into dedicated Pinia stores (linkStore, rerouteStore, nodeDataStore). It deprecates direct slot mutation. It adds a badgeSystem that derives node badges, including pricing and credits, on read. This replaces usePriceBadge, inline useNodeBadge logic, and BadgePosition. It removes useGraphNodeManager and useVueNodeLifecycle in favor of NodeState-driven Vue node rendering. It updates widget promotion and dynamic-widget code to use graph-level link helpers. It switches node lifecycle notifications to node:added/node:removed events. Extensive tests, docs, and locale updates accompany the change.

Estimated code review effort: 5 (Critical) | ~180+ minutes

Changes

Core ECS store migration (link/reroute/node-data/badge stores)

Layer / File(s) Summary
Link topology, reroute, and node-data stores
src/stores/linkStore.ts, src/stores/rerouteStore.ts, src/stores/nodeDataStore.ts, src/types/linkTopology.ts, src/types/rerouteChain.ts, src/types/nodeState.ts, tests
New Pinia stores hold link endpoints, reroute chain membership, and per-graph node state as the authoritative topology source. This replaces mutable slot fields.
LiteGraph core class refactor
src/lib/litegraph/src/LLink.ts, Reroute.ts, LGraph.ts, LGraphNode.ts, LGraphGroup.ts, LGraphCanvas.ts, canvas/LinkConnector.ts, node/*, subgraph files, tests
LLink, Reroute, and LGraphNode now back state through _state and store registration. Slot helper functions (inputLinkId, outputLinks, slotFloatingLinks) replace direct field access. Deprecated accessors warn on legacy read or write.
Node lifecycle events and replacement
useErrorClearingHooks.ts, useNodeReplacement.ts, installNodeAddedTelemetry.ts, workflowService.ts, workflowToClipboardItems.ts
Node add and remove notifications move from callback overriding to graph.events dispatch (node:added/node:removed). Workflow insertion uses clipboard-item conversion instead of a temporary canvas.
Widget promotion and dynamic widgets
promotionUtils.ts, proxyWidgetMigration.ts, dynamicWidgets.ts, widgetInputs.ts, widgetValuePropagation.ts, rerouteNode.ts, groupNode.ts
Promotion, migration, and dynamic-widget code resolve connections through link-store and graph helpers instead of raw slot arrays. Input layout replacement is centralized through replaceNodeInputs and captureInputLayout.
Promoted-widget UI (host prop)
SectionWidgets.vue, TabSubgraphInputs.vue, WidgetActions.vue, WidgetItem.vue, SubgraphEditor.vue, AppModeWidgetList.vue, useUpstreamValue.ts
Components accept a single host subgraph node prop instead of parents/isShownOnParents. Linkage checks use linkStore.isInputSlotConnected.
Badge derivation system
src/systems/badgeSystem.ts, src/types/badgeData.ts, nodeBadgeDraw.ts, useNodeBadge.ts, useNodePricing.ts, usePartitionedBadges.ts, PartnerNodesList.vue, useFreeTierQuota.ts
badgeSystem.computeBadges derives core and credits badge rows per node on read. usePriceBadge and BadgePosition are removed. Pricing caching keys on connection state through isInputConnected.
Vue node rendering and layout/minimap
GraphCanvas.vue, LGraphNode.vue, NodeSlots.vue, NodeWidgets.vue, WidgetGrid.vue, useProcessedWidgets.ts, layoutStore.ts, layoutMutations.ts, minimap data sources
Vue node components consume NodeState from nodeDataStore. The layout store and mutations become graph-scoped (rootGraphId). Minimap data sources read links and nodes from the new stores.
Widget value store and utilities
widgetValueStore.ts, graphTraversalUtil.ts, linkFixer.ts, litegraphUtil.ts, missingModelScan.ts, locale files
widgetValueStore gains render-state tracking and node widget ordering. Graph traversal and link-fixer utilities and locale strings (hideInput to advanced-input labels) are updated to match the new store model.

Sequence Diagram(s)

sequenceDiagram
  participant LGraphNode as LGraphNode (connect)
  participant LGraph as LGraph
  participant LinkStore as linkStore (Pinia)
  participant RerouteStore as rerouteStore (Pinia)
  participant LayoutStore as layoutStore (Pinia)

  LGraphNode->>LGraph: _addLink(link)
  LGraph->>LinkStore: registerLink(graphId, topology)
  LGraph->>RerouteStore: anchorRerouteChain(link)
  RerouteStore->>LinkStore: derive membership from parentId chain
  Note over LGraphNode,LinkStore: input.link / output.links no longer written directly
  LGraphNode->>LGraph: disconnectInput/disconnectOutput
  LGraph->>LinkStore: deleteLink / unregisterLinkTopology
  LGraph->>LayoutStore: deleteLinkLayout(linkId)
Loading
sequenceDiagram
  participant Node as LGraphNode
  participant Events as graph.events
  participant Hooks as useErrorClearingHooks
  participant Telemetry as installNodeAddedTelemetry

  Node->>Events: dispatch('node:added', { node })
  Events->>Hooks: node:added listener
  Hooks->>Hooks: install per-node error hooks
  Events->>Telemetry: node:added listener
  Telemetry->>Telemetry: trackNodeAdded(node)
Loading

Possibly related PRs

Suggested labels: size:XXL, area:litegraph, area:widgets, area:vue-nodes

Suggested reviewers: austinmroz

🚥 Pre-merge checks | ✅ 5 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Adr Compliance For Entity/Litegraph Changes ⚠️ Warning NodeState is stored in nodeDataStore but its inputs/outputs are behavior-bearing INode*Slot instances with node back-references, violating ADR 0008 plain-data component separation (docs/adr/0008-en... Keep behavior-bearing slots outside NodeState, or replace them with plain slot-state rows and resolve node behavior through an adapter, as required by ADR 0008.
✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
End-To-End Regression Coverage For Fixes ✅ Passed The PR changes many src/ files and also changes multiple browser_tests/ files, so condition 2 is false regardless of any bug-fix wording.
Title check ✅ Passed The title clearly identifies the central ECS migration, although “Still Draft Feature” adds minor status noise.
Description check ✅ Passed The description covers the migration summary, key changes, review focus, status, and relevant context, with screenshots omitted appropriately for a non-visual change.
✨ Finishing Touches 💡 1
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch feature/ecs-migration
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/ecs-migration

Comment @coderabbitai help to get the list of available commands.

@DrJKL DrJKL added the New Browser Test Expectations New browser test screenshot should be set by github action label Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Updating Playwright Expectations

@github-actions github-actions Bot removed the New Browser Test Expectations New browser test screenshot should be set by github action label Jul 29, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 49

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/renderer/extensions/vueNodes/components/NodeSlots.vue (1)

10-19: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Collapse the per-slot lookups into one computed row list.

getActualInputIndex now runs three times per input during render (:key, :index, and inside :connected), each a linear findIndex over nodeData.inputs — O(N²) per node render on the canvas hot path. Building the rows once also removes the duplicated rootGraphId guards in isInputConnected/isOutputConnected.

♻️ Sketch
const inputRows = computed(() => {
  const graphId = canvasStore.rootGraphId
  return filteredInputs.value.map((input, filteredIndex) => {
    const actualIndex = nodeData.inputs.indexOf(input)
    const index = actualIndex !== -1 ? actualIndex : filteredIndex
    return {
      input,
      index,
      connected: graphId
        ? linkStore.isInputSlotConnected(graphId, nodeData.id, index)
        : false
    }
  })
})
-      <InputSlot
-        v-for="(input, index) in filteredInputs"
-        :key="`input-${input.name}-${getActualInputIndex(input, index)}`"
-        :slot-data="input"
-        :node-type="nodeData?.type || ''"
-        :node-id="nodeData.id"
-        :has-error="inputHasError(input)"
-        :index="getActualInputIndex(input, index)"
-        :connected="isInputConnected(getActualInputIndex(input, index))"
-      />
+      <InputSlot
+        v-for="row in inputRows"
+        :key="`input-${row.input.name}-${row.index}`"
+        :slot-data="row.input"
+        :node-type="nodeData.type"
+        :node-id="nodeData.id"
+        :has-error="inputHasError(row.input)"
+        :index="row.index"
+        :connected="row.connected"
+      />

Also applies to: 119-125

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/renderer/extensions/vueNodes/components/NodeSlots.vue` around lines 10 -
19, In NodeSlots.vue, add computed inputRows and outputRows that resolve each
slot’s actual index once and calculate connection state using the rootGraphId
within the computed mapping. Update the InputSlot and OutputSlot v-for blocks to
consume these row objects for keys, slot data, indices, and connected state,
removing repeated getActualInputIndex calls and redundant rootGraphId guards
from isInputConnected/isOutputConnected.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@browser_tests/tests/vueNodes/interactions/links/linkInteraction.spec.ts`:
- Around line 1360-1365: Update the link-resolution logic near the Preview Image
node to stop reading the removed inputs[0].link mirror. Resolve the node’s
connected link through the graph topology API or graph.links, then use that
link’s identifier with getLink to obtain parentId while preserving the existing
failure messages.

In `@docs/architecture/entity-interactions.md`:
- Around line 106-108: Update the Legend in entity-interactions.md to define the
-.- edge style used by the derived linkIds and floatingLinkIds relationships,
including its meaning as a dotted, non-directional derived relationship. Keep
the existing owns, references, and extends legend entries unchanged.

In `@docs/architecture/link-topology-store.md`:
- Around line 18-21: Add language annotations to both new fenced code blocks:
use an appropriate tag such as ts or text for the LinkTopology shape in
docs/architecture/link-topology-store.md lines 18-21, and ts for the BadgeData
union in docs/architecture/node-badge-store.md lines 40-44, resolving
markdownlint MD040 without changing the documented content.

In `@docs/architecture/node-data-store.md`:
- Around line 28-43: Add the TypeScript language identifier to the NodeState
fenced code block in the architecture documentation, changing the opening fence
to use ts while leaving the schema content unchanged.

In `@docs/architecture/proto-ecs-stores.md`:
- Around line 388-413: Update the migration matrix and priority entries to
reflect the implemented state: add NodeDataStore-extracted data to the Node row,
remove stale input.link/output.links mirror work from the Link and Slot gaps,
and adjust the related priority descriptions accordingly. Use the existing
NodeDataStore and output-slot-connectivity documentation as the source of truth
while preserving the remaining unimplemented extraction work.

In `@src/components/builder/AppModeWidgetList.vue`:
- Around line 89-110: Make mappedSelections a pure computed by removing
ensureSelectedWidgetState from its getter and register resolved widgets in a
watch/watchEffect driven by resolvedInputs instead. In the computed, check
isWidgetInputLinked before calling nodeToNodeData so filtered linked inputs do
not build unused data; preserve the existing selection mapping for unlinked
ALWAYS-mode entries.

In `@src/composables/graph/useNodeErrorFlagSync.test.ts`:
- Around line 32-34: Restore Vitest mocks before each test in the setup for this
suite, alongside setActivePinia, so the rootGraph and isGraphReady getter spies
created by setupGraphWithStore and the subgraph tests do not accumulate across
it blocks. Use the project’s required reset/restore pattern consistently for all
tests.

In `@src/composables/graph/useVueNodeLifecycle.ts`:
- Around line 94-99: Update disposeVueNodeLayout to clear all node entries from
layoutStore after stopping synchronization and listeners, undoing the data
seeded by initializeVueNodeLayout. Ensure the shouldRenderVueNodes transition
handled by the whenever block leaves layoutStore empty when Vue rendering is
disabled, preserving the existing cleanup state resets.

In `@src/composables/node/useNodePricing.ts`:
- Around line 589-593: The cache-miss fallback in the node pricing evaluation
flow must use the previous label for the current signature rather than the
newest label from any cached signature. Update the state associated with
scheduleEvaluation or the surrounding caller to track and return the last label
per signature/read context, while preserving the empty-string fallback when no
matching prior label exists.

In `@src/core/graph/subgraph/promotionUtils.ts`:
- Around line 298-308: Replace the direct promotedState.label mutation in the
hostInput promotion block with the widget store’s dedicated label-update action,
adding that action if none exists. Pass hostInput.widgetId and sourceSlot.label
through the store API so state invariants, telemetry, and persistence hooks are
preserved.

In `@src/core/graph/widgets/dynamicWidgets.test.ts`:
- Around line 10-11: Remove the redundant module-level
setActivePinia(createTestingPinia({ stubActions: false })) call in
dynamicWidgets.test.ts, keeping the beforeEach setup as the sole initialization
so each test receives a fresh testing Pinia.

In `@src/core/graph/widgets/dynamicWidgets.ts`:
- Around line 269-276: Replace the deprecated indexed link lookup in the
topology loop with the graph’s store-consistent getLink() method, using
topology.id as the lookup key and preserving the existing missing-link continue
behavior.
- Around line 555-563: Move the syncNodeWidgetOrder(node) call out of the
toRemove iteration and invoke it once after the loop completes. Preserve the
existing widget removal and cleanup behavior, including skipping inputs without
a widget name.

In `@src/extensions/core/widgetInputs.test.ts`:
- Around line 19-37: Remove the explicit 30_000 ms timeout argument from the
synchronous test defined by “resets itself when the store reports a link the
graph cannot resolve,” leaving the test body and its assertions unchanged so
Vitest uses its default timeout.

In `@src/extensions/core/widgetValuePropagation.ts`:
- Around line 25-28: Update the early-return guard in the widget value
propagation function to account for both store links and extraLinks, allowing
propagation when extraLinks is non-empty even if linked is empty. Keep returning
early only when neither source contains endpoints, and preserve the existing
endpoint-merging behavior.

In `@src/lib/litegraph/src/__fixtures__/nodeHelpers.ts`:
- Around line 38-55: Update createTestWidgetNode to register an onTestFinished
cleanup alongside its WIDGET_NODE_TYPE registration, restoring the previous
LiteGraph.registered_node_types entry or removing the test type after the test
completes, matching createTestNode’s cleanup pattern. Keep node creation and
graph.add behavior unchanged.

In `@src/lib/litegraph/src/LGraph.inputSlotRealign.test.ts`:
- Around line 319-322: Update the parameter list for the parameterized test
“rekeys a serialized %s” to destructure each it.for tuple into its name and
usePurgedAlias values, ensuring both registered-link and purged-alias cases
execute with their intended boolean.

In `@src/lib/litegraph/src/LGraphCanvas.ts`:
- Line 5706: Update the clip-path shape selection near drawNodeShape to use
node.renderingShape instead of node.shape or a direct BOX fallback, keeping
clipping consistent with the shape resolved by the node body and its
class/default fallbacks.

In `@src/lib/litegraph/src/LGraphNode.test.ts`:
- Around line 878-899: Remove the redundant “defaults to a normal title” test
because it only checks constructor initialization. In the remaining “titleMode
in node state” test, avoid the private _state shape by asserting the NO_TITLE
value through the store-held state returned by getGraphNodesFor(...) or the
public title_mode accessor, while preserving coverage that TitlelessNode’s
static title_mode is propagated.

In `@src/lib/litegraph/src/LGraphNode.ts`:
- Around line 347-349: Make the _state accessors consistent by routing the id
setter, flags setter, and resizable setter through setTrackedState, ensuring
each emits node:property:changed like title, mode, color, bgcolor, and
showAdvanced. Update the affected setters and preserve their existing values and
behavior, including resizable changes triggered by pin() and configure().
- Around line 4023-4031: Optimize updateComputedDisabled to avoid repeated
inputs scans during rendering: update getSlotFromWidget or the surrounding
widget loop to return/reuse the matching input index and determine connectivity
directly from that result, rather than calling this.inputs.indexOf(slot) after
the lookup. Preserve the existing computedDisabled behavior for widgets without
slots, disabled widgets, and connected inputs.
- Around line 1149-1157: The output serialization mapping in LGraphNode
serialization currently masks a type mismatch with `@ts-expect-error`. Remove that
directive and reconcile the return type of outputAsSerialisable with the
ISserialisedNode outputs element type so the mapping type-checks without
suppression.
- Around line 1062-1070: Update the input restoration loop in configure() to
invoke onConnectionsChange only when the serialized input contains a link that
was successfully restored; skip the callback for bare inputs, matching the
output restoration behavior. Continue invoking onInputAdded for every input.
- Around line 1884-1911: Update removeInput so the replaceNodeInputs failure
path, identified when this.inputs still includes slotInfo, logs a warning before
returning. Keep the existing removal callback, floating-link adjustment, and
canvas-dirty behavior unchanged for successful removals.

In `@src/lib/litegraph/src/linkDeduplication.ts`:
- Around line 54-72: Remove the unused link lookup and its guard from
purgeOrphanedLinks; iterate over non-survivor ids and call graph._removeLink(id)
directly, preserving the survivor re-registration logic afterward.

In `@src/lib/litegraph/src/LLink.ts`:
- Around line 98-112: Update applyEndpointPatch to propagate failures from
useLinkStore().updateEndpoint instead of only logging result.error and returning
normally. Throw or otherwise surface the rejected patch through the existing
endpoint setter/configure call chain, while preserving direct Object.assign
behavior for unregistered links.

In `@src/lib/litegraph/src/node/slotLinks.ts`:
- Around line 156-158: Collapse the short single-statement if block in the
finalInputs validation by placing the condition and throw on one line,
preserving the existing duplicate-slot check and error message.

In `@src/lib/litegraph/src/node/slotUtils.test.ts`:
- Around line 32-43: Update the ordering assertion in the “serialises the links
leaving the slot, ascending by id” test to sort LinkId values with an explicit
numeric comparator. Keep the existing length assertion and verify
serialised.links against its numerically ascending copy.

In `@src/lib/litegraph/src/nodeBadgeDraw.ts`:
- Around line 76-86: The registerBadgeRowsProvider function permanently pins the
first provider and offers no cleanup path. Add an unregister/disposer mechanism
tied to the registered provider, or expose a reset API for HMR and tests, while
preserving rejection of conflicting active registrations.
- Around line 52-62: Update the badge construction loop to create the credits
icon only when row.kind is exactly 'credits', rather than treating every
non-core row as credits. Preserve core-row skipping and ensure other BadgeData
kinds are handled explicitly or rejected by the type system instead of silently
receiving the credits icon.

In `@src/lib/litegraph/src/subgraph/__fixtures__/subgraphHelpers.ts`:
- Around line 68-95: Update enableSubgraphNodeCreation to keep the event
listener and type-to-constructor registrations local to each helper instance.
Make the returned disposer remove its own listener and delete only registrations
whose current constructor still matches the locally stored constructor,
preventing helpers from affecting each other; add coverage that creates another
subgraph after disposal and verifies no registration occurs.

In `@src/lib/litegraph/src/subgraph/subgraphDeduplication.ts`:
- Around line 114-129: Parameterize findNextAvailableId with an identifier-space
label and use it in the exhaustion error instead of the hardcoded node-specific
message. Update each caller, including node and reroute ID allocation, to
provide the appropriate label while preserving the existing allocation behavior.

In `@src/lib/litegraph/src/subgraph/subgraphUtils.test.ts`:
- Line 3: Update the tests in subgraphUtils.test.ts to restore mocked globals
after every test, using an afterEach hook with vi.restoreAllMocks(). Ensure
console.error is restored even when assertions fail, and remove any reliance on
cleanup that only runs after successful assertions.

In `@src/platform/cloud/subscription/composables/useFreeTierQuota.ts`:
- Around line 28-31: Update hasInvalidNodes in useFreeTierQuota to derive the
root graph from useCanvasStore().currentGraph instead of the non-reactive
app.graph, preserving the existing graphCreditsBadges check and false fallback.
Ensure the composable accesses the reactive currentGraph source so
freeTierExecutionPermitted recalculates after workflow switches.

In `@src/renderer/extensions/minimap/data/MinimapDataSource.test.ts`:
- Around line 48-59: Update registerNodeState so useNodeDataStore().registerNode
receives the graphId parameter as its store partition key instead of the
hardcoded GRAPH_ID, while continuing to set the same graphId on the created node
state.

In `@src/renderer/extensions/vueNodes/components/LGraphNode.vue`:
- Around line 702-711: Update the widgetIds computed in LGraphNode.vue to derive
graph identity from the reactive canvasStore.rootGraphId instead of
app.rootGraph?.id. Preserve the existing empty-result guard and getNodeWidgetIds
lookup, ensuring hasRenderableWidgets and downstream computeds refresh when the
root graph is replaced.

In `@src/renderer/extensions/vueNodes/components/NodeHeader.test.ts`:
- Around line 22-32: Replace the local makeNodeData fixture with the shared
createNodeState fixture from litegraphTestUtils, adding the required import and
passing the existing overrides through it. Remove the hand-rolled NodeState
defaults so shared fields, including the ALWAYS mode, remain consistent.

In `@src/renderer/extensions/vueNodes/components/NodeWidgets.test.ts`:
- Around line 265-267: Replace the Tailwind class assertion in the NodeWidgets
test with an assertion on a semantic error signal exposed by the widget row,
such as data-has-error or aria-invalid. Update the relevant widget-row rendering
symbol to provide that signal if needed, while preserving the existing error
behavior.

In `@src/renderer/extensions/vueNodes/composables/useProcessedWidgets.test.ts`:
- Around line 342-351: Update the test around processWidgets to avoid asserting
the literal Tailwind value ring ring-component-node-widget-advanced. Verify the
advanced/non-advanced borderStyle behavior by comparing results for showAdvanced
or reuse a shared source constant, and apply the same change to the duplicate
assertion near the other advanced-widget test.

In `@src/renderer/extensions/vueNodes/composables/useProcessedWidgets.ts`:
- Around line 411-414: Update the valueTooltip logic in useProcessedWidgets so
object-valued asset/combo widgets do not produce a tooltip from String(value),
particularly avoiding “[object Object]”. Only attach the tooltip when the value
is a meaningful primitive string representation longer than 10 characters, while
preserving the existing type and length checks.

In `@src/renderer/glsl/useGLSLUniforms.test.ts`:
- Around line 21-32: Update makeGlslNode to use a real Subgraph and LiteGraph
links from the shared test factories instead of overriding getInputLink with a
hand-rolled inputs-to-subgraph mapping. Remove the getInputLink mock so
extractUniformSources exercises the actual LGraphNode.getInputLink behavior,
while preserving the test’s intended input-link setup.

In `@src/services/litegraphService.ts`:
- Around line 467-485: Extract the duplicated serialized-output merge into a
module-level helper, such as mergeSerialisedOutputs, preserving the existing
zip, RESERVED_KEYS merge, extra-output handling, and outputAsSerialisable
fallback. Replace the inline blocks in src/services/litegraphService.ts:467-485
and src/services/litegraphService.ts:579-597 with calls to the shared helper.

In `@src/stores/widgetValueStore.graphReactivity.test.ts`:
- Around line 279-293: Strengthen the test “registers plain render metadata for
non-promoted widgets” by replacing the definedness and absent sourceExecutionId
checks with assertions for the expected non-promoted render metadata, including
hasLayoutSize: false and isDOMWidget: false. Ensure the assertions distinguish
plain registration from promoted widget registration rather than only checking
defaults.

In `@src/stores/widgetValueStore.ts`:
- Around line 146-151: Update getWidgetRenderState to validate widgetId with the
existing isWidgetId guard before calling parseWidgetId; return undefined for
non-conforming IDs, matching getWidget’s behavior, while preserving the current
graph-state lookup for valid IDs.
- Around line 61-69: Split lazy creation from reads in the widget-order store:
add an ensure helper for mutation paths and a non-mutating peek helper for
reads. Update appendNodeWidgetOrder and setNodeWidgetOrder to use
ensureNodeWidgetOrder, and getNodeWidgetIds and reconcileNodeWidgetOrder to use
peekNodeWidgetOrder so computed reads do not insert entries. Apply the same
ensure/peek separation to getWidgetRenderState, ensuring read access does not
create per-graph maps.

In `@src/stores/workspace/favoritedWidgetsStore.ts`:
- Around line 76-79: Track the deferred migration from (nodeLocatorId,
widgetName) keys to host-scoped WidgetId keys by opening an issue that documents
the favoritedWidgets persistence-format change, required one-time migration of
workflow.extra.favoritedWidgets, and removal of the
isShownOnParents/favoriteNode indirection for promoted widgets.

In `@src/systems/badgeSystem.pricing.test.ts`:
- Around line 13-22: The getNodeDisplayPrice mock currently reads
useLinkStore().isInputSlotConnected, allowing the badge computed to react
without touchPricingSources registering the dependency. Make getNodeDisplayPrice
pure by deriving its result from node data or a plain test-controlled
counter/override, then update the test setup to flip that value and assert
recomputation specifically through touchPricingSources.

In `@src/systems/badgeSystem.ts`:
- Around line 212-220: Update the Settings map entries for
Comfy.NodeBadge.NodeIdBadgeMode, Comfy.NodeBadge.NodeLifeCycleBadgeMode, and
Comfy.NodeBadge.NodeSourceBadgeMode to use NodeBadgeMode, then remove the
corresponding assertions from the badgeModes initialization. Ensure
settingStore.get infers and returns NodeBadgeMode directly for these keys.
- Around line 167-187: Update gatherSubgraphCredits to touch all dynamic pricing
dependencies for the single inner API leaf, not only
pricing.getNodeRevisionRef(leaf.id). Reuse the dependency-registration behavior
from touchPricingSources, passing the appropriate inner graph-id keys from
wrapper.subgraph for priced widget values and input connections, while
preserving the existing multi-leaf and display-price behavior.

---

Outside diff comments:
In `@src/renderer/extensions/vueNodes/components/NodeSlots.vue`:
- Around line 10-19: In NodeSlots.vue, add computed inputRows and outputRows
that resolve each slot’s actual index once and calculate connection state using
the rootGraphId within the computed mapping. Update the InputSlot and OutputSlot
v-for blocks to consume these row objects for keys, slot data, indices, and
connected state, removing repeated getActualInputIndex calls and redundant
rootGraphId guards from isInputConnected/isOutputConnected.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 77516a24-b905-4d0c-b70f-f93cbf262d19

📥 Commits

Reviewing files that changed from the base of the PR and between 4c643e9 and 96ba092.

⛔ Files ignored due to path filters (14)
  • browser_tests/tests/domWidget.spec.ts-snapshots/focus-mode-on-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/execution.spec.ts-snapshots/execution-error-unconnected-slot-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/graphCanvasMenu.spec.ts-snapshots/canvas-with-visible-links-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-default-workflow-mobile-chrome-linux.png is excluded by !**/*.png
  • browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-graph-canvas-toolbar-mobile-chrome-linux.png is excluded by !**/*.png
  • browser_tests/tests/nodeBadge.spec.ts-snapshots/node-badge-left-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/saveImageAndWebp.spec.ts-snapshots/save-image-and-webm-preview-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/selectionToolbox.spec.ts-snapshots/selection-toolbox-multiple-nodes-border-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/selectionToolbox.spec.ts-snapshots/selection-toolbox-multiple-selections-border-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/selectionToolbox.spec.ts-snapshots/selection-toolbox-single-node-no-border-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/viewport.spec.ts-snapshots/viewport-fits-when-saved-offscreen-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/interactions/canvas/pan.spec.ts-snapshots/vue-nodes-paned-with-touch-mobile-chrome-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/colors.spec.ts-snapshots/vue-node-custom-colors-dark-all-colors-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/colors.spec.ts-snapshots/vue-node-custom-colors-light-all-colors-chromium-linux.png is excluded by !**/*.png
📒 Files selected for processing (272)
  • browser_tests/assets/missing/missing_model_nested_promoted_widget.json
  • browser_tests/assets/missing/missing_models_in_subgraph.json
  • browser_tests/assets/nodes/duplicate_node_ids.json
  • browser_tests/fixtures/helpers/NodeOperationsHelper.ts
  • browser_tests/tests/appModeBuilder.spec.ts
  • browser_tests/tests/nodeBadge.spec.ts
  • browser_tests/tests/nodeDisplay.spec.ts
  • browser_tests/tests/propertiesPanel/errorsTabCloudMissingModels.spec.ts
  • browser_tests/tests/propertiesPanel/errorsTabModeAware.spec.ts
  • browser_tests/tests/vueNodes/interactions/links/linkInteraction.spec.ts
  • browser_tests/tests/vueNodes/nodeStates/registration.spec.ts
  • browser_tests/tests/vueNodes/widgets/legacy.spec.ts
  • browser_tests/tests/vueNodes/widgets/widgetReactivity.spec.ts
  • browser_tests/tests/workflowPersistence.spec.ts
  • docs/adr/0008-entity-component-system.md
  • docs/architecture/domain-glossary.md
  • docs/architecture/ecs-lifecycle-scenarios.md
  • docs/architecture/ecs-migration-plan.md
  • docs/architecture/ecs-target-architecture.md
  • docs/architecture/entity-interactions.md
  • docs/architecture/entity-problems.md
  • docs/architecture/link-topology-store.md
  • docs/architecture/node-badge-store.md
  • docs/architecture/node-data-store.md
  • docs/architecture/output-slot-connectivity.md
  • docs/architecture/proto-ecs-stores.md
  • docs/architecture/reroute-chain-store.md
  • src/components/builder/AppModeWidgetList.vue
  • src/components/graph/GraphCanvas.vue
  • src/components/graph/widgets/domWidgetZIndex.test.ts
  • src/components/rightSidePanel/errors/useErrorGroups.test.ts
  • src/components/rightSidePanel/errors/useErrorGroups.ts
  • src/components/rightSidePanel/parameters/SectionWidgets.vue
  • src/components/rightSidePanel/parameters/TabSubgraphInputs.test.ts
  • src/components/rightSidePanel/parameters/TabSubgraphInputs.vue
  • src/components/rightSidePanel/parameters/WidgetActions.test.ts
  • src/components/rightSidePanel/parameters/WidgetActions.vue
  • src/components/rightSidePanel/parameters/WidgetItem.test.ts
  • src/components/rightSidePanel/parameters/WidgetItem.vue
  • src/components/rightSidePanel/subgraph/SubgraphEditor.test.ts
  • src/components/rightSidePanel/subgraph/SubgraphEditor.vue
  • src/composables/graph/useErrorClearingHooks.test.ts
  • src/composables/graph/useErrorClearingHooks.ts
  • src/composables/graph/useGraphNodeManager.test.ts
  • src/composables/graph/useGraphNodeManager.ts
  • src/composables/graph/useNodeErrorFlagSync.test.ts
  • src/composables/graph/useVueNodeLifecycle.test.ts
  • src/composables/graph/useVueNodeLifecycle.ts
  • src/composables/node/useNodeBadge.ts
  • src/composables/node/useNodePricing.test.ts
  • src/composables/node/useNodePricing.ts
  • src/composables/node/usePriceBadge.test.ts
  • src/composables/node/usePriceBadge.ts
  • src/composables/useUpstreamValue.test.ts
  • src/composables/useUpstreamValue.ts
  • src/core/graph/subgraph/migration/proxyWidgetMigration.test.ts
  • src/core/graph/subgraph/migration/proxyWidgetMigration.ts
  • src/core/graph/subgraph/promotedInputWidget.ts
  • src/core/graph/subgraph/promotionUtils.test.ts
  • src/core/graph/subgraph/promotionUtils.ts
  • src/core/graph/subgraph/resolveConcretePromotedWidget.test.ts
  • src/core/graph/subgraph/resolveSubgraphInputLink.ts
  • src/core/graph/widgets/dynamicWidgets.test.ts
  • src/core/graph/widgets/dynamicWidgets.ts
  • src/core/graph/widgets/matchTypeConfiguring.test.ts
  • src/extensions/core/groupNode.ts
  • src/extensions/core/load3d.ts
  • src/extensions/core/rerouteNode.ts
  • src/extensions/core/saveImageExtraOutput.test.ts
  • src/extensions/core/widgetInputs.test.ts
  • src/extensions/core/widgetInputs.ts
  • src/extensions/core/widgetValuePropagation.test.ts
  • src/extensions/core/widgetValuePropagation.ts
  • src/lib/litegraph/src/LGraph.inputSlotRealign.test.ts
  • src/lib/litegraph/src/LGraph.serialise.test.ts
  • src/lib/litegraph/src/LGraph.test.ts
  • src/lib/litegraph/src/LGraph.ts
  • src/lib/litegraph/src/LGraphBadge.ts
  • src/lib/litegraph/src/LGraphCanvas.clipboard.test.ts
  • src/lib/litegraph/src/LGraphCanvas.cloneZIndex.test.ts
  • src/lib/litegraph/src/LGraphCanvas.drawConnections.test.ts
  • src/lib/litegraph/src/LGraphCanvas.ghost.test.ts
  • src/lib/litegraph/src/LGraphCanvas.groupSelection.test.ts
  • src/lib/litegraph/src/LGraphCanvas.slotHitDetection.test.ts
  • src/lib/litegraph/src/LGraphCanvas.ts
  • src/lib/litegraph/src/LGraphNode.nodeState.test.ts
  • src/lib/litegraph/src/LGraphNode.test.ts
  • src/lib/litegraph/src/LGraphNode.ts
  • src/lib/litegraph/src/LGraphNodeProperties.test.ts
  • src/lib/litegraph/src/LGraphNodeProperties.ts
  • src/lib/litegraph/src/LLink.store.test.ts
  • src/lib/litegraph/src/LLink.test.ts
  • src/lib/litegraph/src/LLink.ts
  • src/lib/litegraph/src/LiteGraphGlobal.ts
  • src/lib/litegraph/src/Reroute.store.test.ts
  • src/lib/litegraph/src/Reroute.ts
  • src/lib/litegraph/src/__fixtures__/nodeHelpers.ts
  • src/lib/litegraph/src/canvas/FloatingRenderLink.test.ts
  • src/lib/litegraph/src/canvas/FloatingRenderLink.ts
  • src/lib/litegraph/src/canvas/LinkConnector.core.test.ts
  • src/lib/litegraph/src/canvas/LinkConnector.integration.test.ts
  • src/lib/litegraph/src/canvas/LinkConnector.test.ts
  • src/lib/litegraph/src/canvas/LinkConnector.ts
  • src/lib/litegraph/src/canvas/LinkConnectorSubgraphInputValidation.test.ts
  • src/lib/litegraph/src/canvas/ToInputFromIoNodeLink.ts
  • src/lib/litegraph/src/canvas/ToInputRenderLink.ts
  • src/lib/litegraph/src/infrastructure/LGraphEventMap.ts
  • src/lib/litegraph/src/interfaces.ts
  • src/lib/litegraph/src/linkDeduplication.ts
  • src/lib/litegraph/src/litegraph.ts
  • src/lib/litegraph/src/node/NodeInputSlot.test.ts
  • src/lib/litegraph/src/node/NodeInputSlot.ts
  • src/lib/litegraph/src/node/NodeOutputSlot.test.ts
  • src/lib/litegraph/src/node/NodeOutputSlot.ts
  • src/lib/litegraph/src/node/NodeSlot.test.ts
  • src/lib/litegraph/src/node/NodeSlot.ts
  • src/lib/litegraph/src/node/SlotBase.ts
  • src/lib/litegraph/src/node/slotEcosystemPatterns.test.ts
  • src/lib/litegraph/src/node/slotLinks.test.ts
  • src/lib/litegraph/src/node/slotLinks.ts
  • src/lib/litegraph/src/node/slotUtils.test.ts
  • src/lib/litegraph/src/node/slotUtils.ts
  • src/lib/litegraph/src/nodeBadgeDraw.test.ts
  • src/lib/litegraph/src/nodeBadgeDraw.ts
  • src/lib/litegraph/src/serialization.test.ts
  • src/lib/litegraph/src/subgraph/ExecutableNodeDTO.test.ts
  • src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts
  • src/lib/litegraph/src/subgraph/SubgraphConversion.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphIO.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphInput.ts
  • src/lib/litegraph/src/subgraph/SubgraphInputNode.ts
  • src/lib/litegraph/src/subgraph/SubgraphNode.ts
  • src/lib/litegraph/src/subgraph/SubgraphOutput.ts
  • src/lib/litegraph/src/subgraph/SubgraphSerialization.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphSlotConnections.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphWidgetPromotion.test.ts
  • src/lib/litegraph/src/subgraph/__fixtures__/README.md
  • src/lib/litegraph/src/subgraph/__fixtures__/subgraphHelpers.test.ts
  • src/lib/litegraph/src/subgraph/__fixtures__/subgraphHelpers.ts
  • src/lib/litegraph/src/subgraph/subgraphDeduplication.test.ts
  • src/lib/litegraph/src/subgraph/subgraphDeduplication.ts
  • src/lib/litegraph/src/subgraph/subgraphUtils.test.ts
  • src/lib/litegraph/src/subgraph/subgraphUtils.ts
  • src/lib/litegraph/src/types/graphTriggers.ts
  • src/lib/litegraph/src/types/serialisation.ts
  • src/lib/litegraph/src/types/widgets.ts
  • src/lib/litegraph/src/utils/collections.test.ts
  • src/lib/litegraph/src/utils/collections.ts
  • src/lib/litegraph/src/utils/widget.ts
  • src/lib/litegraph/src/widgets/BaseWidget.test.ts
  • src/lib/litegraph/src/widgets/BaseWidget.ts
  • src/locales/ar/main.json
  • src/locales/en/main.json
  • src/locales/es/main.json
  • src/locales/fa/main.json
  • src/locales/fr/main.json
  • src/locales/he/main.json
  • src/locales/ja/main.json
  • src/locales/ko/main.json
  • src/locales/pt-BR/main.json
  • src/locales/ru/main.json
  • src/locales/tr/main.json
  • src/locales/zh-TW/main.json
  • src/locales/zh/main.json
  • src/platform/cloud/subscription/composables/useFreeTierQuota.ts
  • src/platform/missingMedia/missingMediaStore.ts
  • src/platform/missingModel/missingModelScan.test.ts
  • src/platform/missingModel/missingModelScan.ts
  • src/platform/missingModel/missingModelStore.ts
  • src/platform/nodeReplacement/useNodeReplacement.test.ts
  • src/platform/nodeReplacement/useNodeReplacement.ts
  • src/platform/telemetry/nodeAdded/installNodeAddedTelemetry.test.ts
  • src/platform/telemetry/nodeAdded/installNodeAddedTelemetry.ts
  • src/platform/workflow/core/services/workflowService.insertWorkflow.test.ts
  • src/platform/workflow/core/services/workflowService.ts
  • src/renderer/core/canvas/canvasStore.test.ts
  • src/renderer/core/canvas/canvasStore.ts
  • src/renderer/core/canvas/links/linkConnectorAdapter.ts
  • src/renderer/core/layout/operations/layoutMutations.test.ts
  • src/renderer/core/layout/operations/layoutMutations.ts
  • src/renderer/core/layout/store/layoutStore.test.ts
  • src/renderer/core/layout/store/layoutStore.ts
  • src/renderer/core/layout/types.ts
  • src/renderer/extensions/linearMode/PartnerNodesList.vue
  • src/renderer/extensions/minimap/composables/useMinimap.test.ts
  • src/renderer/extensions/minimap/composables/useMinimapGraph.test.ts
  • src/renderer/extensions/minimap/composables/useMinimapGraph.ts
  • src/renderer/extensions/minimap/data/AbstractMinimapDataSource.ts
  • src/renderer/extensions/minimap/data/LayoutStoreDataSource.ts
  • src/renderer/extensions/minimap/data/MinimapDataSource.test.ts
  • src/renderer/extensions/minimap/data/MinimapDataSourceFactory.ts
  • src/renderer/extensions/minimap/minimapCanvasRenderer.test.ts
  • src/renderer/extensions/vueNodes/components/LGraphNode.subgraph.test.ts
  • src/renderer/extensions/vueNodes/components/LGraphNode.test.ts
  • src/renderer/extensions/vueNodes/components/LGraphNode.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.test.ts
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
  • src/renderer/extensions/vueNodes/components/NodeContent.vue
  • src/renderer/extensions/vueNodes/components/NodeHeader.test.ts
  • src/renderer/extensions/vueNodes/components/NodeHeader.vue
  • src/renderer/extensions/vueNodes/components/NodeSlots.test.ts
  • src/renderer/extensions/vueNodes/components/NodeSlots.vue
  • src/renderer/extensions/vueNodes/components/NodeWidgets.test.ts
  • src/renderer/extensions/vueNodes/components/NodeWidgets.vue
  • src/renderer/extensions/vueNodes/components/WidgetGrid.vue
  • src/renderer/extensions/vueNodes/composables/useNodeEventHandlers.test.ts
  • src/renderer/extensions/vueNodes/composables/useNodeEventHandlers.ts
  • src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.test.ts
  • src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts
  • src/renderer/extensions/vueNodes/composables/useNodeTooltips.test.ts
  • src/renderer/extensions/vueNodes/composables/useNodeTooltips.ts
  • src/renderer/extensions/vueNodes/composables/usePartitionedBadges.test.ts
  • src/renderer/extensions/vueNodes/composables/usePartitionedBadges.ts
  • src/renderer/extensions/vueNodes/composables/useProcessedWidgets.test.ts
  • src/renderer/extensions/vueNodes/composables/useProcessedWidgets.ts
  • src/renderer/extensions/vueNodes/composables/useSlotLinkInteraction.autoPan.test.ts
  • src/renderer/extensions/vueNodes/composables/useSlotLinkInteraction.ts
  • src/renderer/extensions/vueNodes/layout/ensureCorrectLayoutScale.test.ts
  • src/renderer/extensions/vueNodes/layout/nodeSizeReflow.test.ts
  • src/renderer/extensions/vueNodes/types/widgetGrid.ts
  • src/renderer/extensions/vueNodes/utils/__tests__/nodeDataUtils.test.ts
  • src/renderer/extensions/vueNodes/utils/nodeDataUtils.ts
  • src/renderer/extensions/vueNodes/utils/nodeErrorState.ts
  • src/renderer/extensions/vueNodes/widgets/components/WidgetButton.test.ts
  • src/renderer/extensions/vueNodes/widgets/components/WidgetButton.vue
  • src/renderer/extensions/vueNodes/widgets/components/WidgetDOM.test.ts
  • src/renderer/extensions/vueNodes/widgets/components/WidgetDOM.vue
  • src/renderer/extensions/vueNodes/widgets/components/WidgetLegacy.vue
  • src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.test.ts
  • src/renderer/extensions/vueNodes/widgets/composables/useProgressTextWidget.ts
  • src/renderer/extensions/vueNodes/widgets/composables/useWidgetRenderer.test.ts
  • src/renderer/extensions/vueNodes/widgets/registry/widgetRegistry.ts
  • src/renderer/glsl/glslPreviewUtils.ts
  • src/renderer/glsl/useGLSLUniforms.test.ts
  • src/renderer/glsl/useGLSLUniforms.ts
  • src/scripts/app.test.ts
  • src/scripts/app.ts
  • src/scripts/promotedWidgetControl.test.ts
  • src/scripts/promotedWidgetControl.ts
  • src/scripts/widgets.ts
  • src/services/litegraphService.ts
  • src/stores/appModeStore.test.ts
  • src/stores/linkStore.test.ts
  • src/stores/linkStore.ts
  • src/stores/nodeDataStore.test.ts
  • src/stores/nodeDataStore.ts
  • src/stores/rerouteStore.test.ts
  • src/stores/rerouteStore.ts
  • src/stores/widgetValueStore.graphReactivity.test.ts
  • src/stores/widgetValueStore.test.ts
  • src/stores/widgetValueStore.ts
  • src/stores/workspace/favoritedWidgetsStore.ts
  • src/systems/badgeSystem.pricing.test.ts
  • src/systems/badgeSystem.subgraph.test.ts
  • src/systems/badgeSystem.test.ts
  • src/systems/badgeSystem.ts
  • src/types/badgeData.ts
  • src/types/linkTopology.ts
  • src/types/nodeState.ts
  • src/types/rerouteChain.ts
  • src/types/simplifiedWidget.ts
  • src/types/widgetState.ts
  • src/utils/__tests__/litegraphTestUtils.ts
  • src/utils/graphTraversalUtil.test.ts
  • src/utils/graphTraversalUtil.ts
  • src/utils/linkFixer.test.ts
  • src/utils/linkFixer.ts
  • src/utils/litegraphUtil.test.ts
  • src/utils/litegraphUtil.ts
  • src/utils/searchAndReplace.test.ts
  • src/utils/widgetUtil.ts
  • tools/devtools/web/legacyWidget.js
💤 Files with no reviewable changes (27)
  • src/lib/litegraph/src/LGraphNodeProperties.test.ts
  • src/composables/node/usePriceBadge.test.ts
  • src/composables/node/usePriceBadge.ts
  • src/lib/litegraph/src/LGraphNodeProperties.ts
  • src/lib/litegraph/src/LGraphBadge.ts
  • src/composables/graph/useGraphNodeManager.ts
  • src/composables/graph/useGraphNodeManager.test.ts
  • browser_tests/tests/nodeBadge.spec.ts
  • src/locales/ru/main.json
  • src/lib/litegraph/src/canvas/ToInputRenderLink.ts
  • src/locales/ar/main.json
  • src/locales/ja/main.json
  • src/locales/zh/main.json
  • src/lib/litegraph/src/types/graphTriggers.ts
  • src/lib/litegraph/src/node/SlotBase.ts
  • src/locales/zh-TW/main.json
  • src/locales/tr/main.json
  • src/lib/litegraph/src/canvas/ToInputFromIoNodeLink.ts
  • src/locales/es/main.json
  • src/locales/fr/main.json
  • src/locales/fa/main.json
  • src/scripts/app.ts
  • browser_tests/fixtures/helpers/NodeOperationsHelper.ts
  • src/renderer/core/layout/types.ts
  • src/locales/ko/main.json
  • src/locales/pt-BR/main.json
  • src/locales/he/main.json

Comment on lines +1360 to +1365
const linkId = graph.nodes.find((n) => n.title === 'Preview Image')
?.inputs[0].link
if (!linkId) return 'failed to resolve link id'

const rerouteId = graph.getLink(linkId)?.parentId
if (!rerouteId) return 'failed to resolve reroute id'

@coderabbitai coderabbitai Bot Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Stop reading the removed input-link mirror.

input.link is a legacy mirror removed by this migration, so this poll cannot resolve the link. Find the Preview Image link through the graph topology API/store (or graph.links) before checking its parentId.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@browser_tests/tests/vueNodes/interactions/links/linkInteraction.spec.ts`
around lines 1360 - 1365, Update the link-resolution logic near the Preview
Image node to stop reading the removed inputs[0].link mirror. Resolve the node’s
connected link through the graph topology API or graph.links, then use that
link’s identifier with getLink to obtain parentId while preserving the existing
failure messages.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Verified against descendant-stack head 6ed3689db: this premise is no longer current. NodeInputSlot.link is a store-backed compatibility getter (NodeInputSlot.ts:30-36), so this poll can resolve the link. Descendant #15666 further restores valid legacy link re-additions: #15666.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@DrJKL, thanks for the clarification. The current NodeInputSlot.link compatibility getter reads the link-store state. Therefore, this poll can resolve the Preview Image link and inspect its parentId.

I withdraw this finding.


✏️ Learnings added
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 14246
File: browser_tests/tests/vueNodes/interactions/links/linkInteraction.spec.ts:1360-1365
Timestamp: 2026-08-24T04:11:37.361Z
Learning: In `src/lib/litegraph/src/node/NodeInputSlot.ts`, `NodeInputSlot.link` is a deprecated, store-backed compatibility getter. It can validly resolve the current input link for compatibility code and browser tests, even though new code should prefer the graph topology APIs where practical.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

@DrJKL I agree that this finding should be withdrawn, but I couldn't resolve this review thread on the repository platform, so it remains open. Please retry or resolve it manually.

You are interacting with an AI system.

Comment on lines +89 to 110
const mappedSelections = computed((): WidgetEntry[] => {
return resolvedInputs.value.flatMap((entry) => {
if (entry.status !== 'resolved') return []
const { widgetId, node, widget, config } = entry
if (node.mode !== LGraphEventMode.ALWAYS) return []

if (!nodeDataByNode.has(node)) {
nodeDataByNode.set(node, nodeToNodeData(node))
}
const fullNodeData = nodeDataByNode.get(node)!

const matchingWidget = fullNodeData.widgets?.find((vueWidget) => {
if (vueWidget.slotMetadata?.linked) return false
return vueWidget.widgetId === widgetId
})
if (!matchingWidget) return []

matchingWidget.slotMetadata = undefined
matchingWidget.nodeId = node.id
ensureSelectedWidgetState(widgetId, widget)
const fullNodeData = nodeToNodeData(node, widgetId)
if (isWidgetInputLinked(node, widget.name)) return []

return [
{
key: widgetId,
persistedHeight: config?.height,
description: config?.description,
nodeData: {
...fullNodeData,
widgets: [matchingWidget]
},
nodeData: fullNodeData,
widgetIds: [widgetId],
action: { widget, node }
}
]
})
})

@coderabbitai coderabbitai Bot Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

mappedSelections mutates store state while deriving.

ensureSelectedWidgetState writes into widgetValueStore from inside a computed getter that also reads widgetValueStore.getWidget(...). Registering a widget invalidates the map this getter just tracked, so the computed re-runs on its own write (it only converges because the second pass short-circuits). Registration belongs in a watchEffect/watch on resolvedInputs, leaving the computed pure.

Also, nodeToNodeData(node, widgetId) (which builds a drop indicator and an image URL) is evaluated before the isWidgetInputLinked early return, so it is wasted for every filtered-out row.

♻️ Proposed restructure
-const mappedSelections = computed((): WidgetEntry[] => {
+watchEffect(() => {
+  for (const entry of resolvedInputs.value) {
+    if (entry.status !== 'resolved') continue
+    ensureSelectedWidgetState(entry.widgetId, entry.widget)
+  }
+})
+
+const mappedSelections = computed((): WidgetEntry[] => {
   return resolvedInputs.value.flatMap((entry) => {
     if (entry.status !== 'resolved') return []
     const { widgetId, node, widget, config } = entry
     if (node.mode !== LGraphEventMode.ALWAYS) return []
-
-    ensureSelectedWidgetState(widgetId, widget)
-    const fullNodeData = nodeToNodeData(node, widgetId)
     if (isWidgetInputLinked(node, widget.name)) return []
 
     return [
       {
         key: widgetId,
         persistedHeight: config?.height,
         description: config?.description,
-        nodeData: fullNodeData,
+        nodeData: nodeToNodeData(node, widgetId),
         widgetIds: [widgetId],
         action: { widget, node }
       }
     ]
   })
 })
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const mappedSelections = computed((): WidgetEntry[] => {
return resolvedInputs.value.flatMap((entry) => {
if (entry.status !== 'resolved') return []
const { widgetId, node, widget, config } = entry
if (node.mode !== LGraphEventMode.ALWAYS) return []
if (!nodeDataByNode.has(node)) {
nodeDataByNode.set(node, nodeToNodeData(node))
}
const fullNodeData = nodeDataByNode.get(node)!
const matchingWidget = fullNodeData.widgets?.find((vueWidget) => {
if (vueWidget.slotMetadata?.linked) return false
return vueWidget.widgetId === widgetId
})
if (!matchingWidget) return []
matchingWidget.slotMetadata = undefined
matchingWidget.nodeId = node.id
ensureSelectedWidgetState(widgetId, widget)
const fullNodeData = nodeToNodeData(node, widgetId)
if (isWidgetInputLinked(node, widget.name)) return []
return [
{
key: widgetId,
persistedHeight: config?.height,
description: config?.description,
nodeData: {
...fullNodeData,
widgets: [matchingWidget]
},
nodeData: fullNodeData,
widgetIds: [widgetId],
action: { widget, node }
}
]
})
})
watchEffect(() => {
for (const entry of resolvedInputs.value) {
if (entry.status !== 'resolved') continue
ensureSelectedWidgetState(entry.widgetId, entry.widget)
}
})
const mappedSelections = computed((): WidgetEntry[] => {
return resolvedInputs.value.flatMap((entry) => {
if (entry.status !== 'resolved') return []
const { widgetId, node, widget, config } = entry
if (node.mode !== LGraphEventMode.ALWAYS) return []
if (isWidgetInputLinked(node, widget.name)) return []
return [
{
key: widgetId,
persistedHeight: config?.height,
description: config?.description,
nodeData: nodeToNodeData(node, widgetId),
widgetIds: [widgetId],
action: { widget, node }
}
]
})
})
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/components/builder/AppModeWidgetList.vue` around lines 89 - 110, Make
mappedSelections a pure computed by removing ensureSelectedWidgetState from its
getter and register resolved widgets in a watch/watchEffect driven by
resolvedInputs instead. In the computed, check isWidgetInputLinked before
calling nodeToNodeData so filtered linked inputs do not build unused data;
preserve the existing selection mapping for unlinked ALWAYS-mode entries.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in descendant PR #15610: #15610. App-mode widget registration was moved out of computed derivation so the computed path remains side-effect free (e12831f00).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@DrJKL, thanks for the update. The change in #15610 addresses the side effect in mappedSelections by moving widget registration out of computed derivation.

@DrJKL Thanks for confirming the fix. I couldn't resolve this review thread on the repository platform, so it remains open. Please retry or resolve it manually.

You are interacting with an AI system.

Comment on lines +32 to +34
vi.spyOn(app, 'rootGraph', 'get').mockReturnValue(graph)
vi.spyOn(app, 'isGraphReady', 'get').mockReturnValue(true)

@coderabbitai coderabbitai Bot Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Spies on app.rootGraph/app.isGraphReady are never restored between tests.

setupGraphWithStore() (and the two subgraph tests) call vi.spyOn(app, 'rootGraph', 'get')/vi.spyOn(app, 'isGraphReady', 'get') repeatedly across 7 it() blocks, but beforeEach only calls setActivePinia(...) — there's no vi.restoreAllMocks()/vi.resetAllMocks(). Each new vi.spyOn wraps the previous spy instead of replacing it cleanly, which is harmless today but is exactly the pattern the testing guidance calls out.

♻️ Suggested fix
   beforeEach(() => {
     setActivePinia(createTestingPinia({ stubActions: false }))
   })
+
+  afterEach(() => {
+    vi.restoreAllMocks()
+  })

Based on learnings, "Mocking: keep vi.mock() module mocks contained; reset with vi.resetAllMocks() in beforeEach" (docs/testing/vitest-patterns.md, required context for this test file).

Also applies to: 127-129, 208-210

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/composables/graph/useNodeErrorFlagSync.test.ts` around lines 32 - 34,
Restore Vitest mocks before each test in the setup for this suite, alongside
setActivePinia, so the rootGraph and isGraphReady getter spies created by
setupGraphWithStore and the subgraph tests do not accumulate across it blocks.
Use the project’s required reset/restore pattern consistently for all tests.

Source: Path instructions

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Verified obsolete against the current stack. Vitest is configured with restoreMocks: true in vite.config.mts:752, so these getter spies are restored even if a test assertion throws; repeated wrapping does not leak across tests.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- vite.config.mts around Line 752 ---'
sed -n '735,765p' vite.config.mts

printf '%s\n' '--- useNodeErrorFlagSync.test.ts setup and spy locations ---'
rg -n -C 3 "restoreMocks|spyOn\(app, '(rootGraph|isGraphReady)', 'get'\)|beforeEach" \
  src/composables/graph/useNodeErrorFlagSync.test.ts vite.config.mts

Length of output: 5332


@DrJKL, confirmed. vite.config.mts sets test.restoreMocks: true at Line 752. Vitest restores the getter spies after each test. The spies in useNodeErrorFlagSync.test.ts do not accumulate across test cases. This finding is obsolete.


✏️ Learnings added
Learnt from: DrJKL
Repo: Comfy-Org/ComfyUI_frontend PR: 14246
File: src/composables/graph/useNodeErrorFlagSync.test.ts:32-34
Timestamp: 2026-08-24T04:12:09.944Z
Learning: The Vitest configuration in `vite.config.mts` sets `test.restoreMocks: true`. Getter spies created with `vi.spyOn` in Vitest tests are restored after each test, so they do not accumulate across `it` blocks.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

@DrJKL I agree that this finding should be withdrawn, but I couldn't resolve this review thread on the repository platform, so it remains open. Please retry or resolve it manually.

You are interacting with an AI system.

Comment thread src/stores/widgetValueStore.ts Resolved
Comment thread src/systems/badgeSystem.pricing.test.ts Resolved
Comment thread src/systems/badgeSystem.ts Resolved
Comment thread src/systems/badgeSystem.ts Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review continued from previous batch...

Comment thread docs/architecture/node-data-store.md Resolved
Comment thread docs/architecture/proto-ecs-stores.md Resolved

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Caution

Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 49

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/renderer/extensions/vueNodes/components/NodeSlots.vue (1)

10-19: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Collapse the per-slot lookups into one computed row list.

getActualInputIndex now runs three times per input during render (:key, :index, and inside :connected), each a linear findIndex over nodeData.inputs — O(N²) per node render on the canvas hot path. Building the rows once also removes the duplicated rootGraphId guards in isInputConnected/isOutputConnected.

♻️ Sketch
const inputRows = computed(() => {
  const graphId = canvasStore.rootGraphId
  return filteredInputs.value.map((input, filteredIndex) => {
    const actualIndex = nodeData.inputs.indexOf(input)
    const index = actualIndex !== -1 ? actualIndex : filteredIndex
    return {
      input,
      index,
      connected: graphId
        ? linkStore.isInputSlotConnected(graphId, nodeData.id, index)
        : false
    }
  })
})
-      <InputSlot
-        v-for="(input, index) in filteredInputs"
-        :key="`input-${input.name}-${getActualInputIndex(input, index)}`"
-        :slot-data="input"
-        :node-type="nodeData?.type || ''"
-        :node-id="nodeData.id"
-        :has-error="inputHasError(input)"
-        :index="getActualInputIndex(input, index)"
-        :connected="isInputConnected(getActualInputIndex(input, index))"
-      />
+      <InputSlot
+        v-for="row in inputRows"
+        :key="`input-${row.input.name}-${row.index}`"
+        :slot-data="row.input"
+        :node-type="nodeData.type"
+        :node-id="nodeData.id"
+        :has-error="inputHasError(row.input)"
+        :index="row.index"
+        :connected="row.connected"
+      />

Also applies to: 119-125

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/renderer/extensions/vueNodes/components/NodeSlots.vue` around lines 10 -
19, In NodeSlots.vue, add computed inputRows and outputRows that resolve each
slot’s actual index once and calculate connection state using the rootGraphId
within the computed mapping. Update the InputSlot and OutputSlot v-for blocks to
consume these row objects for keys, slot data, indices, and connected state,
removing repeated getActualInputIndex calls and redundant rootGraphId guards
from isInputConnected/isOutputConnected.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@browser_tests/tests/vueNodes/interactions/links/linkInteraction.spec.ts`:
- Around line 1360-1365: Update the link-resolution logic near the Preview Image
node to stop reading the removed inputs[0].link mirror. Resolve the node’s
connected link through the graph topology API or graph.links, then use that
link’s identifier with getLink to obtain parentId while preserving the existing
failure messages.

In `@docs/architecture/entity-interactions.md`:
- Around line 106-108: Update the Legend in entity-interactions.md to define the
-.- edge style used by the derived linkIds and floatingLinkIds relationships,
including its meaning as a dotted, non-directional derived relationship. Keep
the existing owns, references, and extends legend entries unchanged.

In `@docs/architecture/link-topology-store.md`:
- Around line 18-21: Add language annotations to both new fenced code blocks:
use an appropriate tag such as ts or text for the LinkTopology shape in
docs/architecture/link-topology-store.md lines 18-21, and ts for the BadgeData
union in docs/architecture/node-badge-store.md lines 40-44, resolving
markdownlint MD040 without changing the documented content.

In `@docs/architecture/node-data-store.md`:
- Around line 28-43: Add the TypeScript language identifier to the NodeState
fenced code block in the architecture documentation, changing the opening fence
to use ts while leaving the schema content unchanged.

In `@docs/architecture/proto-ecs-stores.md`:
- Around line 388-413: Update the migration matrix and priority entries to
reflect the implemented state: add NodeDataStore-extracted data to the Node row,
remove stale input.link/output.links mirror work from the Link and Slot gaps,
and adjust the related priority descriptions accordingly. Use the existing
NodeDataStore and output-slot-connectivity documentation as the source of truth
while preserving the remaining unimplemented extraction work.

In `@src/components/builder/AppModeWidgetList.vue`:
- Around line 89-110: Make mappedSelections a pure computed by removing
ensureSelectedWidgetState from its getter and register resolved widgets in a
watch/watchEffect driven by resolvedInputs instead. In the computed, check
isWidgetInputLinked before calling nodeToNodeData so filtered linked inputs do
not build unused data; preserve the existing selection mapping for unlinked
ALWAYS-mode entries.

In `@src/composables/graph/useNodeErrorFlagSync.test.ts`:
- Around line 32-34: Restore Vitest mocks before each test in the setup for this
suite, alongside setActivePinia, so the rootGraph and isGraphReady getter spies
created by setupGraphWithStore and the subgraph tests do not accumulate across
it blocks. Use the project’s required reset/restore pattern consistently for all
tests.

In `@src/composables/graph/useVueNodeLifecycle.ts`:
- Around line 94-99: Update disposeVueNodeLayout to clear all node entries from
layoutStore after stopping synchronization and listeners, undoing the data
seeded by initializeVueNodeLayout. Ensure the shouldRenderVueNodes transition
handled by the whenever block leaves layoutStore empty when Vue rendering is
disabled, preserving the existing cleanup state resets.

In `@src/composables/node/useNodePricing.ts`:
- Around line 589-593: The cache-miss fallback in the node pricing evaluation
flow must use the previous label for the current signature rather than the
newest label from any cached signature. Update the state associated with
scheduleEvaluation or the surrounding caller to track and return the last label
per signature/read context, while preserving the empty-string fallback when no
matching prior label exists.

In `@src/core/graph/subgraph/promotionUtils.ts`:
- Around line 298-308: Replace the direct promotedState.label mutation in the
hostInput promotion block with the widget store’s dedicated label-update action,
adding that action if none exists. Pass hostInput.widgetId and sourceSlot.label
through the store API so state invariants, telemetry, and persistence hooks are
preserved.

In `@src/core/graph/widgets/dynamicWidgets.test.ts`:
- Around line 10-11: Remove the redundant module-level
setActivePinia(createTestingPinia({ stubActions: false })) call in
dynamicWidgets.test.ts, keeping the beforeEach setup as the sole initialization
so each test receives a fresh testing Pinia.

In `@src/core/graph/widgets/dynamicWidgets.ts`:
- Around line 269-276: Replace the deprecated indexed link lookup in the
topology loop with the graph’s store-consistent getLink() method, using
topology.id as the lookup key and preserving the existing missing-link continue
behavior.
- Around line 555-563: Move the syncNodeWidgetOrder(node) call out of the
toRemove iteration and invoke it once after the loop completes. Preserve the
existing widget removal and cleanup behavior, including skipping inputs without
a widget name.

In `@src/extensions/core/widgetInputs.test.ts`:
- Around line 19-37: Remove the explicit 30_000 ms timeout argument from the
synchronous test defined by “resets itself when the store reports a link the
graph cannot resolve,” leaving the test body and its assertions unchanged so
Vitest uses its default timeout.

In `@src/extensions/core/widgetValuePropagation.ts`:
- Around line 25-28: Update the early-return guard in the widget value
propagation function to account for both store links and extraLinks, allowing
propagation when extraLinks is non-empty even if linked is empty. Keep returning
early only when neither source contains endpoints, and preserve the existing
endpoint-merging behavior.

In `@src/lib/litegraph/src/__fixtures__/nodeHelpers.ts`:
- Around line 38-55: Update createTestWidgetNode to register an onTestFinished
cleanup alongside its WIDGET_NODE_TYPE registration, restoring the previous
LiteGraph.registered_node_types entry or removing the test type after the test
completes, matching createTestNode’s cleanup pattern. Keep node creation and
graph.add behavior unchanged.

In `@src/lib/litegraph/src/LGraph.inputSlotRealign.test.ts`:
- Around line 319-322: Update the parameter list for the parameterized test
“rekeys a serialized %s” to destructure each it.for tuple into its name and
usePurgedAlias values, ensuring both registered-link and purged-alias cases
execute with their intended boolean.

In `@src/lib/litegraph/src/LGraphCanvas.ts`:
- Line 5706: Update the clip-path shape selection near drawNodeShape to use
node.renderingShape instead of node.shape or a direct BOX fallback, keeping
clipping consistent with the shape resolved by the node body and its
class/default fallbacks.

In `@src/lib/litegraph/src/LGraphNode.test.ts`:
- Around line 878-899: Remove the redundant “defaults to a normal title” test
because it only checks constructor initialization. In the remaining “titleMode
in node state” test, avoid the private _state shape by asserting the NO_TITLE
value through the store-held state returned by getGraphNodesFor(...) or the
public title_mode accessor, while preserving coverage that TitlelessNode’s
static title_mode is propagated.

In `@src/lib/litegraph/src/LGraphNode.ts`:
- Around line 347-349: Make the _state accessors consistent by routing the id
setter, flags setter, and resizable setter through setTrackedState, ensuring
each emits node:property:changed like title, mode, color, bgcolor, and
showAdvanced. Update the affected setters and preserve their existing values and
behavior, including resizable changes triggered by pin() and configure().
- Around line 4023-4031: Optimize updateComputedDisabled to avoid repeated
inputs scans during rendering: update getSlotFromWidget or the surrounding
widget loop to return/reuse the matching input index and determine connectivity
directly from that result, rather than calling this.inputs.indexOf(slot) after
the lookup. Preserve the existing computedDisabled behavior for widgets without
slots, disabled widgets, and connected inputs.
- Around line 1149-1157: The output serialization mapping in LGraphNode
serialization currently masks a type mismatch with `@ts-expect-error`. Remove that
directive and reconcile the return type of outputAsSerialisable with the
ISserialisedNode outputs element type so the mapping type-checks without
suppression.
- Around line 1062-1070: Update the input restoration loop in configure() to
invoke onConnectionsChange only when the serialized input contains a link that
was successfully restored; skip the callback for bare inputs, matching the
output restoration behavior. Continue invoking onInputAdded for every input.
- Around line 1884-1911: Update removeInput so the replaceNodeInputs failure
path, identified when this.inputs still includes slotInfo, logs a warning before
returning. Keep the existing removal callback, floating-link adjustment, and
canvas-dirty behavior unchanged for successful removals.

In `@src/lib/litegraph/src/linkDeduplication.ts`:
- Around line 54-72: Remove the unused link lookup and its guard from
purgeOrphanedLinks; iterate over non-survivor ids and call graph._removeLink(id)
directly, preserving the survivor re-registration logic afterward.

In `@src/lib/litegraph/src/LLink.ts`:
- Around line 98-112: Update applyEndpointPatch to propagate failures from
useLinkStore().updateEndpoint instead of only logging result.error and returning
normally. Throw or otherwise surface the rejected patch through the existing
endpoint setter/configure call chain, while preserving direct Object.assign
behavior for unregistered links.

In `@src/lib/litegraph/src/node/slotLinks.ts`:
- Around line 156-158: Collapse the short single-statement if block in the
finalInputs validation by placing the condition and throw on one line,
preserving the existing duplicate-slot check and error message.

In `@src/lib/litegraph/src/node/slotUtils.test.ts`:
- Around line 32-43: Update the ordering assertion in the “serialises the links
leaving the slot, ascending by id” test to sort LinkId values with an explicit
numeric comparator. Keep the existing length assertion and verify
serialised.links against its numerically ascending copy.

In `@src/lib/litegraph/src/nodeBadgeDraw.ts`:
- Around line 76-86: The registerBadgeRowsProvider function permanently pins the
first provider and offers no cleanup path. Add an unregister/disposer mechanism
tied to the registered provider, or expose a reset API for HMR and tests, while
preserving rejection of conflicting active registrations.
- Around line 52-62: Update the badge construction loop to create the credits
icon only when row.kind is exactly 'credits', rather than treating every
non-core row as credits. Preserve core-row skipping and ensure other BadgeData
kinds are handled explicitly or rejected by the type system instead of silently
receiving the credits icon.

In `@src/lib/litegraph/src/subgraph/__fixtures__/subgraphHelpers.ts`:
- Around line 68-95: Update enableSubgraphNodeCreation to keep the event
listener and type-to-constructor registrations local to each helper instance.
Make the returned disposer remove its own listener and delete only registrations
whose current constructor still matches the locally stored constructor,
preventing helpers from affecting each other; add coverage that creates another
subgraph after disposal and verifies no registration occurs.

In `@src/lib/litegraph/src/subgraph/subgraphDeduplication.ts`:
- Around line 114-129: Parameterize findNextAvailableId with an identifier-space
label and use it in the exhaustion error instead of the hardcoded node-specific
message. Update each caller, including node and reroute ID allocation, to
provide the appropriate label while preserving the existing allocation behavior.

In `@src/lib/litegraph/src/subgraph/subgraphUtils.test.ts`:
- Line 3: Update the tests in subgraphUtils.test.ts to restore mocked globals
after every test, using an afterEach hook with vi.restoreAllMocks(). Ensure
console.error is restored even when assertions fail, and remove any reliance on
cleanup that only runs after successful assertions.

In `@src/platform/cloud/subscription/composables/useFreeTierQuota.ts`:
- Around line 28-31: Update hasInvalidNodes in useFreeTierQuota to derive the
root graph from useCanvasStore().currentGraph instead of the non-reactive
app.graph, preserving the existing graphCreditsBadges check and false fallback.
Ensure the composable accesses the reactive currentGraph source so
freeTierExecutionPermitted recalculates after workflow switches.

In `@src/renderer/extensions/minimap/data/MinimapDataSource.test.ts`:
- Around line 48-59: Update registerNodeState so useNodeDataStore().registerNode
receives the graphId parameter as its store partition key instead of the
hardcoded GRAPH_ID, while continuing to set the same graphId on the created node
state.

In `@src/renderer/extensions/vueNodes/components/LGraphNode.vue`:
- Around line 702-711: Update the widgetIds computed in LGraphNode.vue to derive
graph identity from the reactive canvasStore.rootGraphId instead of
app.rootGraph?.id. Preserve the existing empty-result guard and getNodeWidgetIds
lookup, ensuring hasRenderableWidgets and downstream computeds refresh when the
root graph is replaced.

In `@src/renderer/extensions/vueNodes/components/NodeHeader.test.ts`:
- Around line 22-32: Replace the local makeNodeData fixture with the shared
createNodeState fixture from litegraphTestUtils, adding the required import and
passing the existing overrides through it. Remove the hand-rolled NodeState
defaults so shared fields, including the ALWAYS mode, remain consistent.

In `@src/renderer/extensions/vueNodes/components/NodeWidgets.test.ts`:
- Around line 265-267: Replace the Tailwind class assertion in the NodeWidgets
test with an assertion on a semantic error signal exposed by the widget row,
such as data-has-error or aria-invalid. Update the relevant widget-row rendering
symbol to provide that signal if needed, while preserving the existing error
behavior.

In `@src/renderer/extensions/vueNodes/composables/useProcessedWidgets.test.ts`:
- Around line 342-351: Update the test around processWidgets to avoid asserting
the literal Tailwind value ring ring-component-node-widget-advanced. Verify the
advanced/non-advanced borderStyle behavior by comparing results for showAdvanced
or reuse a shared source constant, and apply the same change to the duplicate
assertion near the other advanced-widget test.

In `@src/renderer/extensions/vueNodes/composables/useProcessedWidgets.ts`:
- Around line 411-414: Update the valueTooltip logic in useProcessedWidgets so
object-valued asset/combo widgets do not produce a tooltip from String(value),
particularly avoiding “[object Object]”. Only attach the tooltip when the value
is a meaningful primitive string representation longer than 10 characters, while
preserving the existing type and length checks.

In `@src/renderer/glsl/useGLSLUniforms.test.ts`:
- Around line 21-32: Update makeGlslNode to use a real Subgraph and LiteGraph
links from the shared test factories instead of overriding getInputLink with a
hand-rolled inputs-to-subgraph mapping. Remove the getInputLink mock so
extractUniformSources exercises the actual LGraphNode.getInputLink behavior,
while preserving the test’s intended input-link setup.

In `@src/services/litegraphService.ts`:
- Around line 467-485: Extract the duplicated serialized-output merge into a
module-level helper, such as mergeSerialisedOutputs, preserving the existing
zip, RESERVED_KEYS merge, extra-output handling, and outputAsSerialisable
fallback. Replace the inline blocks in src/services/litegraphService.ts:467-485
and src/services/litegraphService.ts:579-597 with calls to the shared helper.

In `@src/stores/widgetValueStore.graphReactivity.test.ts`:
- Around line 279-293: Strengthen the test “registers plain render metadata for
non-promoted widgets” by replacing the definedness and absent sourceExecutionId
checks with assertions for the expected non-promoted render metadata, including
hasLayoutSize: false and isDOMWidget: false. Ensure the assertions distinguish
plain registration from promoted widget registration rather than only checking
defaults.

In `@src/stores/widgetValueStore.ts`:
- Around line 146-151: Update getWidgetRenderState to validate widgetId with the
existing isWidgetId guard before calling parseWidgetId; return undefined for
non-conforming IDs, matching getWidget’s behavior, while preserving the current
graph-state lookup for valid IDs.
- Around line 61-69: Split lazy creation from reads in the widget-order store:
add an ensure helper for mutation paths and a non-mutating peek helper for
reads. Update appendNodeWidgetOrder and setNodeWidgetOrder to use
ensureNodeWidgetOrder, and getNodeWidgetIds and reconcileNodeWidgetOrder to use
peekNodeWidgetOrder so computed reads do not insert entries. Apply the same
ensure/peek separation to getWidgetRenderState, ensuring read access does not
create per-graph maps.

In `@src/stores/workspace/favoritedWidgetsStore.ts`:
- Around line 76-79: Track the deferred migration from (nodeLocatorId,
widgetName) keys to host-scoped WidgetId keys by opening an issue that documents
the favoritedWidgets persistence-format change, required one-time migration of
workflow.extra.favoritedWidgets, and removal of the
isShownOnParents/favoriteNode indirection for promoted widgets.

In `@src/systems/badgeSystem.pricing.test.ts`:
- Around line 13-22: The getNodeDisplayPrice mock currently reads
useLinkStore().isInputSlotConnected, allowing the badge computed to react
without touchPricingSources registering the dependency. Make getNodeDisplayPrice
pure by deriving its result from node data or a plain test-controlled
counter/override, then update the test setup to flip that value and assert
recomputation specifically through touchPricingSources.

In `@src/systems/badgeSystem.ts`:
- Around line 212-220: Update the Settings map entries for
Comfy.NodeBadge.NodeIdBadgeMode, Comfy.NodeBadge.NodeLifeCycleBadgeMode, and
Comfy.NodeBadge.NodeSourceBadgeMode to use NodeBadgeMode, then remove the
corresponding assertions from the badgeModes initialization. Ensure
settingStore.get infers and returns NodeBadgeMode directly for these keys.
- Around line 167-187: Update gatherSubgraphCredits to touch all dynamic pricing
dependencies for the single inner API leaf, not only
pricing.getNodeRevisionRef(leaf.id). Reuse the dependency-registration behavior
from touchPricingSources, passing the appropriate inner graph-id keys from
wrapper.subgraph for priced widget values and input connections, while
preserving the existing multi-leaf and display-price behavior.

---

Outside diff comments:
In `@src/renderer/extensions/vueNodes/components/NodeSlots.vue`:
- Around line 10-19: In NodeSlots.vue, add computed inputRows and outputRows
that resolve each slot’s actual index once and calculate connection state using
the rootGraphId within the computed mapping. Update the InputSlot and OutputSlot
v-for blocks to consume these row objects for keys, slot data, indices, and
connected state, removing repeated getActualInputIndex calls and redundant
rootGraphId guards from isInputConnected/isOutputConnected.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 77516a24-b905-4d0c-b70f-f93cbf262d19

📥 Commits

Reviewing files that changed from the base of the PR and between 4c643e9 and 96ba092.

⛔ Files ignored due to path filters (14)
  • browser_tests/tests/domWidget.spec.ts-snapshots/focus-mode-on-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/execution.spec.ts-snapshots/execution-error-unconnected-slot-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/graphCanvasMenu.spec.ts-snapshots/canvas-with-visible-links-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-default-workflow-mobile-chrome-linux.png is excluded by !**/*.png
  • browser_tests/tests/mobileBaseline.spec.ts-snapshots/mobile-graph-canvas-toolbar-mobile-chrome-linux.png is excluded by !**/*.png
  • browser_tests/tests/nodeBadge.spec.ts-snapshots/node-badge-left-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/saveImageAndWebp.spec.ts-snapshots/save-image-and-webm-preview-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/selectionToolbox.spec.ts-snapshots/selection-toolbox-multiple-nodes-border-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/selectionToolbox.spec.ts-snapshots/selection-toolbox-multiple-selections-border-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/selectionToolbox.spec.ts-snapshots/selection-toolbox-single-node-no-border-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/viewport.spec.ts-snapshots/viewport-fits-when-saved-offscreen-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/interactions/canvas/pan.spec.ts-snapshots/vue-nodes-paned-with-touch-mobile-chrome-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/colors.spec.ts-snapshots/vue-node-custom-colors-dark-all-colors-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/colors.spec.ts-snapshots/vue-node-custom-colors-light-all-colors-chromium-linux.png is excluded by !**/*.png
📒 Files selected for processing (272)
  • browser_tests/assets/missing/missing_model_nested_promoted_widget.json
  • browser_tests/assets/missing/missing_models_in_subgraph.json
  • browser_tests/assets/nodes/duplicate_node_ids.json
  • browser_tests/fixtures/helpers/NodeOperationsHelper.ts
  • browser_tests/tests/appModeBuilder.spec.ts
  • browser_tests/tests/nodeBadge.spec.ts
  • browser_tests/tests/nodeDisplay.spec.ts
  • browser_tests/tests/propertiesPanel/errorsTabCloudMissingModels.spec.ts
  • browser_tests/tests/propertiesPanel/errorsTabModeAware.spec.ts
  • browser_tests/tests/vueNodes/interactions/links/linkInteraction.spec.ts
  • browser_tests/tests/vueNodes/nodeStates/registration.spec.ts
  • browser_tests/tests/vueNodes/widgets/legacy.spec.ts
  • browser_tests/tests/vueNodes/widgets/widgetReactivity.spec.ts
  • browser_tests/tests/workflowPersistence.spec.ts
  • docs/adr/0008-entity-component-system.md
  • docs/architecture/domain-glossary.md
  • docs/architecture/ecs-lifecycle-scenarios.md
  • docs/architecture/ecs-migration-plan.md
  • docs/architecture/ecs-target-architecture.md
  • docs/architecture/entity-interactions.md
  • docs/architecture/entity-problems.md
  • docs/architecture/link-topology-store.md
  • docs/architecture/node-badge-store.md
  • docs/architecture/node-data-store.md
  • docs/architecture/output-slot-connectivity.md
  • docs/architecture/proto-ecs-stores.md
  • docs/architecture/reroute-chain-store.md
  • src/components/builder/AppModeWidgetList.vue
  • src/components/graph/GraphCanvas.vue
  • src/components/graph/widgets/domWidgetZIndex.test.ts
  • src/components/rightSidePanel/errors/useErrorGroups.test.ts
  • src/components/rightSidePanel/errors/useErrorGroups.ts
  • src/components/rightSidePanel/parameters/SectionWidgets.vue
  • src/components/rightSidePanel/parameters/TabSubgraphInputs.test.ts
  • src/components/rightSidePanel/parameters/TabSubgraphInputs.vue
  • src/components/rightSidePanel/parameters/WidgetActions.test.ts
  • src/components/rightSidePanel/parameters/WidgetActions.vue
  • src/components/rightSidePanel/parameters/WidgetItem.test.ts
  • src/components/rightSidePanel/parameters/WidgetItem.vue
  • src/components/rightSidePanel/subgraph/SubgraphEditor.test.ts
  • src/components/rightSidePanel/subgraph/SubgraphEditor.vue
  • src/composables/graph/useErrorClearingHooks.test.ts
  • src/composables/graph/useErrorClearingHooks.ts
  • src/composables/graph/useGraphNodeManager.test.ts
  • src/composables/graph/useGraphNodeManager.ts
  • src/composables/graph/useNodeErrorFlagSync.test.ts
  • src/composables/graph/useVueNodeLifecycle.test.ts
  • src/composables/graph/useVueNodeLifecycle.ts
  • src/composables/node/useNodeBadge.ts
  • src/composables/node/useNodePricing.test.ts
  • src/composables/node/useNodePricing.ts
  • src/composables/node/usePriceBadge.test.ts
  • src/composables/node/usePriceBadge.ts
  • src/composables/useUpstreamValue.test.ts
  • src/composables/useUpstreamValue.ts
  • src/core/graph/subgraph/migration/proxyWidgetMigration.test.ts
  • src/core/graph/subgraph/migration/proxyWidgetMigration.ts
  • src/core/graph/subgraph/promotedInputWidget.ts
  • src/core/graph/subgraph/promotionUtils.test.ts
  • src/core/graph/subgraph/promotionUtils.ts
  • src/core/graph/subgraph/resolveConcretePromotedWidget.test.ts
  • src/core/graph/subgraph/resolveSubgraphInputLink.ts
  • src/core/graph/widgets/dynamicWidgets.test.ts
  • src/core/graph/widgets/dynamicWidgets.ts
  • src/core/graph/widgets/matchTypeConfiguring.test.ts
  • src/extensions/core/groupNode.ts
  • src/extensions/core/load3d.ts
  • src/extensions/core/rerouteNode.ts
  • src/extensions/core/saveImageExtraOutput.test.ts
  • src/extensions/core/widgetInputs.test.ts
  • src/extensions/core/widgetInputs.ts
  • src/extensions/core/widgetValuePropagation.test.ts
  • src/extensions/core/widgetValuePropagation.ts
  • src/lib/litegraph/src/LGraph.inputSlotRealign.test.ts
  • src/lib/litegraph/src/LGraph.serialise.test.ts
  • src/lib/litegraph/src/LGraph.test.ts
  • src/lib/litegraph/src/LGraph.ts
  • src/lib/litegraph/src/LGraphBadge.ts
  • src/lib/litegraph/src/LGraphCanvas.clipboard.test.ts
  • src/lib/litegraph/src/LGraphCanvas.cloneZIndex.test.ts
  • src/lib/litegraph/src/LGraphCanvas.drawConnections.test.ts
  • src/lib/litegraph/src/LGraphCanvas.ghost.test.ts
  • src/lib/litegraph/src/LGraphCanvas.groupSelection.test.ts
  • src/lib/litegraph/src/LGraphCanvas.slotHitDetection.test.ts
  • src/lib/litegraph/src/LGraphCanvas.ts
  • src/lib/litegraph/src/LGraphNode.nodeState.test.ts
  • src/lib/litegraph/src/LGraphNode.test.ts
  • src/lib/litegraph/src/LGraphNode.ts
  • src/lib/litegraph/src/LGraphNodeProperties.test.ts
  • src/lib/litegraph/src/LGraphNodeProperties.ts
  • src/lib/litegraph/src/LLink.store.test.ts
  • src/lib/litegraph/src/LLink.test.ts
  • src/lib/litegraph/src/LLink.ts
  • src/lib/litegraph/src/LiteGraphGlobal.ts
  • src/lib/litegraph/src/Reroute.store.test.ts
  • src/lib/litegraph/src/Reroute.ts
  • src/lib/litegraph/src/__fixtures__/nodeHelpers.ts
  • src/lib/litegraph/src/canvas/FloatingRenderLink.test.ts
  • src/lib/litegraph/src/canvas/FloatingRenderLink.ts
  • src/lib/litegraph/src/canvas/LinkConnector.core.test.ts
  • src/lib/litegraph/src/canvas/LinkConnector.integration.test.ts
  • src/lib/litegraph/src/canvas/LinkConnector.test.ts
  • src/lib/litegraph/src/canvas/LinkConnector.ts
  • src/lib/litegraph/src/canvas/LinkConnectorSubgraphInputValidation.test.ts
  • src/lib/litegraph/src/canvas/ToInputFromIoNodeLink.ts
  • src/lib/litegraph/src/canvas/ToInputRenderLink.ts
  • src/lib/litegraph/src/infrastructure/LGraphEventMap.ts
  • src/lib/litegraph/src/interfaces.ts
  • src/lib/litegraph/src/linkDeduplication.ts
  • src/lib/litegraph/src/litegraph.ts
  • src/lib/litegraph/src/node/NodeInputSlot.test.ts
  • src/lib/litegraph/src/node/NodeInputSlot.ts
  • src/lib/litegraph/src/node/NodeOutputSlot.test.ts
  • src/lib/litegraph/src/node/NodeOutputSlot.ts
  • src/lib/litegraph/src/node/NodeSlot.test.ts
  • src/lib/litegraph/src/node/NodeSlot.ts
  • src/lib/litegraph/src/node/SlotBase.ts
  • src/lib/litegraph/src/node/slotEcosystemPatterns.test.ts
  • src/lib/litegraph/src/node/slotLinks.test.ts
  • src/lib/litegraph/src/node/slotLinks.ts
  • src/lib/litegraph/src/node/slotUtils.test.ts
  • src/lib/litegraph/src/node/slotUtils.ts
  • src/lib/litegraph/src/nodeBadgeDraw.test.ts
  • src/lib/litegraph/src/nodeBadgeDraw.ts
  • src/lib/litegraph/src/serialization.test.ts
  • src/lib/litegraph/src/subgraph/ExecutableNodeDTO.test.ts
  • src/lib/litegraph/src/subgraph/ExecutableNodeDTO.ts
  • src/lib/litegraph/src/subgraph/SubgraphConversion.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphIO.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphInput.ts
  • src/lib/litegraph/src/subgraph/SubgraphInputNode.ts
  • src/lib/litegraph/src/subgraph/SubgraphNode.ts
  • src/lib/litegraph/src/subgraph/SubgraphOutput.ts
  • src/lib/litegraph/src/subgraph/SubgraphSerialization.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphSlotConnections.test.ts
  • src/lib/litegraph/src/subgraph/SubgraphWidgetPromotion.test.ts
  • src/lib/litegraph/src/subgraph/__fixtures__/README.md
  • src/lib/litegraph/src/subgraph/__fixtures__/subgraphHelpers.test.ts
  • src/lib/litegraph/src/subgraph/__fixtures__/subgraphHelpers.ts
  • src/lib/litegraph/src/subgraph/subgraphDeduplication.test.ts
  • src/lib/litegraph/src/subgraph/subgraphDeduplication.ts
  • src/lib/litegraph/src/subgraph/subgraphUtils.test.ts
  • src/lib/litegraph/src/subgraph/subgraphUtils.ts
  • src/lib/litegraph/src/types/graphTriggers.ts
  • src/lib/litegraph/src/types/serialisation.ts
  • src/lib/litegraph/src/types/widgets.ts
  • src/lib/litegraph/src/utils/collections.test.ts
  • src/lib/litegraph/src/utils/collections.ts
  • src/lib/litegraph/src/utils/widget.ts
  • src/lib/litegraph/src/widgets/BaseWidget.test.ts
  • src/lib/litegraph/src/widgets/BaseWidget.ts
  • src/locales/ar/main.json
  • src/locales/en/main.json
  • src/locales/es/main.json
  • src/locales/fa/main.json
  • src/locales/fr/main.json
  • src/locales/he/main.json
  • src/locales/ja/main.json
  • src/locales/ko/main.json
  • src/locales/pt-BR/main.json
  • src/locales/ru/main.json
  • src/locales/tr/main.json
  • src/locales/zh-TW/main.json
  • src/locales/zh/main.json
  • src/platform/cloud/subscription/composables/useFreeTierQuota.ts
  • src/platform/missingMedia/missingMediaStore.ts
  • src/platform/missingModel/missingModelScan.test.ts
  • src/platform/missingModel/missingModelScan.ts
  • src/platform/missingModel/missingModelStore.ts
  • src/platform/nodeReplacement/useNodeReplacement.test.ts
  • src/platform/nodeReplacement/useNodeReplacement.ts
  • src/platform/telemetry/nodeAdded/installNodeAddedTelemetry.test.ts
  • src/platform/telemetry/nodeAdded/installNodeAddedTelemetry.ts
  • src/platform/workflow/core/services/workflowService.insertWorkflow.test.ts
  • src/platform/workflow/core/services/workflowService.ts
  • src/renderer/core/canvas/canvasStore.test.ts
  • src/renderer/core/canvas/canvasStore.ts
  • src/renderer/core/canvas/links/linkConnectorAdapter.ts
  • src/renderer/core/layout/operations/layoutMutations.test.ts
  • src/renderer/core/layout/operations/layoutMutations.ts
  • src/renderer/core/layout/store/layoutStore.test.ts
  • src/renderer/core/layout/store/layoutStore.ts
  • src/renderer/core/layout/types.ts
  • src/renderer/extensions/linearMode/PartnerNodesList.vue
  • src/renderer/extensions/minimap/composables/useMinimap.test.ts
  • src/renderer/extensions/minimap/composables/useMinimapGraph.test.ts
  • src/renderer/extensions/minimap/composables/useMinimapGraph.ts
  • src/renderer/extensions/minimap/data/AbstractMinimapDataSource.ts
  • src/renderer/extensions/minimap/data/LayoutStoreDataSource.ts
  • src/renderer/extensions/minimap/data/MinimapDataSource.test.ts
  • src/renderer/extensions/minimap/data/MinimapDataSourceFactory.ts
  • src/renderer/extensions/minimap/minimapCanvasRenderer.test.ts
  • src/renderer/extensions/vueNodes/components/LGraphNode.subgraph.test.ts
  • src/renderer/extensions/vueNodes/components/LGraphNode.test.ts
  • src/renderer/extensions/vueNodes/components/LGraphNode.vue
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.test.ts
  • src/renderer/extensions/vueNodes/components/LGraphNodePreview.vue
  • src/renderer/extensions/vueNodes/components/NodeContent.vue
  • src/renderer/extensions/vueNodes/components/NodeHeader.test.ts
  • src/renderer/extensions/vueNodes/components/NodeHeader.vue
  • src/renderer/extensions/vueNodes/components/NodeSlots.test.ts
  • src/renderer/extensions/vueNodes/components/NodeSlots.vue
  • src/renderer/extensions/vueNodes/components/NodeWidgets.test.ts
  • src/renderer/extensions/vueNodes/components/NodeWidgets.vue
  • src/renderer/extensions/vueNodes/components/WidgetGrid.vue
  • src/renderer/extensions/vueNodes/composables/useNodeEventHandlers.test.ts
  • src/renderer/extensions/vueNodes/composables/useNodeEventHandlers.ts
  • src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.test.ts
  • src/renderer/extensions/vueNodes/composables/useNodePointerInteractions.ts
  • src/renderer/extensions/vueNodes/composables/useNodeTooltips.test.ts
  • src/renderer/extensions/vueNodes/composables/useNodeTooltips.ts
  • src/renderer/extensions/vueNodes/composables/usePartitionedBadges.test.ts
  • src/renderer/extensions/vueNodes/composables/usePartitionedBadges.ts
  • src/renderer/extensions/vueNodes/composables/useProcessedWidgets.test.ts
  • src/renderer/extensions/vueNodes/composables/useProcessedWidgets.ts
  • src/renderer/extensions/vueNodes/composables/useSlotLinkInteraction.autoPan.test.ts
  • src/renderer/extensions/vueNodes/composables/useSlotLinkInteraction.ts
  • src/renderer/extensions/vueNodes/layout/ensureCorrectLayoutScale.test.ts
  • src/renderer/extensions/vueNodes/layout/nodeSizeReflow.test.ts
  • src/renderer/extensions/vueNodes/types/widgetGrid.ts
  • src/renderer/extensions/vueNodes/utils/__tests__/nodeDataUtils.test.ts
  • src/renderer/extensions/vueNodes/utils/nodeDataUtils.ts
  • src/renderer/extensions/vueNodes/utils/nodeErrorState.ts
  • src/renderer/extensions/vueNodes/widgets/components/WidgetButton.test.ts
  • src/renderer/extensions/vueNodes/widgets/components/WidgetButton.vue
  • src/renderer/extensions/vueNodes/widgets/components/WidgetDOM.test.ts
  • src/renderer/extensions/vueNodes/widgets/components/WidgetDOM.vue
  • src/renderer/extensions/vueNodes/widgets/components/WidgetLegacy.vue
  • src/renderer/extensions/vueNodes/widgets/composables/useImageUploadWidget.test.ts
  • src/renderer/extensions/vueNodes/widgets/composables/useProgressTextWidget.ts
  • src/renderer/extensions/vueNodes/widgets/composables/useWidgetRenderer.test.ts
  • src/renderer/extensions/vueNodes/widgets/registry/widgetRegistry.ts
  • src/renderer/glsl/glslPreviewUtils.ts
  • src/renderer/glsl/useGLSLUniforms.test.ts
  • src/renderer/glsl/useGLSLUniforms.ts
  • src/scripts/app.test.ts
  • src/scripts/app.ts
  • src/scripts/promotedWidgetControl.test.ts
  • src/scripts/promotedWidgetControl.ts
  • src/scripts/widgets.ts
  • src/services/litegraphService.ts
  • src/stores/appModeStore.test.ts
  • src/stores/linkStore.test.ts
  • src/stores/linkStore.ts
  • src/stores/nodeDataStore.test.ts
  • src/stores/nodeDataStore.ts
  • src/stores/rerouteStore.test.ts
  • src/stores/rerouteStore.ts
  • src/stores/widgetValueStore.graphReactivity.test.ts
  • src/stores/widgetValueStore.test.ts
  • src/stores/widgetValueStore.ts
  • src/stores/workspace/favoritedWidgetsStore.ts
  • src/systems/badgeSystem.pricing.test.ts
  • src/systems/badgeSystem.subgraph.test.ts
  • src/systems/badgeSystem.test.ts
  • src/systems/badgeSystem.ts
  • src/types/badgeData.ts
  • src/types/linkTopology.ts
  • src/types/nodeState.ts
  • src/types/rerouteChain.ts
  • src/types/simplifiedWidget.ts
  • src/types/widgetState.ts
  • src/utils/__tests__/litegraphTestUtils.ts
  • src/utils/graphTraversalUtil.test.ts
  • src/utils/graphTraversalUtil.ts
  • src/utils/linkFixer.test.ts
  • src/utils/linkFixer.ts
  • src/utils/litegraphUtil.test.ts
  • src/utils/litegraphUtil.ts
  • src/utils/searchAndReplace.test.ts
  • src/utils/widgetUtil.ts
  • tools/devtools/web/legacyWidget.js
💤 Files with no reviewable changes (27)
  • src/lib/litegraph/src/LGraphNodeProperties.test.ts
  • src/composables/node/usePriceBadge.test.ts
  • src/composables/node/usePriceBadge.ts
  • src/lib/litegraph/src/LGraphNodeProperties.ts
  • src/lib/litegraph/src/LGraphBadge.ts
  • src/composables/graph/useGraphNodeManager.ts
  • src/composables/graph/useGraphNodeManager.test.ts
  • browser_tests/tests/nodeBadge.spec.ts
  • src/locales/ru/main.json
  • src/lib/litegraph/src/canvas/ToInputRenderLink.ts
  • src/locales/ar/main.json
  • src/locales/ja/main.json
  • src/locales/zh/main.json
  • src/lib/litegraph/src/types/graphTriggers.ts
  • src/lib/litegraph/src/node/SlotBase.ts
  • src/locales/zh-TW/main.json
  • src/locales/tr/main.json
  • src/lib/litegraph/src/canvas/ToInputFromIoNodeLink.ts
  • src/locales/es/main.json
  • src/locales/fr/main.json
  • src/locales/fa/main.json
  • src/scripts/app.ts
  • browser_tests/fixtures/helpers/NodeOperationsHelper.ts
  • src/renderer/core/layout/types.ts
  • src/locales/ko/main.json
  • src/locales/pt-BR/main.json
  • src/locales/he/main.json
🛑 Comments failed to post (1)
src/renderer/extensions/vueNodes/composables/useProcessedWidgets.test.ts (1)

342-351: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Avoid asserting raw Tailwind class strings.

'ring ring-component-node-widget-advanced' is hard-coded here and again at Line 468, so a purely cosmetic class rename breaks both tests without any behavior change. Prefer asserting the advanced/non-advanced distinction (e.g. compare borderStyle for showAdvanced vs. a non-advanced widget, or expose the class via a shared constant that both source and test import).

As per coding guidelines, "Do not write change-detector tests, style-dependent tests, redundant tests".

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/renderer/extensions/vueNodes/composables/useProcessedWidgets.test.ts`
around lines 342 - 351, Update the test around processWidgets to avoid asserting
the literal Tailwind value ring ring-component-node-widget-advanced. Verify the
advanced/non-advanced borderStyle behavior by comparing results for showAdvanced
or reuse a shared source constant, and apply the same change to the duplicate
assertion near the other advanced-widget test.

Source: Coding guidelines

@codecov

codecov Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.46667% with 32 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/core/graph/widgets/dynamicWidgets.ts 89.85% 7 Missing ⚠️
src/composables/graph/useArrangeNodes.ts 40.00% 3 Missing ⚠️
src/composables/node/useNodeBadge.ts 40.00% 3 Missing ⚠️
src/core/graph/subgraph/promotionUtils.ts 86.36% 3 Missing ⚠️
...components/rightSidePanel/errors/useErrorGroups.ts 33.33% 2 Missing ⚠️
src/composables/graph/useNodeArrangement.ts 0.00% 2 Missing ⚠️
src/composables/node/useNodePricing.ts 92.30% 2 Missing ⚠️
src/extensions/core/widgetInputs.ts 92.00% 2 Missing ⚠️
src/extensions/core/widgetValuePropagation.ts 81.81% 2 Missing ⚠️
src/components/builder/AppModeWidgetList.vue 94.73% 1 Missing ⚠️
... and 5 more
@@            Coverage Diff             @@
##             main   #14246      +/-   ##
==========================================
+ Coverage   79.52%   82.39%   +2.87%     
==========================================
  Files        2235     1920     -315     
  Lines      113630   109153    -4477     
  Branches    31062    30866     -196     
==========================================
- Hits        90367    89940     -427     
+ Misses      22775    18877    -3898     
+ Partials      488      336     -152     
Flag Coverage Δ
e2e 67.09% <84.24%> (+0.54%) ⬆️
unit 74.30% <75.69%> (+0.51%) ⬆️
website-unit ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/components/graph/widgets/DomWidget.vue 90.69% <ø> (+1.16%) ⬆️
...nents/rightSidePanel/parameters/SectionWidgets.vue 85.43% <ø> (+0.76%) ⬆️
...ts/rightSidePanel/parameters/TabSubgraphInputs.vue 70.58% <ø> (-0.43%) ⬇️
...onents/rightSidePanel/parameters/WidgetActions.vue 92.45% <100.00%> (+25.34%) ⬆️
...ponents/rightSidePanel/subgraph/SubgraphEditor.vue 85.29% <100.00%> (-0.29%) ⬇️
.../composables/canvas/useSelectionToolboxPosition.ts 69.56% <100.00%> (-1.67%) ⬇️
src/composables/graph/useErrorClearingHooks.ts 96.75% <100.00%> (-0.70%) ⬇️
src/core/graph/nodeShell/nodeShellState.ts 100.00% <100.00%> (ø)
...e/graph/subgraph/migration/proxyWidgetMigration.ts 91.66% <100.00%> (-0.15%) ⬇️
src/core/graph/subgraph/promotedInputWidget.ts 78.94% <100.00%> (-3.28%) ⬇️
... and 79 more

... and 412 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 13

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (8)
src/extensions/core/groupNode.ts (1)

926-931: 🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift

Resolve links from the graph that owns the group node.

convertToNodes() documents nested-subgraph support, but reconnectInputs() resolves the origin through app.rootGraph, and reconnectOutputs() queries outputLinks(app.rootGraph, ...). Link and node collections are graph-local. For a group inside a Subgraph, these lookups cannot resolve the subgraph topology, so unpacking can drop connections. Resolve both endpoints from the owning graph and explicitly map them into the root graph before reconnecting.

Also applies to: 943-953

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/extensions/core/groupNode.ts` around lines 926 - 931, Update
reconnectInputs() and reconnectOutputs() to use the graph owning the group node,
rather than app.rootGraph, when resolving links, origins, and output links.
Before reconnecting, explicitly map the resolved endpoints from that owning
graph into the root graph so nested Subgraph topology is preserved during
convertToNodes().
src/extensions/core/widgetInputs.ts (1)

348-354: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Skip links whose target slot no longer exists.

theirNode can resolve while theirNode.inputs[link.target_slot] is undefined after input layout changes or legacy workflow restoration. _isValidConnection() reads input.widget, so this path can throw during _mergeWidgetConfig(). Add a guard before calling it.

Proposed fix
       const theirInput = theirNode.inputs[link.target_slot]
+      if (!theirInput) continue

       // Call is valid connection so it can merge the configs when validating
       this._isValidConnection(theirInput, hasConfig)
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/extensions/core/widgetInputs.ts` around lines 348 - 354, In the
link-processing loop within _mergeWidgetConfig, guard the
theirNode.inputs[link.target_slot] lookup and skip the link when the target slot
is missing, before calling _isValidConnection. Preserve processing for links
with an existing target input.
src/renderer/core/layout/store/layoutStore.ts (2)

239-242: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Silent no-op on null assignment can hide a real caller.

The setter ignores null instead of emitting deleteNode. The comment asserts that no caller assigns null. The ref type still allows null, so a future caller gets a silent no-op with no signal. Narrow the ref type to Ref<NodeLayout | null> for reads only, or log at debug level when a null write arrives.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/renderer/core/layout/store/layoutStore.ts` around lines 239 - 242, Update
the layout ref setter in the layout store to avoid silently ignoring null
assignments: either expose a read-only Ref<NodeLayout | null> type so callers
cannot write null, or retain the setter and emit a debug log when newLayout is
null. Preserve layoutMutations.deleteNode as the deletion path for valid node
deletions.

1136-1158: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Clean up floating-link geometry when removing a floating link.

removeFloatingLink removes topology but does not remove linkSegmentLayouts or linkSegmentSpatialIndex entries. Add this cleanup to removeFloatingLink. Make the cleanup unconditional when no whole-link layout exists.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/renderer/core/layout/store/layoutStore.ts` around lines 1136 - 1158, The
node deletion path leaves floating-link geometry entries behind because
removeFloatingLink does not clear linkSegmentLayouts or linkSegmentSpatialIndex.
Update removeFloatingLink to remove the affected floating link’s segment layout
and spatial-index entries, performing this cleanup unconditionally when no
whole-link layout exists; leave whole-link layout handling unchanged.
docs/architecture/reroute-chain-store.md (1)

111-118: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Correct the reroute geometry scope statement.

Reroute.pos no longer mirrors a class-owned position field. layoutStore owns reroute position. State that reroute geometry is out of scope because it has already migrated, not because duplication remains.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/architecture/reroute-chain-store.md` around lines 111 - 118, Update the
Scope section to state that reroute geometry is out of scope because reroute
position has already migrated to layoutStore ownership; remove the inaccurate
claim that Reroute.pos mirrors a class field and that pre-existing duplication
remains.
src/lib/litegraph/src/LGraphCanvas.ts (1)

2530-2572: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Reroute hit-testing on left-click duplicates the extracted findRerouteAtPoint helper.

processMouseDown's right-click path resolves reroutes through findRerouteAtPoint(graph, x, y, this._visibleReroutes). _processPrimaryButton re-implements the same "query layout store, then fall back" pattern inline instead of reusing that helper. Keep the two click paths on one hit-testing implementation. Otherwise, future changes to findRerouteAtPoint's fallback behavior will not propagate to the left-click path, and the two paths can silently diverge on edge positions.

Consider extracting the "resolve reroute by id from a layout hit" step into a small helper that both findRerouteAtPoint and this loop call, so the layout-store resolution logic stays in one place.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/lib/litegraph/src/LGraphCanvas.ts` around lines 2530 - 2572, Update the
reroute hit-testing in _processPrimaryButton to reuse findRerouteAtPoint instead
of duplicating the layout-store query and visible-reroute fallback. If needed,
extract the shared layout-hit ID resolution into a small helper used by both
findRerouteAtPoint and the primary-button path, while preserving the existing
click, drag, connector, and slot-hover behavior.
src/lib/litegraph/src/Reroute.ts (1)

674-685: 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Handle duplicate reroute IDs before replacing the graph entry.

registerReroute() refuses to replace an existing chain but returns the unregistered chain. registerRerouteChain() then assigns that chain to the new reroute, while _addReroute() overwrites the graph map. Unregistering the new reroute cannot remove the old store registration, leaving an orphaned chain.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/lib/litegraph/src/Reroute.ts` around lines 674 - 685, Update the reroute
registration flow around registerReroute(), registerRerouteChain(), and
_addReroute() so duplicate IDs are handled before the graph map is overwritten.
Preserve the existing registered chain when an ID already exists, and ensure the
new reroute is not assigned an unregistered chain or left able to orphan the old
store registration.
src/renderer/core/layout/operations/layoutMutations.ts (1)

236-285: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Add existence guards to createGroup and deleteGroup for consistency.

setGroupBounds returns early when the group layout is missing. createGroup and deleteGroup always apply an operation. A deleteGroup call for an unknown group still appends an entry to the operation log and notifies listeners with change.type = 'delete', although the Yjs delete is a no-op. Node mutations (deleteNode) use the same guard pattern in this file.

♻️ Proposed guard for `deleteGroup`
   const deleteGroup = (rootGraphId: UUID, groupId: GroupId): void => {
+    if (!layoutStore.getGroupLayout(rootGraphId, groupId)) return
+
     layoutStore.applyOperation({
       type: 'deleteGroup',
       entity: 'group',
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/renderer/core/layout/operations/layoutMutations.ts` around lines 236 -
285, Update createGroup and deleteGroup to check whether the group already
exists using layoutStore.getGroupLayout(rootGraphId, groupId) before applying
operations, matching the guard pattern in setGroupBounds and deleteNode.
Preserve createGroup’s existing behavior for valid groups and return early when
the requested group state does not satisfy the intended existence condition.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@browser_tests/tests/copyPaste.spec.ts`:
- Around line 33-56: Update the test around the pinned node copy/paste flow to
capture the original node’s distinct ID and position before pasting, then
identify the newly pasted node by ID rather than relying on getNodeRefsByType
ordering. After confirming the node count, derive the expected graph coordinate
from the cursor position and assert the pasted node’s position matches it, while
retaining the original-node identity checks.

In `@src/lib/litegraph/src/LGraph.ts`:
- Around line 508-524: Update the subgraph-definition cleanup in remove() to
delete each released definition’s groups and reroutes through
useLayoutMutations(), using the root graph ID and the same LayoutSource.Canvas
setup as clear(). Ensure this runs before the definition becomes unreachable,
while preserving the existing topology and node-state cleanup.

In `@src/lib/litegraph/src/LGraphCanvas.ts`:
- Around line 8944-8950: Update applyNodePositions to build the corresponding
node-position updates and commit them through
layoutMutations.batchMoveNodes(updates) once, instead of calling node.setPos for
each node. Preserve the existing positions mapping and observable node
coordinates while batching the layout-store write.

In `@src/lib/litegraph/src/LGraphGroup.test.ts`:
- Around line 171-182: The mutation tests around the `test.for(mutations)` block
and the additional cases at lines 204–221 currently derive expected geometry
from `group.pos` and `group.size`, making the assertions self-referential.
Replace those fields with the independently known literal x, y, width, and
height values for each mutation case, matching the established legacy geometry
buffer test pattern.

In `@src/lib/litegraph/src/LGraphGroup.ts`:
- Around line 168-176: Remove the explicit syncBoundsFromStore() calls from both
the boundingRect getter and getBounding() method in LGraphGroup, returning
this._bounding directly. Preserve the Proxy-based synchronization performed when
callers access geometry properties.

In `@src/lib/litegraph/src/LGraphNode.ts`:
- Around line 650-659: Scope node layout refs, Y nodes, indexes, listeners, and
lifecycle operations by rootGraph.id rather than nodeId alone, updating
LGraphNode methods _positionUpdated and the related layout-operation site at
LGraphNode.ts lines 680-690 while preserving existing behavior. Add an isolation
test in LGraphNode.test.ts lines 794-864 using identical node IDs in two root
graphs and verify position and size updates remain isolated.

In `@src/platform/workflow/core/utils/workflowToClipboardItems.test.ts`:
- Around line 101-140: Add a cyclic-subgraph test alongside the existing nesting
test, using the subgraph helper to create A nesting B and B nesting A, then pass
the resulting workflow through workflowToClipboardItems and assert flattening
terminates with each subgraph ID included exactly once and no nested definitions
retained.

In `@src/platform/workflow/core/utils/workflowToClipboardItems.ts`:
- Around line 12-27: The workflow insertion path must preserve root-level
floating links: update workflowToClipboardItems and the corresponding
_deserializeItems processing so graph.floatingLinks are carried through and
inserted alongside parsed.links. Add a regression test covering a workflow with
root-level floating links, rather than only extending ClipboardItems.

In `@src/renderer/core/layout/store/layoutStore.ts`:
- Around line 1000-1003: Update the workflow close cleanup in
initializeFromLiteGraph to remove discarded root graph IDs from both
rerouteLayouts and rerouteSpatialIndex, while preserving reroute geometry during
subgraph navigation and retaining the existing link, segment, and slot layout
cleanup.

In `@src/renderer/core/layout/sync/useLayoutSync.test.ts`:
- Around line 111-146: Replace the `canvas as never` cast in the `startSync`
call with a typed partial mock created via `fromPartial` from
`@total-typescript/shoehorn`; use the same helper for the `liteNode` mock so
both objects are checked against their expected contracts while preserving the
existing position-setter assertion.

In `@src/renderer/core/layout/utils/mappers.ts`:
- Around line 56-96: Share the rectangle serialization and deserialization logic
between group and node layouts by extracting or reusing the existing helpers
used by layoutToYNode and yNodeRect. Update layoutToYGroup and setYGroupRect to
use the shared rect writer, and update yGroupToLayout to use the shared rect
reader so the StoredRect cast is centralized.

In `@src/renderer/extensions/minimap/data/LayoutStoreDataSource.ts`:
- Around line 75-77: Update getNodeCount() to count entries from viewedNodes()
that have a layout, rather than calling getNodes() and constructing full
MinimapNodeData objects; preserve the same layout-presence filtering used by
getNodes().

In `@src/renderer/extensions/vueNodes/layout/useNodeDrag.test.ts`:
- Line 114: Update the isLGraphNode stub used by the startDrag tests to
distinguish actual LGraphNode instances, preferably using the real LiteGraph
class or shared factory instead of a constant mock. Add a selected LGraphNode to
the relevant selectedItems case and assert it is excluded from
nonNodeStartPositions, ensuring the !isLGraphNode filter cannot be inverted or
omitted without failing.

---

Outside diff comments:
In `@docs/architecture/reroute-chain-store.md`:
- Around line 111-118: Update the Scope section to state that reroute geometry
is out of scope because reroute position has already migrated to layoutStore
ownership; remove the inaccurate claim that Reroute.pos mirrors a class field
and that pre-existing duplication remains.

In `@src/extensions/core/groupNode.ts`:
- Around line 926-931: Update reconnectInputs() and reconnectOutputs() to use
the graph owning the group node, rather than app.rootGraph, when resolving
links, origins, and output links. Before reconnecting, explicitly map the
resolved endpoints from that owning graph into the root graph so nested Subgraph
topology is preserved during convertToNodes().

In `@src/extensions/core/widgetInputs.ts`:
- Around line 348-354: In the link-processing loop within _mergeWidgetConfig,
guard the theirNode.inputs[link.target_slot] lookup and skip the link when the
target slot is missing, before calling _isValidConnection. Preserve processing
for links with an existing target input.

In `@src/lib/litegraph/src/LGraphCanvas.ts`:
- Around line 2530-2572: Update the reroute hit-testing in _processPrimaryButton
to reuse findRerouteAtPoint instead of duplicating the layout-store query and
visible-reroute fallback. If needed, extract the shared layout-hit ID resolution
into a small helper used by both findRerouteAtPoint and the primary-button path,
while preserving the existing click, drag, connector, and slot-hover behavior.

In `@src/lib/litegraph/src/Reroute.ts`:
- Around line 674-685: Update the reroute registration flow around
registerReroute(), registerRerouteChain(), and _addReroute() so duplicate IDs
are handled before the graph map is overwritten. Preserve the existing
registered chain when an ID already exists, and ensure the new reroute is not
assigned an unregistered chain or left able to orphan the old store
registration.

In `@src/renderer/core/layout/operations/layoutMutations.ts`:
- Around line 236-285: Update createGroup and deleteGroup to check whether the
group already exists using layoutStore.getGroupLayout(rootGraphId, groupId)
before applying operations, matching the guard pattern in setGroupBounds and
deleteNode. Preserve createGroup’s existing behavior for valid groups and return
early when the requested group state does not satisfy the intended existence
condition.

In `@src/renderer/core/layout/store/layoutStore.ts`:
- Around line 239-242: Update the layout ref setter in the layout store to avoid
silently ignoring null assignments: either expose a read-only Ref<NodeLayout |
null> type so callers cannot write null, or retain the setter and emit a debug
log when newLayout is null. Preserve layoutMutations.deleteNode as the deletion
path for valid node deletions.
- Around line 1136-1158: The node deletion path leaves floating-link geometry
entries behind because removeFloatingLink does not clear linkSegmentLayouts or
linkSegmentSpatialIndex. Update removeFloatingLink to remove the affected
floating link’s segment layout and spatial-index entries, performing this
cleanup unconditionally when no whole-link layout exists; leave whole-link
layout handling unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 4a7d20ec-7efd-422c-9d8a-7a2840f3d714

📥 Commits

Reviewing files that changed from the base of the PR and between 2d755f0 and 15db3dd.

⛔ Files ignored due to path filters (3)
  • browser_tests/tests/saveImageAndWebp.spec.ts-snapshots/save-image-and-webm-preview-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/colors.spec.ts-snapshots/vue-node-custom-colors-dark-all-colors-chromium-linux.png is excluded by !**/*.png
  • browser_tests/tests/vueNodes/nodeStates/colors.spec.ts-snapshots/vue-node-custom-colors-light-all-colors-chromium-linux.png is excluded by !**/*.png
📒 Files selected for processing (59)
  • browser_tests/fixtures/helpers/CanvasHelper.ts
  • browser_tests/tests/copyPaste.spec.ts
  • browser_tests/tests/vueNodes/interactions/node/move.spec.ts
  • browser_tests/tests/vueNodes/rerouteGeometry.spec.ts
  • docs/architecture/ecs-migration-plan.md
  • docs/architecture/ecs-target-architecture.md
  • docs/architecture/proto-ecs-stores.md
  • docs/architecture/reroute-chain-store.md
  • src/composables/graph/useNodeArrangement.ts
  • src/composables/graph/useVueNodeLifecycle.ts
  • src/core/graph/widgets/dynamicWidgets.ts
  • src/extensions/core/groupNode.ts
  • src/extensions/core/widgetInputs.ts
  • src/lib/litegraph/src/LGraph.test.ts
  • src/lib/litegraph/src/LGraph.ts
  • src/lib/litegraph/src/LGraphCanvas.cloneZIndex.test.ts
  • src/lib/litegraph/src/LGraphCanvas.deprecated.test.ts
  • src/lib/litegraph/src/LGraphCanvas.groupSelection.test.ts
  • src/lib/litegraph/src/LGraphCanvas.ts
  • src/lib/litegraph/src/LGraphGroup.test.ts
  • src/lib/litegraph/src/LGraphGroup.ts
  • src/lib/litegraph/src/LGraphNode.test.ts
  • src/lib/litegraph/src/LGraphNode.ts
  • src/lib/litegraph/src/Reroute.store.test.ts
  • src/lib/litegraph/src/Reroute.ts
  • src/lib/litegraph/src/canvas/findRerouteAtPoint.ts
  • src/lib/litegraph/src/canvas/getCanvasContextMenuTarget.test.ts
  • src/lib/litegraph/src/canvas/getCanvasContextMenuTarget.ts
  • src/lib/litegraph/src/infrastructure/createGeometryView.test.ts
  • src/lib/litegraph/src/infrastructure/createGeometryView.ts
  • src/lib/litegraph/src/interfaces.ts
  • src/lib/litegraph/src/linkDeduplication.ts
  • src/lib/litegraph/src/subgraph/SubgraphIONodeBase.ts
  • src/lib/litegraph/src/subgraph/subgraphDeduplication.test.ts
  • src/lib/litegraph/src/subgraph/subgraphDeduplication.ts
  • src/platform/workflow/core/services/workflowService.insertWorkflow.test.ts
  • src/platform/workflow/core/services/workflowService.ts
  • src/platform/workflow/core/utils/workflowToClipboardItems.integration.test.ts
  • src/platform/workflow/core/utils/workflowToClipboardItems.test.ts
  • src/platform/workflow/core/utils/workflowToClipboardItems.ts
  • src/renderer/core/layout/operations/layoutMutations.ts
  • src/renderer/core/layout/store/layoutStore.test.ts
  • src/renderer/core/layout/store/layoutStore.ts
  • src/renderer/core/layout/sync/syncLayoutStoreFromGraph.test.ts
  • src/renderer/core/layout/sync/syncLayoutStoreFromGraph.ts
  • src/renderer/core/layout/sync/useLayoutSync.test.ts
  • src/renderer/core/layout/sync/useLayoutSync.ts
  • src/renderer/core/layout/types.ts
  • src/renderer/core/layout/utils/mappers.test.ts
  • src/renderer/core/layout/utils/mappers.ts
  • src/renderer/extensions/minimap/data/LayoutStoreDataSource.ts
  • src/renderer/extensions/minimap/data/MinimapDataSource.test.ts
  • src/renderer/extensions/vueNodes/composables/useSlotLinkInteraction.ts
  • src/renderer/extensions/vueNodes/layout/ensureCorrectLayoutScale.test.ts
  • src/renderer/extensions/vueNodes/layout/ensureCorrectLayoutScale.ts
  • src/renderer/extensions/vueNodes/layout/useNodeDrag.test.ts
  • src/renderer/extensions/vueNodes/layout/useNodeDrag.ts
  • src/scripts/app.ts
  • src/utils/vintageClipboard.ts
💤 Files with no reviewable changes (3)
  • src/renderer/core/layout/sync/syncLayoutStoreFromGraph.ts
  • src/renderer/core/layout/sync/syncLayoutStoreFromGraph.test.ts
  • src/composables/graph/useVueNodeLifecycle.ts

Comment thread browser_tests/tests/copyPaste.spec.ts Resolved
Comment thread src/lib/litegraph/src/LGraph.ts Resolved
Comment thread src/lib/litegraph/src/LGraphCanvas.ts Resolved
Comment thread src/lib/litegraph/src/LGraphGroup.ts Resolved
@huang47 huang47 added the risk:xhigh PR risk grade (advisory shadow check; grader-owned) label Sep 2, 2026 — with ChatGPT Codex Connector
@huang47 huang47 removed the risk:R3 PR risk grade (advisory shadow check; grader-owned) label Sep 2, 2026
DrJKL added a commit that referenced this pull request Sep 3, 2026
…canvas and in the registry (#16728)

Backport of #16535 to `core/1.52`.

Conflict resolution preserves the target branch's Vue-node badge and
pricing implementation. The standalone `usePartitionedBadges.test.ts`
conflict was dropped because that test was introduced by the later ECS
migration (#14246), which is not present on `core/1.52`; the Comfy Cloud
behavior is covered in `badgeRendererParity.test.ts` instead.

Co-authored-by: Deep Mehta <42841935+deepme987@users.noreply.github.com>
Co-authored-by: Deep Mehta <deep@comfy.org>
DrJKL pushed a commit to ICOM725/ComfyUI_frontend that referenced this pull request Sep 10, 2026
…17319)

Fixes Comfy-Org#16642

- Renaming an input or output slot now refreshes the rendered label
immediately (regressed when the ECS node state landed in Comfy-Org#14246).
- Slot descriptors are exposed to the node shell through a reactive
view, so any slot field edit propagates; no per-field handlers needed.
- Regression test added (fails on main, passes here).

<details><summary>Full context for agent readers</summary>

**Root cause.** Before ECS, `LGraphCanvas` listened for
`node:slot-label:changed` and redrew. The ECS merge removed that handler
and instead reads slot data through `createNodeShellState`. The plain
objects in `node.inputs` / `node.outputs` are not reactive, so label
writes never invalidated the shell state and the Vue node kept the old
label.

**Fix.** `src/lib/litegraph/src/node/slotDescriptorView.ts` adds a
generic `createSlotView<T>` Proxy (exported as `createInputSlotView` /
`createOutputSlotView`, plus `resolveInputSlotView` for lookups).
`createNodeShellState` in `src/core/graph/nodeShell/nodeShellState.ts`
takes the two view factories and derives its slot arrays from them;
`LGraphNode.ts` passes them through. Any write to a slot descriptor
(label, name, type) now triggers the shell to recompute.

**Tests.**
`src/core/graph/nodeShell/slotLabelReactivity.regression.test.ts` (5
cases: input rename, output rename, rename after link, rename of a
widget-backed input, rename via `renameSlot`). Written TDD: red on
`main`, green on this branch. The test lives under
`src/core/graph/nodeShell/` to satisfy the layer-boundary lint. `pnpm
vitest run` on the three touched test files: 18/18. `pnpm typecheck`
clean, `oxlint`/`eslint` clean.

**Disclosure.** Knip (pre-push hook) flagged an unused
`resolveOutputSlotView` export that I had added for symmetry; I removed
it rather than leave dead code. Add it back if a caller appears.

**Backport.** Labelled `needs-backport`, `core/1.53`, `cloud/1.53` per
program policy (every ECS fix goes to 1.53 before promotion).

<!-- authored-by:agent supreme-operator w3-520-followup -->
</details>

---------

Co-authored-by: Amp <amp@ampcode.com>
christian-byrne added a commit that referenced this pull request Sep 10, 2026
Fixes #16642

- Renaming an input or output slot now refreshes the rendered label
immediately (regressed when the ECS node state landed in #14246).
- Slot descriptors are exposed to the node shell through a reactive
view, so any slot field edit propagates; no per-field handlers needed.
- Regression test added (fails on main, passes here).

<details><summary>Full context for agent readers</summary>

**Root cause.** Before ECS, `LGraphCanvas` listened for
`node:slot-label:changed` and redrew. The ECS merge removed that handler
and instead reads slot data through `createNodeShellState`. The plain
objects in `node.inputs` / `node.outputs` are not reactive, so label
writes never invalidated the shell state and the Vue node kept the old
label.

**Fix.** `src/lib/litegraph/src/node/slotDescriptorView.ts` adds a
generic `createSlotView<T>` Proxy (exported as `createInputSlotView` /
`createOutputSlotView`, plus `resolveInputSlotView` for lookups).
`createNodeShellState` in `src/core/graph/nodeShell/nodeShellState.ts`
takes the two view factories and derives its slot arrays from them;
`LGraphNode.ts` passes them through. Any write to a slot descriptor
(label, name, type) now triggers the shell to recompute.

**Tests.**
`src/core/graph/nodeShell/slotLabelReactivity.regression.test.ts` (5
cases: input rename, output rename, rename after link, rename of a
widget-backed input, rename via `renameSlot`). Written TDD: red on
`main`, green on this branch. The test lives under
`src/core/graph/nodeShell/` to satisfy the layer-boundary lint. `pnpm
vitest run` on the three touched test files: 18/18. `pnpm typecheck`
clean, `oxlint`/`eslint` clean.

**Disclosure.** Knip (pre-push hook) flagged an unused
`resolveOutputSlotView` export that I had added for symmetry; I removed
it rather than leave dead code. Add it back if a caller appears.

**Backport.** Labelled `needs-backport`, `core/1.53`, `cloud/1.53` per
program policy (every ECS fix goes to 1.53 before promotion).

<!-- authored-by:agent supreme-operator w3-520-followup -->
</details>

---------

Co-authored-by: Amp <amp@ampcode.com>
(cherry picked from commit 928cd4a)
christian-byrne added a commit that referenced this pull request Sep 10, 2026
Fixes #16642

- Renaming an input or output slot now refreshes the rendered label
immediately (regressed when the ECS node state landed in #14246).
- Slot descriptors are exposed to the node shell through a reactive
view, so any slot field edit propagates; no per-field handlers needed.
- Regression test added (fails on main, passes here).

<details><summary>Full context for agent readers</summary>

**Root cause.** Before ECS, `LGraphCanvas` listened for
`node:slot-label:changed` and redrew. The ECS merge removed that handler
and instead reads slot data through `createNodeShellState`. The plain
objects in `node.inputs` / `node.outputs` are not reactive, so label
writes never invalidated the shell state and the Vue node kept the old
label.

**Fix.** `src/lib/litegraph/src/node/slotDescriptorView.ts` adds a
generic `createSlotView<T>` Proxy (exported as `createInputSlotView` /
`createOutputSlotView`, plus `resolveInputSlotView` for lookups).
`createNodeShellState` in `src/core/graph/nodeShell/nodeShellState.ts`
takes the two view factories and derives its slot arrays from them;
`LGraphNode.ts` passes them through. Any write to a slot descriptor
(label, name, type) now triggers the shell to recompute.

**Tests.**
`src/core/graph/nodeShell/slotLabelReactivity.regression.test.ts` (5
cases: input rename, output rename, rename after link, rename of a
widget-backed input, rename via `renameSlot`). Written TDD: red on
`main`, green on this branch. The test lives under
`src/core/graph/nodeShell/` to satisfy the layer-boundary lint. `pnpm
vitest run` on the three touched test files: 18/18. `pnpm typecheck`
clean, `oxlint`/`eslint` clean.

**Disclosure.** Knip (pre-push hook) flagged an unused
`resolveOutputSlotView` export that I had added for symmetry; I removed
it rather than leave dead code. Add it back if a caller appears.

**Backport.** Labelled `needs-backport`, `core/1.53`, `cloud/1.53` per
program policy (every ECS fix goes to 1.53 before promotion).

<!-- authored-by:agent supreme-operator w3-520-followup -->
</details>

---------

Co-authored-by: Amp <amp@ampcode.com>
(cherry picked from commit 928cd4a)
VoXoXoX pushed a commit to VoXoXoX/ComfyUI_frontend that referenced this pull request Sep 26, 2026
Adds e2e coverage for four ECS migration behaviours, in both the Vue and
legacy renderers:

- **Node source badge Settings transitions**
(`nodeSourceBadgeMode.spec.ts`). Drives the real Settings control
through Show all, Hide built-in, None, Show all again, with no reload.
Core `PreviewImage` and custom `DevToolsErrorRaiseNode` are expected to
differ under Hide built-in. Vue asserts on visible badges; legacy
observes actual `drawBadges`/`fillText` calls and waits for a completed
frame.
- **API pricing badge toggle** (`apiPricingBadge.spec.ts`).
- **Link disconnect/reconnect at emulated DPR 1.5**
(`links/deviceScaleFactor.spec.ts`). Exact endpoints and output-link
count.
- **Marquee selection at emulated DPR 1.5**
(`selection/deviceScaleFactor.spec.ts`). Exact two-node selection.

Both scaling tests use Playwright's emulated `deviceScaleFactor`, not
physical display scaling or browser zoom. Physical display validation
stays manual.

Supporting fixtures: `LegacyNodeBadgeHelper` (legacy badge probe),
`SettingDialog.selectSetting`.

[QA
plan](https://app.notion.com/p/comfy-org/3c56d73d365081629481ea0f1d09fc65)
· [Migration](Comfy-Org#14246)

<details><summary>Rebase note, 2026-09-25</summary>

The branch had drifted 634 commits behind `main` and was red on
`typecheck-aux`, `repo-checks`, `fallow` and `lint`. Rebased clean (no
conflicts, diff unchanged at 551 lines across 7 files) and fixed the
fallout in `e8ae9041a0`:

- `Settings` moved out of `@/schemas/apiSchema`. The unresolved import
was the single cause of the typecheck, knip and fallow failures.
- `SettingDialog` already imports `comfyExpect as expect`; the added
`@playwright/test` `expect` was a duplicate identifier.
- `vueNodes.waitForNodes()` no longer takes a count.
- `comfy(prefer-initial-settings)` landed after this branch was cut.
Startup settings moved to `test.use({ initialSettings })`, and the
settings-only `afterEach` teardown was removed: `comfyPageFixture`
reseeds settings before each test, so the restores were dead code. That
supersedes three earlier commits on this branch that added those
restores in response to review. Dropping them also removes
describe-scope mutable state shared across the renderer loop.

Earlier body text referenced pre-rebase commit SHAs and out-of-scope
claims (body zoom, API serialization, locale layout, download/re-import,
Browse Templates undo, missing-model dialogs). None of that is in this
PR; removed so it does not read as a spec.

</details>

---------

Co-authored-by: Amp <amp@ampcode.com>
zeus-onl pushed a commit to zeus-onl/ComfyUI_frontend that referenced this pull request Sep 28, 2026
…S migration QA plan (Comfy-Org#17462)

- Longer titles and labels verified.
- Clipping controls reject truncated text.
- Human legibility check remains.

<details><summary>Full context for agent readers</summary>

Coverage includes Vue node movement and widget edits through renderer
toggles and save/reload, repeated serialized renderer round trips, and
text rendering at 50% and 200% zoom.

At [the current test
head](Comfy-Org@5e335f4),
zoom cases use the longer title `KSampler Advanced Controls` and widget
label `guidance scale`. Assertions check exact zoom and text, positive
bounds, complete natural text layout inside clipping ancestors, and
rendered ink. At 200%, deliberately halving each text container's width
makes the clipping assertion reject both perturbations; the restored
text passes.

The parent independently repeated the two zoom cases successfully
against the intended checkout and a private backend, then inspected both
screenshots. The other two renderer-transition cases were not repeated
in this pass, so the older 4/4 result is not claimed as current-head
verification. Static checks and commit/push hooks passed. Hosted CI and
review remain separate.

The first parent attempt reached a user selector because the reused
frontend port belonged to another checkout and backend. A newly bound
server from the intended checkout resolved that harness mismatch; no
product assertion was weakened.

Source-plan case 54 remains partial: exact text presence and clipping
are automated, but subjective legibility and physical-display appearance
still require human assessment.

[QA
plan](https://app.notion.com/p/comfy-org/3c56d73d365081629481ea0f1d09fc65)
· [Migration
PR](Comfy-Org#14246)

Glossary: Vue is the DOM-rendered Nodes 2.0 interface; CI means hosted
automated checks.
</details>

---------

Co-authored-by: Amp <amp@ampcode.com>
christian-byrne added a commit to christian-byrne/ComfyUI_frontend that referenced this pull request Oct 10, 2026
…omfy-Org#20701)

## Summary

Regression test for Comfy-Org#20648 / FE-3347. It covers this case: after
`LGraph.clear()`, a new node that reuses a cleared node's id must not
pick up that node's `widgetValueStore` row, and the old
`graphId:nodeId:widget` row must be gone. The test lives in
`LGraph.test.ts`, in the "Graph Clearing and Callbacks" group, next to
the existing `clear()` store-cleanup test.

**This test passes on current `main`.** The bug was reported on 1.52.7,
and it does not reproduce from 1.53.1 onward. Commit a8abe57 (Comfy-Org#14246)
changed `clear()` so it gives the root graph a fresh UUID instead of
resetting it to `zeroUuid`, which used to skip the purge. `main` also
discards each cleared node's widget rows on its own, through
`clearNodeOwnedStoreState` and `detachNodeFromStores(...,
'discard-values')`. The test overlaps the existing graph-wide `clear()`
purge test as a guard. Its value is recording the reported scenario with
real nodes.

I chose a unit test over Playwright because `Comfy.ClearWorkflow` comes
down to `app.clean() → rootGraph.clear()`, and the leak happens entirely
inside `LGraph` and `widgetValueStore`.

Fixes Comfy-Org#20648 (already fixed on `main` by Comfy-Org#14246; this PR adds the
regression test)

## Verification

- `pnpm exec vitest run src/lib/litegraph/src/LGraph.test.ts`: 127/127
pass.
- Mutation check, with `LGraph.ts` edited temporarily and then reverted:
restoring 1.52.7 behavior (no purges, root reset to `zeroUuid`) makes
the new test **fail**.
- oxfmt is clean. Test-only change, so no browser or tmux QA.

---------

Co-authored-by: Glary-Bot <glary-bot@users.noreply.github.com>
Penguinjanator pushed a commit to Penguinjanator/ComfyUI_frontend that referenced this pull request Oct 16, 2026
…FE-3459) (Comfy-Org#21114)

*PR Created by the Glary-Bot Agent*

---

## Summary

Fixes [FE-3459](https://linear.app/comfyorg/issue/FE-3459): in Nodes
2.0, the widgets on VHS **Load Video (Upload)** overlap each other.

In `WidgetLegacy.vue` `draw()`, Comfy-Org#15453 ("test: cover direct widget array
mutations", which landed on main through the ECS migration Comfy-Org#14246)
changed the order of the two canvas width sources.
`getBoundingClientRect().width` now came first and
`parentElement.clientWidth` became the fallback.

- `getBoundingClientRect()` includes the graph canvas zoom transform. A
legacy widget redrawn while the graph is zoomed out was therefore sized
at the scaled width. That width was used for `computeSize`/height,
`widget.width` and the canvas backing width, so the widget heights came
out wrong.
- A transform change doesn't trigger `ResizeObserver`, so the wrong size
stayed after zooming back to 100%. The result was overlapping widgets.

This PR puts the two lines back in their original order. Layout
`clientWidth` (not affected by the transform) comes first, and the
bounding rect is only the fallback for the zero-width case. The parent
is still `w-full`, so `clientWidth` and the rect agree at 1× zoom.

## Changes
- `WidgetLegacy.vue`: `parentElement.clientWidth ||
getBoundingClientRect().width`
- `WidgetLegacy.test.ts`: new regression test. It mocks a layout width
of 200 and a zoomed rect width of 100, then checks that `widget.width`
is 200 and the canvas backing width is 400. I confirmed the test fails
without the fix (`expected 100 to be 200`).

## Verification
- `pnpm vitest run
src/renderer/extensions/vueNodes/widgets/components/`: 497/497 pass
- `pnpm typecheck`, oxlint, eslint, oxfmt: clean
- Browser check (done in the FE-3459 investigation, not repeated here):
production builds served by ComfyUI with the real VideoHelperSuite
extension showed the overlap. Swapping only these two lines fixed it,
both on the commit that introduced the overlap and on current `main`. I
didn't take a separate Playwright screenshot for this PR, because the
repro needs the VHS custom node plus an uploaded video in a backend.

Linear: FE-3459

Co-authored-by: Glary-Bot <glary-bot@users.noreply.github.com>
nina-mir pushed a commit to nina-mir/ComfyUI_frontend that referenced this pull request Oct 21, 2026
…or) (Comfy-Org#20747)

*PR Created by the Glary-Bot Agent*

---

## Summary

Fixes the prod error `DataCloneError: Proxy object could not be cloned`
on `cloud-frontend-prod`. Chrome reports it as `#<Object> could not be
cloned`, Safari as `The object can not be cloned`. Datadog RUM shows 116
errors across 70 sessions in 30 days, still happening on cloud/v1.56.3.
Workflows fail to open from templates, file open or drop, startup
restore, and shared links.

This is the third round of the same bug: code keeps moving from a JSON
copy to `structuredClone` on data that is not actually plain. This PR
removes the crash site, fixes both sources of proxies, and adds a
regression test for each earlier occurrence.

## Root cause

A strict `structuredClone` ran on `graph.serialize()` output, and that
output can still contain JS proxies:
- `createNewWorkflow` (`workflowStore.ts`) cloned
`rootGraph.serialize()` on every load.
- `serialize()` copies `extra` only one level deep and runs extension
`onSerialize` hooks on the output object.

## Timeline

| When | Change | Effect |
|---|---|---|
| Jul 2025 |
[litegraph.js#1158](Comfy-Org/litegraph.js#1158)
/ [Comfy-Org#4696](Comfy-Org#4696)
propose `structuredClone` for `LiteGraph.cloneObject()` | Review blocked
it: *"you cannot simply drop this in… It will break custom nodes."*
Still open; `cloneObject` is still a JSON copy. |
| Feb 2026 | Comfy-Org#8898 (`3d88d0a6ab`) | First in-tree proxy fix: widget
values are JSON-copied in `LGraphNode.serialize`. |
| Mar 2026 | Comfy-Org#9338 (`68b16e3a3f`) | App Builder writes `extra.linearData
= { inputs: [...data.inputs] }`. The shallow spread leaks reactive
tuples into the graph. |
| Aug 19 2026 | Comfy-Org#11631 (`fb030dcdb8`), first in **cloud/v1.52.4** |
`createNewWorkflow` switches from a JSON copy to `structuredClone`.
**This creates the crash site.** |
| Aug 24 2026 | ECS migration Comfy-Org#14246 (`a8abe573c0`), first in
**cloud/v1.53.4** | `NodeState` is now registered with `reactive()`, so
`node.properties` is a deep reactive proxy. |
| Sep 20 2026 | Comfy-Org#18165 ("1.52.7 fine, 1.53.6 broken") | CRT Nodes "Fancy
Timer" does `onSerialize(o) { o.properties = this.properties }` →
`DataCloneError`. |
| Sep 22 2026 | Comfy-Org#18252 (`8ff5db2f1e`, Sentry FRONTEND-51) | Fixes
extension-only fields. `properties` is a canonical field, so Comfy-Org#18165
still crashed at `createNewWorkflow`. |

## Changes

The history alternates red and green: each failing test commit comes
before its fix.

**Crash site (`workflowStore.ts`).** `createNewWorkflow` no longer
deep-copies. `ensureWorkflowId` doesn't mutate its argument and the
result is only passed to `JSON.stringify`, so the stored bytes are
unchanged and nothing is left to clone (`e9f23ce`).

**Source 1: App Builder (`appModeStore.ts`).** `linearData` is written
as new typed tuples, and each config gets a JSON copy. A missing config
is omitted rather than written as `null`, so the value matches the
`zLinearInput` schema. End-to-end reorder, save and reopen is already
covered by `browser_tests/tests/builderReorder.spec.ts:125-147`. The
unit tests cover proxy depth and the omitted config.

**Source 2: serialize hooks (`extensionPersistence.ts →
runExtensionSerializeHook`).** This only runs when a hook exists; nodes
and graphs without hooks are untouched. After the hook runs, each
canonical field is checked with `structuredClone`, whether the hook
replaced it or edited it in place:
- **A cloneable value is kept exactly as the hook left it.** That
matches main: `Date`, `Map`, typed arrays and class instances keep their
in-memory types, and `toJSON` still runs at save time.
- **A value that can't be cloned is JSON-detached.** In practice that
means a live reactive proxy or a geometry view. Live geometry views
(`pos`/`size`, proxies over typed arrays) become `[x, y]`. Real typed
arrays keep main's `{"0":…}` JSON.
- **If JSON detachment also fails** (a cycle, BigInt, or a throwing
getter or `toJSON`), the value is kept and a warning is logged, so the
save fails loudly as it did on main instead of writing a workflow
without that field.

**Regression guards.** Each new test fails on base and passes here.
- `extensionPersistence.test.ts` covers:
- Comfy-Org#18165, both the whole-field and the nested in-place variants, for
node and graph hooks;
  - later live edits not leaking into a serialized node;
  - geometry views, flat, nested and in place;
  - Comfy-Org#8898 reactive widget values;
  - cloneable replaced values staying intact, including `toJSON`;
  - an untouched field keeping full fidelity;
  - a typed array keeping its saved shape next to a proxy;
  - an undetachable value kept so the save fails.
- `LiteGraphGlobal.cloneObject.test.ts` pins `cloneObject`'s proxy
tolerance, so repeating Comfy-Org#1158 now fails a test.
-
`browser_tests/tests/legacyDoNotReplicate/legacyLiveSerializedProperties.spec.ts`
(from Comfy-Org#21504) opens a workflow containing a devtools node that
reproduces the Fancy Timer hook. Before the fix the load fails with
`Failed to parse workflow: DataCloneError` and no tab opens.

## For reviewers

- **JSON vs `structuredClone` policy:** JSON is used only for values
`structuredClone` rejects, which in practice means live proxies.
Everything else is left as the hook wrote it, so saved JSON and
in-memory types match main.
- **Custom-node risk (Comfy-Org#1158):** this PR moves away from it.
Hook-provided values are still honoured; only live proxies are replaced
with copies.
- **Performance** (1,000 nodes, mean of 20 `graph.serialize()` calls in
Vitest, two runs each):

  | Case | main | this branch |
  |---|---|---|
  | No hooks | 14–15 ms | 15 ms (unchanged) |
  | Graph `onSerialize` | 12–14 ms | 17 ms |
  | Graph hook + a hook on every node | 19.5 ms | 34–35 ms |

- The cost is the per-field `structuredClone` check. For a graph hook,
that clones `nodes` and `definitions` once per serialize.
- Skipping those fields is not safe, because a hook can push a live
proxy into an existing container.
- No code in this repo registers `onSerialize`, so only custom-node
packs that install hooks pay this.
- On main, the hooked-node case was not usable either: it produced the
proxy output that crashed on load.
- **Known limits:**
- A raw (non-proxy) object a hook assigns still aliases live state, as
on main.
- Other strict clones still exist (`structuredClone(extra)` in
`LGraph.configure`, `workflowToClipboardItems`,
`subgraphStore.getBlueprint`). Both proxy sources are now fixed before
data reaches them.
- **Commit history:** red/green is intentional. Squash-merge, or keep
the history as is; please don't squash red into green.

## Verification

- **Unit tests** under `src/lib/litegraph`, `src/platform/workflow`,
`src/stores` and `src/scripts`: 314 files, 5463 passed. Pre-commit
(oxfmt, oxlint, `typecheck:app`) passed on every commit.
- **E2E:** the `legacyDoNotReplicate` folder and
`builderReorder.spec.ts` passed (47 tests) with
`scripts/test-browser-offline.sh --project=chromium` against a dist
built from this head. The new Fancy Timer spec fails against a dist
built with the fix reverted.
- **Live dev app (Playwright):** select and reorder in builder mode,
then run `structuredClone(rootGraph.serialize())` and
`createNewTemporary(…)`. Both threw `DataCloneError` before the fix and
succeed after.

---------

Co-authored-by: Glary-Bot <glary-bot@users.noreply.github.com>
Co-authored-by: Alexander Brown <drjkl@comfy.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview-gpu Creates a preview ephemeral environment for this PR (GPU available) refactor retain-preview Keep the ephemeral preview environment from being torn down for inactivity risk:xhigh PR risk grade (advisory shadow check; grader-owned) size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants