diff --git a/frontend/src/components/tasks/TaskDetailsPanel.tsx b/frontend/src/components/tasks/TaskDetailsPanel.tsx index 3f62cfda..e82df57b 100644 --- a/frontend/src/components/tasks/TaskDetailsPanel.tsx +++ b/frontend/src/components/tasks/TaskDetailsPanel.tsx @@ -235,12 +235,12 @@ export function TaskDetailsPanel({ } }, [task, isOpen]); - // Auto-scroll to bottom when activities change + // Auto-scroll to bottom when activities or execution processes change useEffect(() => { if (shouldAutoScroll && scrollContainerRef.current) { scrollContainerRef.current.scrollTop = scrollContainerRef.current.scrollHeight; } - }, [attemptActivities, shouldAutoScroll]); + }, [attemptActivities, executionProcesses, shouldAutoScroll]); // Handle scroll events to detect manual scrolling const handleScroll = useCallback(() => {