mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 10:50:37 +08:00
Extends the #619 follow-up to the remaining plain truncate-writes of metadata.json (add_documents, initializer, reindex task) and replaces progress_tracker's hand-rolled fixed-name temp+replace with the shared atomic_write_json. _mark_kb_queued_for_processing gains a status kwarg so the reindex endpoint's pre-dispatch write uses the same seam as upload/sync instead of an 11-line inline block. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>