mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 06:09:33 +08:00
The knowledge source picker fired all six source-library requests inside one Promise.all and only rendered after every kind settled. A large question bank (tens of thousands of practice entries accumulated server-side) kept the whole panel on a spinner, so a ready knowledge base could not be selected even after its own request had returned. Land each kind in its own slice as its request settles, and gate each consumer on the active kind's readiness instead of the aggregate. A ready KB is now selectable while the question bank is still loading or has failed; per-kind error alerts no longer paint a failure on a ready tab. The aggregate loading flag still clears once everything settles. Refs #2641