From 999f3a94439976359cbce26b9836b45b9abe1f37 Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Fri, 30 Oct 2026 11:37:50 +0000 Subject: [PATCH] Refresh shot track after prompt paste --- js/sequence_prompt_builder.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/js/sequence_prompt_builder.js b/js/sequence_prompt_builder.js index fe89007..eac59b4 100644 --- a/js/sequence_prompt_builder.js +++ b/js/sequence_prompt_builder.js @@ -557,11 +557,17 @@ function configure(node) { // Let the browser insert the pasted text first, then parse its // shot markers and redraw the track without losing the paste. setTimeout(() => { - const changed = syncPrompt(clip, prompt.value); + syncPrompt(clip, prompt.value); promptText = prompt.value; clip.prompt = prompt.value; persistState(); - if (changed) render(); + // 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. + // The previous conditional left the shot track stale when + // syncPrompt returned false for plain or partially formatted + // pasted text. + render(); }, 0); }; prompt.onselect = rememberPromptSelection;