mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 10:10:39 +08:00
Clicking "start review" opened a session whose first reply was a card offering to start a session on that same topic. Clicking it opened another, which offered the card again — one conversation per click, all on one topic, some bound to no topic at all (#1412). Those conversations begin with nothing to quiz against, so they answer in prose; that is the other half of the same report (#1411). The generator is a premise the tool states as fact. `mastery_new_session` stays mounted inside a mastery session on purpose — sending the learner to a *different* topic mid-course is a real thing to want — and its hand-off instruction tells the model not to tutor the topic here, because "the mastery tutor picks up on the other side". Inside that topic's own session there is no other side, and nothing in the tool's result said so, so the model kept proposing the trip it was already on. The turn knows which topic it is tutoring; the tool did not. Binding it the way the mastery tools already get `_mastery_path_id` lets the tool answer for itself: a hand-off aimed at the topic this conversation *is* gets refused, with the instruction to teach the lesson here. A hand-off to any other topic is untouched, and so is `mastery_open_session` — returning to an older conversation on the same topic is not a loop. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>