fix(coding-agent): improved progress rendering logic

- Prevented rendering an empty progress section.
- Ensured progress displays for initial states without results.
This commit is contained in:
can1357
2026-02-22 15:23:07 +01:00
parent 8231ec3a7d
commit fc8d527d0a
+2 -1
View File
@@ -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));