mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 10:00:19 +08:00
After each reply the chat composer shows a predicted next line as its placeholder, and Tab accepts it. When the assistant has just asked a question, such as a quiz in chat, the likeliest next line is the answer, so the hint gives it away. There was no way to turn it off. Add an `ask_hint_enabled` switch to the per-user starter settings (Settings -> Conversation -> Composer), on by default. When it is off, `get_ask_hint` returns an empty hint before reading the session or the cache, so no LLM call is made and no line cached while it was on leaks through. A PUT that omits the field keeps the stored value, so an older client or a settings draft saved before this change cannot turn the hint back on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Generated frontend contracts
The backend owns the wire contract. Do not edit files under schema/ or
generated/ by hand.
From the repository root, refresh both layers after a backend contract change:
python scripts/export_frontend_contracts.py
cd web && npm run contracts:generate
CI runs python scripts/export_frontend_contracts.py --check in backend contract
tests and npm run contracts:check before frontend typechecking. A drift failure
means the committed artifacts must be regenerated with the commands above.