From 71712472f5f19b5b42970c9c094386bfe377274e Mon Sep 17 00:00:00 2001 From: ozbayb <17261091+ozbayb@users.noreply.github.com> Date: Sun, 5 Apr 2026 14:32:06 -0600 Subject: [PATCH] LTX2 context windows - Ensure that inplace latent images are retained properly with the retain index list --- comfy/context_windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/context_windows.py b/comfy/context_windows.py index 10987e73e..a4c49bbee 100644 --- a/comfy/context_windows.py +++ b/comfy/context_windows.py @@ -448,7 +448,7 @@ class IndexListContextHandler(ContextHandlerABC): mod_windows.append(modality_windows[mod_idx]) # Slice video, then select overlapping guide frames - sliced_video = mod_windows[0].get_tensor(video_primary) + sliced_video = mod_windows[0].get_tensor(video_primary, retain_index_list=self.cond_retain_index_list) num_guide_in_window = 0 if guide_suffix is not None and guide_entries is not None: overlap = _compute_guide_overlap(guide_entries, window.index_list)