Fix: set output label alongside name for LiteGraph rendering

LiteGraph renders slot.label over slot.name — we were updating name
but the display uses label.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-01 00:10:50 +01:00
parent d55b3198e8
commit a0d8cb8bbf

View File

@@ -146,7 +146,7 @@ app.registerExtension({
newOutputs.push(slot);
delete oldSlots[key];
} else {
newOutputs.push({ name: key, type: type, links: null });
newOutputs.push({ name: key, label: key, type: type, links: null });
}
}
@@ -259,6 +259,7 @@ app.registerExtension({
const slotIdx = i + 1;
if (slotIdx < this.outputs.length) {
this.outputs[slotIdx].name = keys[i].trim();
this.outputs[slotIdx].label = keys[i].trim();
if (types[i]) this.outputs[slotIdx].type = types[i];
}
}