Nodes/ComfyUI_RaykoStudio/๐ŸฆŠ RS Prompts
ComfyUI Node

๐ŸฆŠ RS Prompts

A prompt box that lets you edit mid-run

By RaykosanยทCreated about a year agoยทUpdated 5 days agoยท 79
๐ŸฆŠ RS Prompts
  • clip
  • POSITIVE
  • NEGATIVE
  • PROMPT_STRING
โ—„textโ–บ
โ—„enable_text_inputfalseโ–บ
โ—„pause_for_editfalseโ–บ
โ—„text_inputโ€”โ–บ
โ—„instance_uidโ–บ

RS Prompts is a CLIP text encoder that doubles as a prompt manager, and its trick is one you'll either love or never touch: pause-for-edit. When another node feeds text into it and the mode is on, the queue stops, an overlay pops up with your prompt, and you can edit it and hit APPROVE before the sampler continues. No rebuilding the workflow, no aborting to change a word - for img2img iteration or prompt-swap tests, that's genuinely handy.

It pulls double duty as a two-source prompt switcher: an internal textarea for local prompts, or an external text_input port when you want a text node (or a prompt-builder) to feed it. A toggle - disable_text_input in the schema - switches between them without unplugging wires.

How it works

Under the hood it's CLIPTextEncode with a nicer coat of paint. You connect a CLIP model, it tokenizes your prompt and runs the scheduled encode, and it caches the last 50 encodes so re-running identical prompts doesn't waste time. The two interesting bits:

  • The negative is empty by design. The NEGATIVE output isn't your negative prompt - it's a zeroed/empty conditioning. So in practice you wire POSITIVE and maybe PROMPT_STRING to a KSampler, and if you want a real negative prompt you keep a separate CLIPTextEncode node for it. Which is fine, honestly; a lot of what people stuff into negatives is dead weight anyway, and on guidance-distilled models negative prompts are inert regardless.
  • Pause fires on external input, not on your typing. This is the gotcha people hit first. The pause-for-edit overlay only triggers when a connected node sends text into text_input (with the toggle enabled). If you're just typing in the textarea, nothing pauses - there'd be no reason to.

Inputs: clip (CLIP), text (multiline STRING), disable_text_input (BOOLEAN), pause_for_edit (BOOLEAN), plus optional text_input (STRING) and an instance_uid used internally to track the paused session. Outputs: POSITIVE (CONDITIONING), NEGATIVE (CONDITIONING, empty), PROMPT_STRING (STRING).

Presets

The ๐Ÿ’พ Save prompt / ๐Ÿ“‚ Select prompt buttons save your prompts as JSON files in ComfyUI/custom_nodes/ComfyUI_RaykoStudio/prompts/ - the folder is created automatically on first save. Deleting the node from a workflow does not delete the saved files, which is a feature until it's a surprise. Nice for keeping a stable of tested prompts on disk instead of buried in workflows.

Install

One pack install covers every RS node. Via ComfyUI Manager, search ComfyUI_RaykoStudio, or:

cd ComfyUI/custom_nodes
git clone https://github.com/Raykosan/ComfyUI_RaykoStudio.git

Restart after cloning. The pack is a grab-bag of a few dozen nodes from a solo dev, tested against ComfyUI 0.15+ and Python 3.10+, and its requirements (torch, numpy, Pillow, opencv-python, freetype-py, pycairo, scipy) are mostly things a ComfyUI install already has.

Common issues

  • Prompt presets won't save - write permissions on the prompts/ folder. Check the folder exists and the user running ComfyUI can write there.
  • Pause mode never fires - the toggle has to be on before you start the run, and it only pauses when external text actually arrives on text_input. Both conditions have to be true; the README calls out the same two things.
  • Nothing comes out of NEGATIVE - that's expected. It's an empty negative, not your negative prompt.
Category๐ŸฆŠ RaykoStudio

Inputs (6)

NameTypeDefaultDescription
clipCLIPโ€”
textSTRINGโ€”
enable_text_inputBOOLEANfalseโ€”
pause_for_editBOOLEANfalseโ€”
text_inputoptSTRINGโ€”
instance_uidoptSTRINGโ€”

Outputs (3)

NameTypeDescription
POSITIVECONDITIONINGโ€”
NEGATIVECONDITIONINGโ€”
PROMPT_STRINGSTRINGโ€”