Comfy-Org / Comfy-Org/ComfyUI_frontend

[Bug]: Primitive node attached to seed input of Ksampler switching from "randomize" to "fixed" when copying nodes

Open
#1,757 2 comments 0 reactions 0 assignees View on GitHub
area:widgets good first issue verified bug
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

### Frontend Version

v1.4.13

### Expected Behavior

Workflow where the seed widget of the Ksampler node has been converted to input and a primitive node is attached to input the seed.
The primitive node is set to "randomize" to generate a random seed each run.
Copying and pasting these nodes should retain the "randomize" state of the primitive node.

![Screenshot1](https://github.com/user-attachments/assets/e056b817-3b07-4e2c-8160-e333b48f03e1)

### Actual Behavior

When pasted, the primitive node switches to "fixed"

![Screenshot2](https://github.com/user-attachments/assets/85abbab4-e45f-47e3-b7be-441923178f5e)

### Steps to Reproduce

Copy and paste a workflow or part of a workflow (including the primitive and Ksampler nodes) where the seed widget of the Ksampler node has been converted to input and a primitive node is attached to input a randomized seed. The state of the primitive node will change from randomize to fixed.

### Debug Logs

```powershell
-
```

### Browser Logs

-

### Setting JSON

{
"Comfy.NodeLibrary.Bookmarks": [],
"Comfy.WidgetControlMode": "before",
"Comfy.UseNewMenu": "Disabled",
"Comfy.PromptFilename": false,
"Comfy.LinkRenderMode": 2
}

### What browsers do you use to access the UI ?

Mozilla Firefox

### Other

_No response_

┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-1757-Bug-Primitive-node-attached-to-seed-input-of-Ksampler-switching-from-randomize-to-15f6d73d365081c791adf9ac323cbbd1) by [Unito](https://www.unito.io)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.