Muyue de4600b4ce Fix critical bugs: document duplication, stop button, and session discovery
Backend fixes:
- Improve AI prompt with CRITICAL RULES emphasizing single section only
- Add examples of CORRECT vs INCORRECT responses
- Fix extractSection() to validate extracted content
- Validate sections are < 5KB and start with markdown headers
- Return error indicator for invalid section formats
- This prevents IAs from returning entire document

Frontend fixes:
- Fix stop button: call ws.disconnect() to close WebSocket immediately
- Stop processing WebSocket messages when isStopping is true
- Clear messageInterval when stopping
- Add archive sessions section on home page for easy access
- Display all sessions in a searchable grid format
- Add session status indicators and date
- Scrollable grid for browsing all sessions
- Integrated with existing search functionality

User experience improvements:
- Sessions now accessible both at top (Quick Access) and bottom (Archive)
- Unified search works across all filtering
- Stop button now truly stops the session
- Better validation prevents document duplication bug
2025-10-19 16:11:13 +02:00
..