diff --git a/admin-lehrer/components/ocr-pipeline/StepWordRecognition.tsx b/admin-lehrer/components/ocr-pipeline/StepWordRecognition.tsx index 4999b23..0671a6b 100644 --- a/admin-lehrer/components/ocr-pipeline/StepWordRecognition.tsx +++ b/admin-lehrer/components/ocr-pipeline/StepWordRecognition.tsx @@ -72,24 +72,9 @@ export function StepWordRecognition({ sessionId, onNext, goToStep }: StepWordRec useEffect(() => { if (!sessionId) return - - const fetchSession = async () => { - try { - const res = await fetch(`${KLAUSUR_API}/api/v1/ocr-pipeline/sessions/${sessionId}`) - if (res.ok) { - const info = await res.json() - if (info.word_result) { - applyGridResult(info.word_result) - return - } - } - } catch (e) { - console.error('Failed to fetch session info:', e) - } - runAutoDetection() - } - - fetchSession() + // Always run fresh detection — word-lookup is fast (~0.03s) + // and avoids stale cached results from previous pipeline versions. + runAutoDetection() // eslint-disable-next-line react-hooks/exhaustive-deps }, [sessionId])