Files
ComfyUI/tests-unit/comfy_extras_test
bymyself 87ae3d3869 Fix Generate LTX2 Prompt returning an empty string
Non-thinking mode primes a "final" channel, so the Gemma 4 tokenizer decodes
that channel's close marker to a bare </think> with no opening tag. Splitting on
the last </think> then kept everything after it, which is nothing: the node
output an empty string, blanking both Preview Any and the positive conditioning
it feeds in the Text to Video (LTX-2.5) template.

Fall back to the text before the unmatched close, and to the user prompt when
nothing usable is left, which is what both system prompts already ask for.
2026-08-11 17:47:05 -07:00
..