mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 07:39:53 +08:00
* fix(embedding): log progress callback failures instead of swallowing them embed/embed_contents wrapped progress_callback in 'except Exception: pass'. A failing progress sink vanished without a trace while indexing continued, making KB index progress untrustworthy (stalled reads with no diagnostics). Keep the callback best-effort (embedding runs must not fail on UI feedback) but log a warning with batch context and the underlying exception. * fix: log image progress callback failures instead of swallowing them _describe_one wrapped image_progress_callback in 'except Exception: pass', so a broken progress sink silently dropped indexing progress updates with no trace. Log a warning with completed/total context and keep the batch running; add a focused test covering visible failure logging and uninterrupted loading. * fix(lightrag): warn when workspace meta.json exists but is unusable workspace_for() swallowed OSError/ValueError when reading meta.json and silently fell back to the path-hash workspace name, which can open an empty store with no log trail. Missing files stay silent; unreadable or corrupt meta now logs a warning with the path and exception type while keeping the same fallback behavior. * test(codebuddy): make credential fixture expiry relative to now test_load_credentials_parses_session wrote a hard-coded expiresAt of 1791055241000 (2026-10-03 15:40:41 UTC) and asserted is_expired() is False. Once that instant passed the assertion flipped, so the test now fails on every Python version for every branch. Derive expiresAt / refreshExpiresAt from time.time() so the fixture always describes a live session, and assert against the value written. --------- Co-authored-by: XZH <cto@xzh.ai>