File tree Expand file tree Collapse file tree
ui/src/components/ToolExecution Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) }
You can’t perform that action at this time.
0 commit comments