Files
DeepTutor/tests/knowledge
Mohammad Hijjawi b273dc584a fix: retry transient locks and decode UTF-8 when reading the indexing journal
load_run() read .indexing-run.json and .indexing-cancel.json with a bare
Path.read_text(), so a brief Windows sharing lock (antivirus, indexer, a
concurrent reader) failed the safety check at once with "Indexing journal
is unreadable", and the locale default encoding garbled or rejected the
UTF-8 that atomic_write_json writes (a document named "ÁLGEBRA.pdf" makes
every check fail under cp1252).

Add file_io.read_text(), which reads UTF-8 and shares the bounded
PermissionError backoff already used by _atomic_replace(). Missing files,
corrupt JSON and locks that outlast the backoff keep their existing
behaviour.

Closes #1912
2026-10-11 01:23:40 +01:00
..
2026-08-19 17:34:52 +08:00
2026-09-21 02:30:40 +08:00