mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 03:39:27 +08:00
* fix(codex): log a warning when token revocation fails during logout Logout previously swallowed revocation failures silently, leaving the remote token possibly valid with no operator trace. Log only the error kind and HTTP status (never credential material) and keep clearing the local credentials as before. * fix(llm): warn when CodeBuddy tool-call interrupt or drain fails A silent except-pass after receiving tool_calls let the SDK keep generating in the background when interrupt() failed, quietly draining quota. Log a warning (exception type + short reason) for interrupt and drain failures; return value semantics unchanged. * fix(memory): log corrupt snapshot files instead of skipping silently read_notebook_entities / read_cowriter_entities / read_book_entities swallowed (OSError, json.JSONDecodeError) with a bare continue, so a corrupt notebook file or manifest silently dropped content from the memory snapshot. Each skip now logs a warning with the file path and reason (no file content); snapshot results are otherwise unchanged. * fix(notebook): log unreadable files instead of skipping them silently during index rebuild * fix(question): log failed error-event delivery in mimic websocket The mimic generation error handler swallowed secondary failures of the error send_json with a bare 'except Exception: pass', so a delivery failure left the frontend without any reason and nothing in the logs. Split the handler: closed/disconnecting clients (RuntimeError, WebSocketDisconnect) stay debug-level, any other send failure is logged as a warning with traceback. Cleanup paths keep their best-effort narrow handling. Focused tests cover both branches. * 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> Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>