diff --git a/src/app/(admin)/admin/rounds/[id]/assignments/page.tsx b/src/app/(admin)/admin/rounds/[id]/assignments/page.tsx index c8b4794..97b543e 100644 --- a/src/app/(admin)/admin/rounds/[id]/assignments/page.tsx +++ b/src/app/(admin)/admin/rounds/[id]/assignments/page.tsx @@ -89,10 +89,16 @@ function AssignmentManagementContent({ roundId }: { roundId: string }) { { enabled: !!round && !useAI } ) - // AI-powered suggestions + // AI-powered suggestions (expensive - disable auto refetch) const { data: aiSuggestionsRaw, isLoading: loadingAI, refetch: refetchAI } = trpc.assignment.getAISuggestions.useQuery( { roundId, useAI: true }, - { enabled: !!round && useAI } + { + enabled: !!round && useAI, + staleTime: Infinity, // Never consider stale (only refetch manually) + refetchOnWindowFocus: false, + refetchOnReconnect: false, + refetchOnMount: false, + } ) // Normalize AI suggestions to match algorithmic format