From 3cfd4d04016dfd344d19efedfe34a3519cfa6439 Mon Sep 17 00:00:00 2001 From: DrJKL Date: Sat, 9 May 2026 14:06:56 -0700 Subject: [PATCH] fix(subgraph): preserve renamed labels through migration + app mode Two related label-propagation regressions: R1 (app-mode rename): mappedSelections in AppModeWidgetList depends on graphNodes (shallowRef), and renaming a promoted widget never bumped it. Listen for node:slot-label:changed (already fired by renameWidget) and triggerRef the existing graphNodes shallowRef. R2 (sidepanel renamed labels): repairCreateSubgraphInput in the proxy- widget migration created a new SubgraphInput without copying the interior slot's label. After migration, the renamed label was lost because PromotedWidgetView.label falls back to slot.name. Mirror the LGraphNode.configure input.label propagation at the migration boundary. Also drop the redundant `_subgraphSlot.label =` write in renameWidget (the PromotedWidgetView.set label setter writes the slot directly). Amp-Thread-ID: https://ampcode.com/threads/T-019e0e0d-1937-758e-8a9b-4f54716b0aa2 Co-authored-by: Amp --- src/components/builder/AppModeWidgetList.vue | 5 ++++- .../graph/subgraph/migration/repairValueWidget.ts | 2 ++ src/utils/widgetUtil.test.ts | 15 --------------- src/utils/widgetUtil.ts | 6 ------ 4 files changed, 6 insertions(+), 22 deletions(-) diff --git a/src/components/builder/AppModeWidgetList.vue b/src/components/builder/AppModeWidgetList.vue index 8ab4e9bc4f..ec60b254ec 100644 --- a/src/components/builder/AppModeWidgetList.vue +++ b/src/components/builder/AppModeWidgetList.vue @@ -1,6 +1,6 @@