ComfyUI Node

TysiguTextDisplay

See which prompt line is running, not just trust the queue

By tysigu-project·Created 5 months ago·Updated 5 months ago· 0
TysiguTextDisplay
    • text
    text

    Here's a ComfyUI experience you'll recognize: you queue a 40-run batch, walk away, come back, and you have no idea which prompt produced which image. You're working blind until the whole thing finishes. TysiguTextDisplay is the "am I there yet" sign for this pack - a read-only display node that shows you, right on the canvas, what line of your prompt list is being processed right now.

    It's designed to hang off the pack's reader node. Feed it the display_info output of TysiguReadLines and you get the full picture: total lines, the current line number, and the actual prompt text, all in one auto-sized box. Before this, a long batch was a black box; after this, you can watch it tick through the list and know exactly when to step in.

    How it works

    Mechanically it's two pieces. The Python side is marked OUTPUT_NODE and returns a UI message alongside the text, which is what lets it push updates to the frontend. The JavaScript side (the text_display.js extension in the pack's web/ folder) catches that message after every execution and builds a read-only text widget showing the content. Then it auto-sizes the node to fit: width lands between 300 and 800px, and if the text is wider than 800px it stops growing and adds a horizontal scrollbar instead of wrapping. It's genuinely thoughtful - long prompt lists stay readable instead of becoming a 2,000px-wide monster.

    Because it's an output node, it also plays nicely with the queue: ComfyUI treats it as a terminal point, which is exactly what you want from a "watch the batch" node.

    The input and output

    One input, one output, both boring and that's fine:

    • text - marked forceInput, so you wire in a string rather than typing. Connect the display_info output from TysiguReadLines (that's the intended pairing); the node will happily show any string, but the reader's display_info is already formatted with the line numbers and the ▶ marker on the current line.
    • text - a pass-through of whatever you fed in, so you could chain it further if you wanted. Mostly you won't; this node's job is to be looked at.

    Installing it

    It's one of the four nodes in ComfyUI-TysiguUtilityNodes, so it arrives with the others. Via Manager, search the pack title ComfyUI-TysiguUtilityNodes, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/tysigu-project/ComfyUI-TysiguUtilityNodes.git
    

    Restart ComfyUI and it'll be under Tysigu/Text in the node menu. No dependencies beyond ComfyUI itself, no model downloads - the pack's README's clone example has a placeholder username in it, so just use the real URL above. (The "ty" search tip from the README genuinely works, by the way - type ty in the node search box and all four nodes come up.)

    Common issues

    • The box looks empty after you load a workflow. The display only fills in after the node executes, so a freshly loaded graph shows a blank node until you actually run it. Not a bug - it's a watch node, it has nothing to watch yet.
    • It's showing raw prompt text instead of progress. You probably wired it to the reader's text output instead of display_info. The text output is the current line only; display_info is the whole list with the marker. Easy to grab the wrong pin on your first build.
    • The node re-sizes itself on every run. That's by design, but if you've placed other nodes right next to it, it can shove them around. Leave it a little elbow room.

    It's a small node with a small job, and it does that job well. If you batch prompts in this pack, it's the difference between flying blind and knowing at a glance which line is rendering.

    CategoryTysigu/Text

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING