feat(web): add file tree manual refresh + 5s polling + focus refetch

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
tao.chen
2026-07-03 16:57:20 +08:00
co-authored by Claude
parent 53fe249dd6
commit ac87454711
2 changed files with 32 additions and 7 deletions
+2
View File
@@ -100,6 +100,8 @@ export function useFileList(
queryKey: fileListQueryKey(workspaceId ?? "", queryPath),
queryFn: () => fetchFileList(workspaceId!, queryPath),
enabled: !!workspaceId && enabled,
refetchInterval: 5_000,
refetchOnWindowFocus: true,
});
}