diff --git a/packages/coding-agent/src/task/render.ts b/packages/coding-agent/src/task/render.ts index 24e7a4562..2725f868f 100644 --- a/packages/coding-agent/src/task/render.ts +++ b/packages/coding-agent/src/task/render.ts @@ -641,9 +641,7 @@ function renderAgentProgress( } } else { const glyph = - progress.status === "completed" - ? theme.styledSymbol("status.done", "accent") - : theme.fg(iconColor, icon); + progress.status === "completed" ? theme.styledSymbol("status.done", "accent") : theme.fg(iconColor, icon); statusLine = `${indent}${glyph} ${theme.fg("accent", titlePart)}`; } diff --git a/packages/coding-agent/test/task/task-progress-render.test.ts b/packages/coding-agent/test/task/task-progress-render.test.ts index d3825fc54..f8df9b809 100644 --- a/packages/coding-agent/test/task/task-progress-render.test.ts +++ b/packages/coding-agent/test/task/task-progress-render.test.ts @@ -139,12 +139,10 @@ describe("task result detail-less state", () => { it("renders a detail-less success with the accent bullet, not an error glyph", async () => { const theme = (await getThemeByName("dark"))!; const options: RenderResultOptions = { expanded: false, isPartial: false }; - const component = taskToolRenderer.renderResult( - { content: [{ type: "text", text: "done" }] }, - options, - theme, - { agent: "explore", tasks: [] }, - ); + const component = taskToolRenderer.renderResult({ content: [{ type: "text", text: "done" }] }, options, theme, { + agent: "explore", + tasks: [], + }); const stripped = Bun.stripANSI(component.render(120).join("\n")); expect(stripped).toContain(theme.status.done);