mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 18:11:11 +08:00
Two quizzes in one chat session share positional question ids (q_1..q_N), so answer state is turn-scoped (#487). But during streaming generation the QuizViewer received turnId=null — the result event only lands at turn end — which bypassed that scoping: the card hydrated the previous quiz's answers through the legacy cross-turn lookup, showed them as already answered, and auto-reported them back with an empty turn_id while questions were still being generated. - derive the quiz turn id from the streamed events themselves (extractQuizTurnId); the result event stays authoritative - QuizViewer: without a turn identity the card is local-only — no notebook hydration, no auto-report, no upserts - sqlite store: a lookup without turn_id now only matches the legacy namespace (turn_id='') instead of falling back to other turns' rows