diff --git a/frontend/src/components/tasks/TaskDetailsDialog.tsx b/frontend/src/components/tasks/TaskDetailsDialog.tsx index 2221f46c..ebae4add 100644 --- a/frontend/src/components/tasks/TaskDetailsDialog.tsx +++ b/frontend/src/components/tasks/TaskDetailsDialog.tsx @@ -90,6 +90,11 @@ export function TaskDetailsDialog({ useEffect(() => { if (isOpen && task) { + // Reset attempt-related state when switching tasks + setSelectedAttempt(null); + setAttemptActivities([]); + setActivitiesLoading(false); + fetchTaskAttempts(task.id); // Initialize edit state with current task values setEditedTitle(task.title);