Files
comfyui_o1key/docs/decisions/0015-image-generator-workflow-values.md
T

22 lines
1.3 KiB
Markdown

# 0015: Canonical image-generator workflow values
- Status: Accepted
- Date: 2026-10-07
- Owners: Maintainers
## Context
The image generator uses a custom panel over hidden schema widgets. LiteGraph includes hidden automatic seed controls and the panel value in positional workflow arrays, even for UI widgets marked non-serialized. These values can shift reference manifests and later save settings while restoring workflows.
## Decision
Keep the existing panel, interaction hierarchy, node IDs, and input order. Serialize only ordered backend widget values. Before existing workflow migrations run, remove an automatic seed-control value only when it follows the numeric seed and precedes a reference-list string. Remove the trailing empty panel value only from the recognized full 24-value layout. Repeat these checks inside subgraphs.
## Consequences
Panel controls and their positions remain unchanged. Newly saved workflows have exactly the schema's 23 values. Older panel workflows and workflows saved during the native-widget revision restore the same parameters, reference manifests, and save settings.
## Validation
Offline tests cover panel action placement, idempotent creation, canonical serialization, and repeated root/subgraph migration. Browser checks retain parameters and references across both renderers without paid generation.