Card context

This commit is contained in:
2026-05-02 18:33:38 +02:00
parent 23e6125fb3
commit 7dccc51ce1
6 changed files with 121 additions and 12 deletions

View File

@@ -617,6 +617,8 @@ function TutorApp({ currentUser, onLogout }) {
lesson_title: activeLessonTitle,
asset_title: activeAsset?.title || null,
section_title: activeSection?.title || activeAsset?.title || null,
section_context_key: activeSection?.context_key || null,
section_context: activeSection?.context || null,
step_percent: lessonStepPercent,
}
}
@@ -740,6 +742,9 @@ function TutorApp({ currentUser, onLogout }) {
})
appendMessage('assistant', data.reply)
setCurrentInstruction(data.reply)
if (data.advance_lesson_step) {
goToNextLessonStep()
}
speak(data.reply)
}