@@ -29,18 +29,16 @@ const createProgressSignature = (progress: AgentTaskProgress): string =>
2929 ] . join ( "|" ) ;
3030
3131const formatProgressLog = ( progress : AgentTaskProgress ) : string => {
32- const statusLabel =
33- progress . status ?. replace ( / _ / g, " " ) ?? "in progress" ;
32+ const statusLabel = progress . status ?. replace ( / _ / g, " " ) ?? "in progress" ;
3433 const completed =
35- typeof progress . completed_steps === "number"
36- ? progress . completed_steps
37- : 0 ;
34+ typeof progress . completed_steps === "number" ? progress . completed_steps : 0 ;
3835 const total =
3936 typeof progress . total_steps === "number" && progress . total_steps >= 0
4037 ? progress . total_steps
4138 : "?" ;
4239 const step =
43- typeof progress . current_step === "string" && progress . current_step . length > 0
40+ typeof progress . current_step === "string" &&
41+ progress . current_step . length > 0
4442 ? progress . current_step
4543 : "-" ;
4644 const percentage =
@@ -162,7 +160,9 @@ export const useTaskExecutionStore = create<TaskExecutionStore>()(
162160 setProgress : ( taskId : string , progress : AgentTaskProgress | null ) => {
163161 get ( ) . updateTaskState ( taskId , {
164162 progress,
165- progressSignature : progress ? createProgressSignature ( progress ) : null ,
163+ progressSignature : progress
164+ ? createProgressSignature ( progress )
165+ : null ,
166166 } ) ;
167167 } ,
168168
@@ -209,7 +209,9 @@ export const useTaskExecutionStore = create<TaskExecutionStore>()(
209209 }
210210 break ;
211211 case "progress" : {
212- const rawProgress = ev . progress as AgentTaskProgress | undefined ;
212+ const rawProgress = ev . progress as
213+ | AgentTaskProgress
214+ | undefined ;
213215 if (
214216 rawProgress &&
215217 typeof rawProgress === "object" &&
@@ -393,8 +395,7 @@ export const useTaskExecutionStore = create<TaskExecutionStore>()(
393395 const currentTask =
394396 useTaskStore
395397 . getState ( )
396- . tasks . find ( ( candidate ) => candidate . id === taskId ) ??
397- fallbackTask ;
398+ . tasks . find ( ( candidate ) => candidate . id === taskId ) ?? fallbackTask ;
398399
399400 if ( ! currentTask . workflow ) {
400401 store . addLog (
0 commit comments