fix: keep last real output when a live poll briefly decodes empty
commit
334601bfix: 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
Reviews
No reviews of this commit yet — record a verdict below.
Start a review
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;
}