Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 28, 2025

Problem

When users answer quiz questions incorrectly, the current behavior immediately presents:

  1. The same question again for retry
  2. A series of related questions consecutively after getting it correct

This makes the answers too obvious since related questions appear back-to-back, reducing the educational effectiveness.

Solution

Implemented a 5-minute time-based debounce for retry items that spreads out related questions while maintaining their priority:

Before:

❌ Question: What does 好 mean? → Wrong answer
⚡ IMMEDIATE: Same question again → Correct answer  
⚡ IMMEDIATE: Related question about 女 → Too obvious
⚡ IMMEDIATE: Related question about 子 → Too obvious

After:

❌ Question: What does 好 mean? → Wrong answer
⏱️ 5-MINUTE WAIT: Other questions appear first
✅ AFTER DELAY: Question about 好 returns (still prioritized)
📚 VARIED TIMING: Related questions spread out naturally

Technical Changes

  • Added skillRetryDebounce constant: 5-minute delay before retry items become available
  • Modified skillReviewQueue logic: Skills with Rating.Again are temporarily placed in the due queue with debounce end time, then moved to retry queue once the debounce period expires
  • Maintained prioritization: Retry items still get highest priority once they become available again

Testing

  • ✅ Added comprehensive test coverage for debounce behavior
  • ✅ Updated existing retry logic tests to work with new timing requirements
  • ✅ All 58 tests passing across skill review system
  • ✅ Verified both scenarios: within debounce period and after debounce expiry

The implementation successfully prevents consecutive related questions while preserving the educational value of prioritizing incorrect answers for review.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Copilot AI changed the title [WIP] In the quiz when you answer a question incorrectly, you're immediately given the same question again to re-answer, and after you get it correct you're then given a series of questions related to the skills that you got incorrect. This is good, but it's... Add time-based debounce for quiz retry items to prevent consecutive related questions Aug 28, 2025
Copilot AI requested a review from bradleyayers August 28, 2025 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants