Card context
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user