From fc8d527d0a1cef6da7bf2e99d0de044d3ab3776a Mon Sep 17 00:00:00 2001 From: can1357 Date: Sun, 22 Feb 2026 13:09:44 +0100 Subject: [PATCH] fix(coding-agent): improved progress rendering logic - Prevented rendering an empty progress section. - Ensured progress displays for initial states without results. --- packages/coding-agent/src/task/render.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/coding-agent/src/task/render.ts b/packages/coding-agent/src/task/render.ts index 7841f2548..e1c9f9f12 100644 --- a/packages/coding-agent/src/task/render.ts +++ b/packages/coding-agent/src/task/render.ts @@ -888,7 +888,8 @@ export function renderResult( const lines: string[] = []; - if (isPartial && details.progress) { + const shouldRenderProgress = Boolean(details.progress && details.progress.length > 0) && (isPartial || details.results.length === 0); + if (shouldRenderProgress && details.progress) { details.progress.forEach((progress, i) => { const isLast = i === details.progress!.length - 1; lines.push(...renderAgentProgress(progress, isLast, expanded, theme, spinnerFrame));