git-ents.gitmain
⌘K
foforge
commit 334601b
fix: keep last real output when a live poll briefly decodes empty

A momentary empty snapshot mid-run replaced the terminal with the Waiting for output placeholder even after real output had already appeared, a visible regression. Once a poll has shown real output, ignore a later placeholder-only fragment instead of swapping it in.

Assisted-by: Claude:claude-sonnet-5

Joseph D. Carpinelli · 1 month ago

Reviews

No reviews of this commit yet — record a verdict below.

Start a review

verdict

crates/git-ents-server/src/web/live.js @@ -19,7 +19,9 @@ ); return; } - if (html !== lastHtml) { + const isPlaceholder = html.includes('terminal-empty'); + const hadRealOutput = !lastHtml.includes('terminal-empty'); + if (html !== lastHtml && !(isPlaceholder && hadRealOutput)) { lastHtml = html; container.innerHTML = html; }