root 1e8149fdcc Fix repeated 'don't know' detection and infinite questioning loop
PROBLEM SOLVED:
- AI was stuck in infinite questioning loop when child repeatedly said 'I don't know'
- Both chat and step-by-step modes weren't properly detecting repeated frustration
- System should switch to explanations after 2+ 'don't know' responses

FIXES IMPLEMENTED:
- Enhanced conversation history tracking with better selectors
- Added more comprehensive 'don't know' phrase detection (German variations)
- Improved server-side logic to detect repeated scenarios
- Added specific context handling for repeated_dont_know scenarios
- Better debugging logs to track conversation patterns
- Fixed variable name conflicts in server.js

RESULT:
- Children now get helpful explanations instead of endless questions
- System respects when child needs direct help vs. discovery guidance
- More natural conversation flow that adapts to child's needs
- Both German and English patterns properly detected
2025-06-30 16:08:37 +02:00
2025-06-29 12:35:20 +02:00
Description
No description provided
58 MiB
Languages
JavaScript 61.5%
TypeScript 14.9%
CSS 12.4%
HTML 7.7%
Shell 2.8%
Other 0.7%