From 28f58f48f858539668f00b42a0941daca3f90aa4 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 18 Feb 2026 22:55:11 -0700 Subject: [PATCH] Skip flush before chain triggers whose source was already ended --- cmd/qrunweb/static/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/qrunweb/static/index.html b/cmd/qrunweb/static/index.html index 56983aa..2202dc6 100644 --- a/cmd/qrunweb/static/index.html +++ b/cmd/qrunweb/static/index.html @@ -268,11 +268,11 @@ function render(data) { if (src.signal === 'START') return; const isCue = src.signal === 'GO'; - flush(); - if (isChain(trigger)) { const tid = blockTrack(src.block); const tgt = trigger.targets[0].block; + const sourceHandled = active.get(tid) !== src.block && !pendingEnds.has(src.block); + if (!sourceHandled) flush(); if (active.get(tid) === src.block || pendingEnds.has(src.block)) { pendingEnds.delete(src.block); const endCells = trackIds.map(t => @@ -300,6 +300,7 @@ function render(data) { return; } + flush(); emitTitles(); const rowClass = isCue ? 'cue-row' : 'sig-row';