diff --git a/frontend/src/components/tasks/TaskDetailsPanel.tsx b/frontend/src/components/tasks/TaskDetailsPanel.tsx index 649f1846..7b147340 100644 --- a/frontend/src/components/tasks/TaskDetailsPanel.tsx +++ b/frontend/src/components/tasks/TaskDetailsPanel.tsx @@ -140,7 +140,9 @@ export function TaskDetailsPanel({ const [isDescriptionExpanded, setIsDescriptionExpanded] = useState(false); const [selectedExecutor, setSelectedExecutor] = useState("claude"); const [isStopping, setIsStopping] = useState(false); - const [expandedOutputs, setExpandedOutputs] = useState>(new Set()); + const [expandedOutputs, setExpandedOutputs] = useState>( + new Set() + ); const { config } = useConfig(); // Available executors @@ -159,10 +161,15 @@ export function TaskDetailsPanel({ // Group activities by execution_process_id and get the latest one for each const latestActivitiesByProcess = new Map(); - + attemptActivities.forEach((activity) => { - const existing = latestActivitiesByProcess.get(activity.execution_process_id); - if (!existing || new Date(activity.created_at) > new Date(existing.created_at)) { + const existing = latestActivitiesByProcess.get( + activity.execution_process_id + ); + if ( + !existing || + new Date(activity.created_at) > new Date(existing.created_at) + ) { latestActivitiesByProcess.set(activity.execution_process_id, activity); } }); @@ -380,7 +387,7 @@ export function TaskDetailsPanel({ }; const toggleOutputExpansion = (processId: string) => { - setExpandedOutputs(prev => { + setExpandedOutputs((prev) => { const newSet = new Set(prev); if (newSet.has(processId)) { newSet.delete(processId); @@ -612,8 +619,6 @@ export function TaskDetailsPanel({