mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 08:59:52 +08:00
Backend poll (fetchPageStatuses) returns current_index=0 from start_learning, which mergePageState unconditionally applied — causing the UI to snap back to page 1 whenever the user clicked another tab. Only accept server's current_index when user hasn't navigated yet (current_index < 0), preserving tab selection during polling. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>