Files
ComfyUI_frontend/browser_tests/assets/widgets/seed_widget.json
dante01yoon 4167a25ac8 fix: remove name-based fallback for seed control_after_generate
Remove name-based inference in useIntWidget.ts and groupNode.ts that
auto-added control_after_generate for any INT input named "seed" or
"noise_seed". Now only adds the control widget when control_after_generate
is explicitly set by the backend.

All core backend nodes already set control_after_generate explicitly.
Custom nodes like WAS_Text_Random_Line that use "seed" as a plain INT
were incorrectly getting a randomize control widget that reset on every
tab switch (since the control widget has serialize: false).

Update test fixture and remove stale screenshot expectation for the
DevToolsNodeWithSeedInput test node, which correctly has no
control_after_generate.

Fixes #7468
2026-04-11 23:41:44 +09:00

32 lines
536 B
JSON

{
"last_node_id": 10,
"last_link_id": 9,
"nodes": [
{
"id": 10,
"type": "DevToolsNodeWithSeedInput",
"pos": [20, 50],
"size": [315, 82],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"Node name for S&R": "DevToolsNodeWithSeedInput"
},
"widgets_values": [0]
}
],
"links": [],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [0, 0]
}
},
"version": 0.4
}