diff --git a/frontend/src/pages/project-tasks.tsx b/frontend/src/pages/project-tasks.tsx index 564c08d9..ad3d5cdd 100644 --- a/frontend/src/pages/project-tasks.tsx +++ b/frontend/src/pages/project-tasks.tsx @@ -98,6 +98,10 @@ export function ProjectTasks() { }); setIsPanelOpen(true); } + } else { + // Close panel when no taskId in URL + setIsPanelOpen(false); + setSelectedTask(null); } }, [taskId, tasks]);