1 Commits
Author SHA1 Message Date
Will Miao c712a079a9 fix(widgets): stop load-time widget rewrites from marking workflows dirty
TriggerWord Toggle serialized the transient `highlighted` UI state into
widgets_values, but highlight is recomputed after load from the current
selection/library, so an untouched workflow always compared dirty against
the saved JSON and ComfyUI prompted to save on close. Strip `highlighted`
from serialized tag values (backend never reads it).

Also restore saved widget values by widget name instead of positional
index (position drift corrupted unrelated widget slots on load), and
preserve `locked` in mergeLoras so load-time merging no longer drops it.

Workflows saved with `highlighted` keys will show as modified once after
upgrading; saving them once writes the clean format.

Fixes #893
2026-10-31 10:34:39 +08:00