From 2c02c8ac18aec13cd70762d18bdd31b39127235c Mon Sep 17 00:00:00 2001 From: yyh Date: Mon, 26 Jan 2026 16:53:08 +0800 Subject: [PATCH] fix(sandbox): fetch artifacts on mount for blue dot indicator Remove enabled condition so data is fetched when component mounts, allowing blue dot to show when files exist even before expanding. TanStack Query handles request deduplication automatically. --- .../components/workflow/skill/file-tree/artifacts-section.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/app/components/workflow/skill/file-tree/artifacts-section.tsx b/web/app/components/workflow/skill/file-tree/artifacts-section.tsx index 555febac1d..d58abc5208 100644 --- a/web/app/components/workflow/skill/file-tree/artifacts-section.tsx +++ b/web/app/components/workflow/skill/file-tree/artifacts-section.tsx @@ -23,9 +23,7 @@ const ArtifactsSection: FC = ({ className }) => { const [isExpanded, setIsExpanded] = useState(false) - const { data: treeData, hasFiles, isLoading } = useSandboxFilesTree(sandboxId, { - enabled: isExpanded, - }) + const { data: treeData, hasFiles, isLoading } = useSandboxFilesTree(sandboxId) const downloadMutation = useDownloadSandboxFile(sandboxId)