mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 09:29:39 +08:00
Threads created before the attribution existed kept only the passage: selection threads store it in tutor_selected_text, newer side chats as a quote attachment. Match that passage against the parent transcript with the Markdown projection selection grounding uses, and record the source only when exactly one message contains it. The scan is recorded per thread and runs when the thread list is read, so it happens once; touch=false keeps the thread's place in the list.