mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 10:00:19 +08:00
The spinner (and a frozen tab) outlived the LLM stream by seconds and grew with conversation length: - DONE now carries the persisted user/assistant message ids so the frontend reconciles its optimistic ids in place (lib/turn-reconcile) instead of refetching, re-normalizing, and re-rendering the whole session after every turn. - The turn-event workspace mirror writes the whole batch in one append off the event loop instead of one synchronous open/write per event. - PocketBase gains a batch append_turn_events that uploads in the background; the events.jsonl rglob flush in update_turn_status is gone, and add_message returns the real record id. - The streaming autoscroll pin is mutation/load-driven instead of an unconditional 60fps scrollHeight read (forced layout) per frame.