From 5abeb7dd24b6bb15a9be47c3b00053b42ecff664 Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Fri, 16 Oct 2026 12:53:38 +0000 Subject: [PATCH] Preserve newly added prompt shots --- web/sequence_prompt_builder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/sequence_prompt_builder.js b/web/sequence_prompt_builder.js index 076eb3d..b63ed99 100644 --- a/web/sequence_prompt_builder.js +++ b/web/sequence_prompt_builder.js @@ -229,9 +229,9 @@ function configure(node) { if (redraw) render(); }; const rebuildPromptAfterStructureChange = (clip) => { - // Adding/removing a shot is the one operation allowed to add/remove - // marker lines. Preserve all existing shot text before formatting. - syncPrompt(clip, clip.prompt || promptFor(clip)); + // The caller syncs the current text before changing the slot list. + // Do not parse clip.prompt again here: after adding a shot it still + // has the old marker count, and reparsing would discard the new slot. clip.prompt = formatPromptFromSlots(clip); }; const render = () => {