Comfy-Org / Comfy-Org/ComfyUI

Wildcard/Dynamic Prompts are not parsed when piped in to ClipTextEncode

Open
#13,174 1 comment 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [ x ] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

Alternatives in curly braces, e.g. {Dog|Cat|Mouse} should be parsed by picking one option at random.

### Actual Behavior

All alternatives inside the curly braces are included when piping the text in from a string widget

### Steps to Reproduce

Set up a text-to-image workflow
Enter {A Cat. |A Dog. | A Mouse} as the positive prompt in the Clip Text Encode widget
Run the workflow
Add a String (Multiline) widget and enter {A Cat. |A Dog. | A Mouse} as the value
Drag the output of the String (Multiline) widget to the Text section of the Clip Text Encode of a positive prompt
Run the workflow again

### Debug Logs

```powershell
Adding extra search path custom_nodes C:\Users\heikk\ComfyUI\custom_nodes
Adding extra search path download_model_base C:\Users\heikk\ComfyUI\models
Adding extra search path custom_nodes C:\Users\heikk\AppData\Local\Programs\ComfyUI\resources\ComfyUI\custom_nodes
Setting output directory to: C:\Users\heikk\ComfyUI\output
Setting input directory to: C:\Users\heikk\ComfyUI\input
Setting user directory to: C:\Users\heikk\ComfyUI\user
[START] Security scan
[DONE] Security scan
** ComfyUI startup time: 2026-03-26 18:02:58.879
** Platform: Windows
** Python version: 3.12.11 (main, Aug 18 2025, 19:17:54) [MSC v.1944 64 bit (AMD64)]
** Python executable: C:\Users\heikk\ComfyUI\.venv\Scripts\python.exe
** ComfyUI Path: C:\Users\heikk\AppData\Local\Programs\ComfyUI\resources\ComfyUI
** ComfyUI Base Folder Path: C:\Users\heikk\AppData\Local\Programs\ComfyUI\resources\ComfyUI
** User directory: C:\Users\heikk\ComfyUI\user
** ComfyUI-Manager config path: C:\Users\heikk\ComfyUI\user\__manager\config.ini
** Log path: C:\Users\heikk\ComfyUI\user\comfyui.log
[ComfyUI-Manager] Skipped fixing the 'comfyui-frontend-package' dependency because the ComfyUI is outdated.
[PRE] ComfyUI-Manager
WARNING: You need pytorch with cu130 or higher to use optimized CUDA operations.
Found comfy_kitchen backend triton: {'available': False, 'disabled': True, 'unavailable_reason': "ImportError: No module named 'triton'", 'capabilities': []}
Found comfy_kitchen backend eager: {'available': True, 'disabled': False, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'dequantize_mxfp8', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'scaled_mm_mxfp8', 'scaled_mm_nvfp4']}
Found comfy_kitchen backend cuda: {'available': True, 'disabled': True, 'unavailable_reason': None, 'capabilities': ['apply_rope', 'apply_rope1', 'dequantize_nvfp4', 'dequantize_per_tensor_fp8', 'quantize_mxfp8', 'quantize_nvfp4', 'quantize_per_tensor_fp8', 'scaled_mm_nvfp4']}
Checkpoint files will always be loaded safely.
Total VRAM 4096 MB, total RAM 65303 MB
pytorch version: 2.7.0+cu126
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce GTX 1050 Ti : cudaMallocAsync
Using async weight offloading with 2 streams
Enabled pinned memory 29386.0
Using pytorch attention
Unsupported Pytorch detected. DynamicVRAM support requires Pytorch version 2.8 or later. Falling back to legacy ModelPatcher. VRAM estimates may be unreliable especially on Windows
Python version: 3.12.11 (main, Aug 18 2025, 19:17:54) [MSC v.1944 64 bit (AMD64)]
ComfyUI version: 0.18.2
comfy-aimdo version: 0.2.12
comfy-kitchen version: 0.2.8
[Prompt Server] web root: C:\Users\heikk\AppData\Local\Programs\ComfyUI\resources\ComfyUI\web_custom_versions\desktop_app
Asset seeder disabled
[START] ComfyUI-Manager
[ComfyUI-Manager] network_mode: public
[ComfyUI-Manager] The matrix sharing feature has been disabled because the `matrix-nio` dependency is not installed.
To use this feature, please run the following command:
C:\Users\heikk\ComfyUI\.venv\Scripts\python.exe -m pip install matrix-nio

Skipping loading of custom nodes
Context impl SQLiteImpl.
Will assume non-transactional DDL.
Starting server

To see the GUI go to: http://127.0.0.1:8000
[ComfyUI-Manager] The ComfyRegistry cache update is still in progress, so an outdated cache is being used.
FETCH DATA from: C:\Users\heikk\ComfyUI\.venv\Lib\site-packages\comfyui_manager\custom-node-list.json [DONE]
got prompt
Using pytorch attention in VAE
Using pytorch attention in VAE
VAE load device: cuda:0, offload device: cpu, dtype: torch.float16
Found quantization metadata version 1
Using MixedPrecisionOps for text encoder
CLIP/text encoder model load device: cuda:0, offload device: cpu, current: cpu, dtype: torch.float16
model weight dtype torch.float8_e4m3fn, manual cast: torch.float32
model_type FLUX
Requested to load QwenImageTEModel_
loaded partially; 1926.20 MB usable, 0.00 MB loaded, 7909.89 MB offloaded, 3248.00 MB buffer reserved, lowvram patches: 0
loaded partially; 1902.08 MB usable, 0.00 MB loaded, 7909.89 MB offloaded, 3248.00 MB buffer reserved, lowvram patches: 0
Requested to load QwenImage
loaded partially; 1902.07 MB usable, 1306.59 MB loaded, 18177.36 MB offloaded, 594.12 MB buffer reserved, lowvram patches: 815
0%| | 0/5 [00:00

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.