authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-03-21 17:58:27-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2026-03-21 18:03:28-07:00
log3ebe409aab2f4c6592a3fb0c70dbd28e975db51c
tree715d6332ed634093277a3856ebedb20322efc333
parent5b403d91b350d337f743d3a99ac0637fd3c12953
signature Signed by SSH key SHA256:xbd+BjjhyBfwk7GVoURf9Yx0gzDerHbvYv7SddNWmAs

fix(lib/log): fix progress lines appearing when no logs


1 files changed, 3 insertions(+), 4 deletions(-)

lib/progress.ts+3-4
......@@ -704,12 +704,11 @@ function renderChildren(state: ReadOnlyNode, now: number, depth: boolean[]) {
704704 truncated += 1;
705705 continue;
706706 }
707 const logLines = child?.logs
707 const logLines = child.logs
708708 .map((msg) => log.formatMessage(msg, true))
709709 .join("")
710 .split("\n")
711 .slice(-Math.min(3, maxHeight)) ?? [];
712 for (const line of logLines) {
710 .trim();
711 if (logLines) for (const line of logLines.split("\n").slice(-Math.min(3, maxHeight))) {
713712 item += left + (i === length - 1 && !truncated ? " " : box.line) + " " +
714713 ansi.style(ansi.fgBrightBlack, ">") +
715714 " " + line + "\n";