fix: OCR Kombi upload race condition — openSession was resetting step to 0

openSession mapped dbStep=1 to uiStep=0 (upload), overriding handleNext's
advancement to step 1. Fix: sessions always exist post-upload, so always
skip past the upload step in openSession.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-03-26 17:10:04 +01:00
parent 85fe0a73d6
commit 3bb04b25ab
2 changed files with 2 additions and 3 deletions

View File

@@ -57,7 +57,6 @@ function OcrKombiContent() {
setSessionId(sid) setSessionId(sid)
loadSessions() loadSessions()
openSession(sid) openSession(sid)
handleNext()
}} }}
/> />
) )

View File

@@ -154,8 +154,8 @@ export function useKombiPipeline() {
uiStep = dbStepToKombiV2Ui(dbStep) uiStep = dbStepToKombiV2Ui(dbStep)
} }
// For sessions that already have an upload, skip the upload step // Sessions only exist after upload, so always skip the upload step
if (uiStep === 0 && dbStep >= 2) { if (uiStep === 0) {
uiStep = 1 uiStep = 1
} }