After Update, ComfyUI can't output the same thing in the same run ? (It seems to auto-removed "duplicates")
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Expected Behavior
```
class Loop:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"nb_loops": ("INT", {"default": 1, "min": 0, "max": 1000, "step": 1}),
"text": ("STRING", {"default": "hi"}),
},
}
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("output",)
OUTPUT_IS_LIST = (True,)
FUNCTION = "loop"
CATEGORY = "Bjornulf"
def loop(self, nb_loops, text):
return ([text] * nb_loops,)
```
Should be able to send "hi" more than once. But it can't do it more than once. (duplicates)
### Actual Behavior
when using ```OUTPUT_IS_LIST = (True,)```, the output ```['hi', 'hi']``` is transformed into a single ```hi```.
I think that was an important feature that we should keep.
It is really a problem while parsing data, sometimes the returned data is similar than previously, and treated differently down the line, and having the same word repeated is important.
Like you might have to parse for example characters names and sentences :
```
Character 1: Hello
Character 2: Hi
Character 1: How are you ?
```
In its current state, comfyui is incapable of parsing this properly line by line and ```['Character 1', 'Character 2'', 'Character 1']``` is "transformed" into ```['Character 1', 'Character 2']```. (Can't repeat the same text and make a clean output of the same number of lines.)
### Steps to Reproduce
```
class Loop:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"nb_loops": ("INT", {"default": 1, "min": 0, "max": 1000, "step": 1}),
"text": ("STRING", {"default": "hi"}),
},
}
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("output",)
OUTPUT_IS_LIST = (True,)
FUNCTION = "loop"
CATEGORY = "Bjornulf"
def loop(self, nb_loops, text):
return ([text] * nb_loops,)
```
Put ```nb_loops``` to whatever number but it always have one output....
### Debug Logs
```powershell
got prompt
Prompt executed in 0.00 seconds
```
### Other
Before comfyui "update" (same as above code behavior) :

After comfyui "update" (same as above code behavior) :

Contributor guide
Assessment
This issue has not been assessed yet.