Skip to content

Commit 7735d7d

Browse files
committed
Fix 'retry' representation
1 parent e77f62c commit 7735d7d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ui/src/components/ToolExecution/ExecutionSummaryBar.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function ExecutionSummaryBarComponent({
3838
(sum, round) => sum + round.executions.filter((e) => e.status === "error").length,
3939
0
4040
);
41-
const retryCount = rounds.length > 1 ? rounds.length - 1 : 0;
41+
const retryCount = rounds.filter((r) => r.hasError).length;
4242
const totalDuration = rounds.reduce((sum, round) => sum + (round.totalDuration || 0), 0);
4343

4444
// Get unique tool names used
@@ -71,7 +71,10 @@ function ExecutionSummaryBarComponent({
7171
<>
7272
{totalExecutions} tool{totalExecutions !== 1 ? "s" : ""}
7373
{retryCount > 0 && (
74-
<span className="text-amber-800 dark:text-amber-400"> · {retryCount} retry</span>
74+
<span className="text-amber-800 dark:text-amber-400">
75+
{" "}
76+
· {retryCount} {retryCount === 1 ? "retry" : "retries"}
77+
</span>
7578
)}
7679
</>
7780
)}

0 commit comments

Comments
 (0)