Files
Will Miao ee08a863a4 fix(prompt): keep trigger word slots aligned when a workflow loads
Since frontend 1.16 the loader rebuilds a node's inputs from the node
definition - which now inserts `seed` - and then repairs every link target by
slot name. The prompt extension renamed `trigger_words` and appended a slot
during that same configure pass, so `filtered_trigger_words` could no longer be
matched by name and kept its saved target slot, which by then addressed the
`text` widget input (the textarea disappeared and the link was drawn into it).
Dynamic slots also drifted out of order and numbering.

Skip every slot mutation while the graph configures, keep `localized_name` in
sync when renumbering (the label prefers it over `name`), and normalize legacy
layouts once the graph has loaded: connected slots first, exactly one trailing
empty slot, numbered 1..n. Nodes already in the canonical layout are left
untouched, so loading does not mark workflows dirty.

The backend now accepts the bare `trigger_words` name used by workflows saved
before the current definition. The Lora_Randomizer and Lora_Cycler templates
are migrated to the canonical layout.
2026-10-31 12:05:15 +08:00
..
2025-02-24 20:41:16 +08:00