Skip to content

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

fix: stabilize connect() deps so module picker socket stays open (P2-4)

unknown5cd638c2686c
diff --git a/web/app/(workspace)/learning/[bookId]/page.tsx b/web/app/(workspace)/learning/[bookId]/page.tsx
index d95b216df..08e2eaa24 100644
--- a/web/app/(workspace)/learning/[bookId]/page.tsx
+++ b/web/app/(workspace)/learning/[bookId]/page.tsx
@@ -130,7 +130,7 @@ export default function LearningBookPage() {
setConnecting(false);
}
};
- }, [params.bookId, t, modules.length, moduleSelected, currentModuleId]);
+ }, [params.bookId, t]);
const handleStreamEvent = (evt: StreamEvent) => {
// Capture turn_id from any event that carries it