From 79f97f4019dcdae7feb8069f99bf33d701006e64 Mon Sep 17 00:00:00 2001 From: digital-garbage <133010426+digital-garbage@users.noreply.github.com> Date: Thu, 4 Jun 2026 10:12:12 +0300 Subject: [PATCH] Fix: append embed_guidance_source last to not break saved workflows Inserting the combo mid-list shifted every saved widgets_values slot in existing Scene Chain Sampler nodes, so a leftover numeric value validated against the combo ("0 not in ['relative','absolute']"). Moved it to the end of optional inputs; old workflows keep their widget positions and fall back to the 'relative' default. Co-Authored-By: Claude Opus 4.8 --- samplers.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/samplers.py b/samplers.py index 3e2057cc..b6e77f6e 100644 --- a/samplers.py +++ b/samplers.py @@ -1694,10 +1694,6 @@ class FunPackLTXAVSceneChainSampler: "default": 0.02, "min": 0.005, "max": 0.1, "step": 0.005, "tooltip": "Per-step nudge strength toward the liked conditioning direction. Keep small — the direction is applied at every step so it compounds. 0.01-0.03 is typical.", }), - "embed_guidance_source": (["relative", "absolute"], { - "default": "relative", - "tooltip": "Which learned direction embed_guidance steers toward. Relative: this prompt's liked direction (needs refinement_key_input). Absolute: the global, prompt-agnostic taste direction the Refiner accumulates across all prompts — works with no key.", - }), "transition_duration": ("INT", { "default": 16, "min": 0, "max": 128, "step": 2, "tooltip": "Extra pixel frames of fade beyond the blend zone on each side of a scene boundary. 0 = disable all transition effects.", @@ -1714,6 +1710,12 @@ class FunPackLTXAVSceneChainSampler: "forceInput": True, "tooltip": "Connect to the same refinement key as your V2 Refiner. When wired, the sampler writes carry_i2v_guides, frame_overlap, and scene count into the refinement state so the Refiner can reason about what changed between rated runs.", }), + # Appended last on purpose: inserting a widget earlier shifts every saved + # widgets_values slot in existing workflows. New widgets go at the end. + "embed_guidance_source": (["relative", "absolute"], { + "default": "relative", + "tooltip": "Which learned direction embed_guidance steers toward. Relative: this prompt's liked direction (needs refinement_key_input). Absolute: the global, prompt-agnostic taste direction the Refiner accumulates across all prompts — works with no key.", + }), }, "hidden": { "unique_id": "UNIQUE_ID",