From c299955a722d9259ee5f22a8c6b1148dd892393f Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Fri, 30 Oct 2026 11:56:22 +0000 Subject: [PATCH] Commit pasted sequence timeline state --- js/sequence_prompt_builder.js | 5 ++++- tests/test_dumas_h3_nodes.py | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/js/sequence_prompt_builder.js b/js/sequence_prompt_builder.js index eac59b4..94c4078 100644 --- a/js/sequence_prompt_builder.js +++ b/js/sequence_prompt_builder.js @@ -560,7 +560,10 @@ function configure(node) { syncPrompt(clip, prompt.value); promptText = prompt.value; clip.prompt = prompt.value; - persistState(); + // Notify ComfyUI as well as updating the hidden widget value. + // Without the callback, the editor redraws locally but queueing + // can still send the previous one-shot timeline_json value. + setState(); // A paste can change the text of an existing shot without // adding/removing shot markers. Redraw in both cases so the // timeline labels and shot chips reflect the pasted text. diff --git a/tests/test_dumas_h3_nodes.py b/tests/test_dumas_h3_nodes.py index 06c137a..32f384d 100644 --- a/tests/test_dumas_h3_nodes.py +++ b/tests/test_dumas_h3_nodes.py @@ -123,6 +123,8 @@ class H3NodeTests(unittest.TestCase): self.assertEqual(result[3].selectors, ("1,2", "1,2") + ("off",) * 7) self.assertIn("[0-4s]", result[0]) self.assertIn("[4-8s]", result[0]) + self.assertIn("Walk.", result[0]) + self.assertIn("Turn.", result[0]) finally: sys.modules.pop(reference_module.__name__, None)