mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 06:39:28 +08:00
Each chip renders its label and sends its prompt — the whole sentence the learner would have typed — so one click starts a real conversation instead of prefilling something they still have to finish. No handoff is involved: the home screen is already a draft session while it has no messages, so the chips go through the same send path as the composer, which both creates the session and starts it on the topic. The time-of-day greeting above the composer is untouched. Chips sit between the composer and the flex spacer, so they ride up with it on the empty screen and disappear the moment there is a first message. Generated text does NOT go through the i18n table — a generated label that happened to match a key would be silently replaced by an unrelated translation. Only the fixed starters are keys, and the component tracks which of the two it is holding. Nothing renders until the first response lands: chips appearing a beat late is calmer than fixed copy visibly swapping for generated copy. A failed read falls back to the fixed starters rather than an empty row, and a reroll that comes back empty keeps what is already on screen.