mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-23 09:39:17 +08:00
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.