b374869ce99eeff3b3e6685dceb7bbdf06ba2fb2
ComfyUI-PromptHistoryGallery
Prompt History Input Node
CLIP: Connect the CLIP text encoder that should be used to embed the prompt.Prompt: Provide any text prompt. The node saves it to history and returns a matchingCONDITIONING.Tags(optional): Comma- or newline-separated tags. They are trimmed and stored as a list.Metadata(optional): Pass aDICTinput; it is stored alongside the prompt for later use.
Output:
conditioning: TheCONDITIONINGtensor produced by encoding the prompt with the supplied CLIP model.
Each execution appends an entry to a SQLite database (default: prompt_history_gallery/data/prompt_history.db). Set the COMFYUI_PROMPT_HISTORY_DIR environment variable to override the storage location.
UI Extension (History tab)
- A
Historytab appears in the left ComfyUI sidebar, listing stored prompt entries. - Each entry supports copying the prompt, deleting the entry, and previewing image thumbnails provided via metadata.
- Use the
Refreshbutton to pull the latest entries andClearto remove all history. - To show thumbnails, include data such as
{"images": [{"filename": "...", "subfolder": "...", "type": "output"}]}in the node'sMetadatainput.
Languages
JavaScript
64.1%
Python
24.1%
CSS
11.6%
Shell
0.2%