From f214af15fc0f9d1700e073b0257ca80989bf830e Mon Sep 17 00:00:00 2001 From: Bohdan Triapitsyn Date: Sun, 12 Jul 2026 00:47:22 +0300 Subject: [PATCH] fix(sidebar): avoid duplicate refresh loads --- packages/ui/src/components/layout/SidebarFilesTree.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/ui/src/components/layout/SidebarFilesTree.tsx b/packages/ui/src/components/layout/SidebarFilesTree.tsx index 62eb88c0..2ad972d2 100644 --- a/packages/ui/src/components/layout/SidebarFilesTree.tsx +++ b/packages/ui/src/components/layout/SidebarFilesTree.tsx @@ -644,10 +644,8 @@ export const SidebarFilesTree: React.FC = () => { const pathsToRefresh = [root, ...normalizedExpanded]; loadedDirsRef.current = new Set(loadedDirsRef.current); - inFlightDirsRef.current = new Set(inFlightDirsRef.current); for (const dirPath of pathsToRefresh) { loadedDirsRef.current.delete(dirPath); - inFlightDirsRef.current.delete(dirPath); } setLoadErrorsByDir((prev) => {