Log effective director global prompt

This commit is contained in:
OpenClaw Agent
2026-07-20 14:55:03 +00:00
parent 575838aeb0
commit fa546cbc8f

View File

@@ -2084,7 +2084,7 @@ class LTXDirector(io.ComfyNode):
else: else:
global_prompt = tdata.get("global_prompt", "") global_prompt = tdata.get("global_prompt", "")
log.info(f"[LTXDirector] execute RECEIVED global_prompt: {repr(global_prompt)}") log.info(f"[LTXDirector] execute RAW global_prompt: {repr(global_prompt)}")
# --- Reference option (set by the toolbar "Ref Option" dropdown, stored in timeline JSON) --- # --- Reference option (set by the toolbar "Ref Option" dropdown, stored in timeline JSON) ---
# One of: "Licon MSR (Prefix)", "OFF". # One of: "Licon MSR (Prefix)", "OFF".
@@ -2152,10 +2152,12 @@ class LTXDirector(io.ComfyNode):
neg_tokens = clip.tokenize("") neg_tokens = clip.tokenize("")
conditioning_neg = clip.encode_from_tokens_scheduled(neg_tokens) conditioning_neg = clip.encode_from_tokens_scheduled(neg_tokens)
# Fall back to the first local prompt as the global anchor if no global prompt was given. # Fall back to the first local prompt as the global anchor if no global prompt was given.
if not (global_prompt or "").strip() and local_prompts: if not (global_prompt or "").strip() and local_prompts:
global_prompt = local_prompts.split("|")[0].strip() global_prompt = local_prompts.split("|")[0].strip()
log.info(f"[LTXDirector] execute EFFECTIVE global_prompt: {repr(global_prompt)}")
_dev = comfy.model_management.intermediate_device() _dev = comfy.model_management.intermediate_device()
patched, conditioning, latent, guide_data = _build_reference_mode_outputs( patched, conditioning, latent, guide_data = _build_reference_mode_outputs(
reference_mode=reference_mode, reference_mode=reference_mode,