PROBLEM: Same question being asked twice instead of progressing
- Question 1 answered → AI responds → Question 1 asked again (not Question 2)
ROOT CAUSE: currentQuestionIndex not being incremented after answer
- askNextQuestion() was using same index repeatedly
SOLUTION:
- Added currentQuestionIndex++ before askNextQuestion() calls
- Fixed both success and fallback code paths
- Now properly progresses: Q1 → Answer → AI Response → Q2
FLOW NOW:
1) Fish live where? → 'in water' → AI validates → 2) Next question
NOT: 1) Fish live where? → 'in water' → AI validates → 1) Fish live where?