Nodes/comfyui-gpt-image2-prompt-T8/GPT Image 2 Execution Checker ✅
ComfyUI Node

GPT Image 2 Execution Checker ✅

A health check for your prompt library, and a test that your graph runs

By T8mars·Created 4 months ago·Updated 4 months ago· 73
GPT Image 2 Execution Checker ✅
    • status_report
    • is_healthy
    check_data_filestrue
    check_networkfalse
    passthrough_string

    When the Selector's dropdown comes up empty or the preview images won't load, you have two options: start deleting files and guessing, or ask the pack what's actually wrong. GPT Image 2 Execution Checker is the pack's diagnostic node - it inspects the local data files, optionally tests GitHub reachability, and hands you a plain-English report plus a boolean health flag. It also doubles as a cheap "does my graph even execute?" sanity check, because it does one thing every node does: run.

    It's the node you add after something breaks, not before. Zero impressions on it? Sure - nobody adds a health check to a workflow that's working. But the moment the library looks dead, this is the fastest way to find out whether it's a missing local_prompts.json, a truncated image directory, or the network.

    How it works

    When executed, the node runs through a list of checks and appends [OK] or [WARN] lines to a report:

    • The local_prompts.json exists and how many presets it holds (and how many have local images).
    • The images directory is present and how many per-case folders it contains.
    • The custom prompts file and its entries.
    • The last-update timestamp from the pack's state file.
    • Optionally, GitHub reachability, when you ask for it.

    Any failure flips the is_healthy output to false. So you get both a human-readable status_report STRING and a machine-readable is_healthy BOOLEAN you could wire into logic downstream.

    The passthrough_string input is the sneaky useful part. It's an optional STRING that passes through untouched in the report - which makes the node usable as an inline probe: wire a prompt string (or any text) through it, run, and confirm that the value actually survived the trip through your graph. In a pack full of string plumbing, that's a legitimate debugging trick.

    Inputs and outputs

    • check_data_files (BOOLEAN, default on) - run the file-integrity checks. Leave it on.
    • check_network (BOOLEAN, default off) - test GitHub connectivity. Only flip this on if you suspect a sync/network problem; it costs a round-trip.
    • passthrough_string (optional STRING) - any text to echo through the report.

    Outputs: status_report (STRING) and is_healthy (BOOLEAN).

    Install

    It's part of the same T8mars/comfyui-gpt-image2-prompt-T8 pack - ComfyUI Manager, search "GPT Image 2 Prompts", or git clone https://github.com/T8mars/comfyui-gpt-image2-prompt-T8 into custom_nodes/ and restart. No models, no extra dependencies.

    The honest caveat: this node tells you the library is healthy, not that your GPT Image 2 API call will succeed - the actual image generation still depends on whatever cloud node you've wired the prompt into. If the checker passes but images aren't coming back, the problem moved upstream to the API node, not the pack.

    CategoryGPT Image 2 Prompts

    Inputs (3)

    NameTypeDefaultDescription
    check_data_filesBOOLEANtrue
    check_networkBOOLEANfalse
    passthrough_stringoptSTRING

    Outputs (2)

    NameTypeDescription
    status_reportSTRING
    is_healthyBOOLEAN