mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-05 11:39:34 +08:00
AssistantMessage derived its lang attribute from the session-wide language prop, so switching the reply language re-tagged every past reply (zh->ja gave old Chinese replies Japanese fonts). Derive the per-message language from the turn's request snapshot, recorded when the turn was sent, and fall back to the session language only for legacy messages without one. Add a behavior test covering two replies with different recorded languages and the legacy fallback.