From 4200d069800ee8bb1e2dcbfab2c9aec8c1990c91 Mon Sep 17 00:00:00 2001 From: Louis Knight-Webb Date: Tue, 24 Jun 2025 10:32:30 +0100 Subject: [PATCH] Task attempt 7f50b862-042d-4d26-944c-0b2e318a21f4 - Final changes --- frontend/src/components/tasks/TaskDetailsPanel.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(() => {