feat: Invalidate logs summary and enable refetch on mount for fresh processing tasks display

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-12-28 16:02:56 -08:00
parent 35904ba0c8
commit 3ec2d46051
2 changed files with 6 additions and 0 deletions

View file

@ -49,6 +49,10 @@ export const uploadDocumentMutationAtom = atomWithMutation((get) => {
onSuccess: () => {
toast.success("Files uploaded for processing");
// Invalidate logs summary to show new processing tasks immediately on documents page
queryClient.invalidateQueries({
queryKey: cacheKeys.logs.summary(searchSpaceId ?? undefined),
});
},
};
});