Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix: subscribe to turn_id instead of session_id after active-turn check (P2-6)

unknown3f12e43272c4
diff --git a/web/app/(workspace)/learning/[bookId]/page.tsx b/web/app/(workspace)/learning/[bookId]/page.tsx
index 7782d9bc0..5fc2496b8 100644
--- a/web/app/(workspace)/learning/[bookId]/page.tsx
+++ b/web/app/(workspace)/learning/[bookId]/page.tsx
@@ -168,8 +168,8 @@ export default function LearningBookPage() {
// Resume existing turn
currentTurnRef.current = info.turn_id;
wsRef.current?.send(JSON.stringify({
- type: "subscribe_session",
- session_id: params.bookId,
+ type: "subscribe_turn",
+ turn_id: info.turn_id,
}));
setWaitingForLLM(true);
} else {