Files
DeepTutor/web/lib
Bingxi Zhao (Frank) 5d315a271d fix(quiz): scope streaming quiz cards to their turn (#677)
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
2026-07-24 17:14:41 +08:00
..
2026-06-17 10:50:44 +08:00
2026-07-19 16:56:34 +08:00
2026-07-24 03:06:58 +08:00
2026-04-23 19:29:16 +08:00
2026-05-02 20:16:07 +08:00
2026-05-01 13:51:45 +08:00
2026-07-24 03:06:58 +08:00
2026-06-13 21:10:57 +08:00
2026-05-01 01:39:08 +08:00
2026-01-23 01:42:25 +08:00
2026-01-07 10:53:01 +08:00
2026-07-19 16:56:34 +08:00
2026-03-13 01:47:38 +08:00
2026-06-17 00:56:27 +08:00
2026-07-09 23:23:27 +08:00
2026-06-11 20:03:34 +08:00
2026-06-11 20:03:34 +08:00
2026-06-17 00:56:27 +08:00
2026-04-30 23:41:58 +08:00
2026-06-18 00:22:48 +08:00
2026-06-18 00:22:48 +08:00
2026-06-11 20:03:34 +08:00
2026-04-23 19:29:16 +08:00
2026-06-27 18:27:16 +08:00
2026-04-23 19:29:16 +08:00
2026-05-03 16:35:52 +08:00
2026-06-18 00:22:48 +08:00
2026-06-17 00:56:27 +08:00
2026-06-11 20:03:34 +08:00
2026-04-23 19:29:16 +08:00
2026-06-11 20:03:34 +08:00
2026-06-11 20:03:34 +08:00
2026-05-12 02:20:30 +08:00