Nodes/ComfyUI-iTools/Prompt Record πŸͺΆ
ComfyUI Node

Prompt Record πŸͺΆ

Prompt Record πŸͺΆ keeps a per-node history of every prompt you run

By MohammadAboulElaΒ·Created 2 years agoΒ·Updated 27 days agoΒ· 237
Prompt Record πŸͺΆ
    • text
    β—„textβ–Ί
    β—„timeline_dataβ–Ί

    You spent an afternoon dialing in a prompt, landed the one that actually worked, tweaked it again… and now it's gone from your head and your browser history. Prompt Record πŸͺΆ is the node for exactly that moment. It's a plain text node from the iTools pack that keeps a per-node timeline of every prompt that runs through it - and the part that makes it worth having: the timeline saves inside the node itself, so it survives a workflow reload. Reopen the JSON a week later and your history is right there.

    How it works

    The Python side is nearly a stub: text_entry() just echoes your text out and marks the node as an output node. All the real work lives in the frontend. There's a hidden widget called timeline_data that holds the timeline as JSON - the UI hides it from the canvas but it persists with the workflow, and onConfigure() rehydrates the history when you load. The extension also hooks app.queuePrompt, so anything you queue while the node is in the graph gets captured automatically; you don't have to remember to save. If the text input is wired to something upstream (say a line loader feeding a list of prompts), it grabs the executed text after each run too, so prompt batch runs fill the timeline on their own. Duplicates are skipped, which keeps the list from turning into noise.

    The buttons across the top do what they look like: βœ– clears the text box, Copy/Paste talk to your clipboard, β–Ά adds whatever's currently in the box to the timeline, and Timeline 🧾 opens the history panel where saved prompts live. Click one to drop it back into the box.

    Inputs and outputs

    Only two things on this node matter:

    • text - the multiline STRING you're tracking. Type it or wire it in.
    • timeline_data - the hidden storage string. Leave it alone; it's the timeline's backpack.

    Output is a single text STRING, ready to feed a CLIPTextEncode or whatever your pipeline expects. Handy in workflows where you're iterating on a prompt and want the history without saving the prompt to a file every run.

    Install

    Same pack as everything else in iTools. Easiest is ComfyUI Manager: search ComfyUI-iTools, install, restart. Or clone it:

    cd ComfyUI/custom_nodes
    git clone https://github.com/MohammadAboulEla/ComfyUI-iTools
    

    Restart ComfyUI. No requirements.txt, no model downloads, no heavy dependencies - it's frontend JavaScript plus a few lines of Python, so it installs clean even next to packs that fight over pip versions.

    Where people get burned

    Read the pack's "Known issues" before you blame the node. Prompt Record is one of four iTools nodes that don't work under ComfyUI Node 2.0 (Beta) - on the new node system it renders wrong or misbehaves. The author says the classic node system is fully supported, and the fix is to toggle back to classic for workflows that use it. Also remember the timeline is per-node, not global: you don't get one history for your whole session, you get one for each Prompt Record instance. Drop a fresh node into a new workflow and it starts empty - which is usually exactly what you want, but know it's coming.

    CategoryiTools

    Inputs (2)

    NameTypeDefaultDescription
    textSTRINGβ€”
    timeline_dataSTRINGβ€”

    Outputs (1)

    NameTypeDescription
    textSTRINGβ€”