Files
DeepTutor/tests/knowledge
RRFZ 0c8593bf00 fix(knowledge): stop Windows readers from wiping kb_config.json
On Windows, file_lock_shared took msvcrt LK_NBLCK, which is an
exclusive, mandatory byte-range lock (msvcrt has no shared lock). A
reader that overlapped another reader failed with PermissionError,
_read_and_reconcile_config mapped that to an empty catalog, and the next
update_kb_status auto-registered its KB into the empty catalog and saved
it, dropping every other knowledge base's entry from kb_config.json.

Writers already replace the file atomically, so readers need no lock:
take none on Windows. POSIX keeps its LOCK_SH.
2026-10-31 21:22:25 -04:00
..
2026-08-19 17:34:52 +08:00
2026-09-21 02:30:40 +08:00