Extensions/ComfyUI-Text-Latch
ComfyUI Extension

ComfyUI-Text-Latch

A ComfyUI node that stores the last non-empty text input and reuses it when the input is missing or disconnected.

By Jasshl·Created about 22 hours ago·Updated about 22 hours ago· 0
Jasshl/ComfyUI-Text-Latch
Nodes1
On cloudLocal install
Categoryhistory tools
Stars0
Updatedabout 22 hours ago
Readme

ComfyUI Text Latch

A ComfyUI node that stores the last non-empty text input and reuses it when the input is missing or disconnected.

Behavior

  • A non-empty text_in updates the stored text and passes it through
  • A missing or empty text_in returns the last stored text
  • name identifies the cache; nodes with the same name share stored text across workflows
  • Use different names for independent caches
  • Stored text survives ComfyUI restarts
  • Returns an empty string if no text has been stored yet
  • Keep the node enabled; bypassing it skips its storage behavior

Stored text is saved under ComfyUI's user directory in history-tools/text-latches. It is not included in exported workflow JSON.

Installation

ComfyUI Manager

Search for Text Latch by Jashi, install it, and restart ComfyUI.

Manual

From your ComfyUI custom_nodes directory:

git clone https://github.com/Jasshl/ComfyUI-Text-Latch.git

Restart ComfyUI after cloning. The node appears under the history tools category.

License

MIT