readest/apps
Huang Xin 6db7eddcb9
fix(cache): offer a deleted book's file right after the delete
Manage Cache holds back any Books/<hash>/ dir written in the last hour,
since an import may still own it before its library row is saved. A
book downloaded and then deleted on another device within the hour hit
the same rule, so the scan found only the books downloaded earlier and
the rest appeared on a later scan (2 orphaned files, then 42). A dir
whose book was deleted after the dir's last write has nothing imported
into it since, so it now counts as settled; a dir written after the
delete (a re-import in flight) is still held back.

Verified:
- New cache.test.ts case "reclaims a book deleted after its dir was
  last written, however recent" fails on main ("expected [] to deeply
  equal [ { base: 'Books', ... } ]") and passes with the fix; a second
  case keeps a dir written after the delete held back.
- pnpm test (1190 files) and pnpm lint pass.
- Not run: Manage Cache on an iOS device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 02:21:22 +08:00
..
readest-app fix(cache): offer a deleted book's file right after the delete 2026-10-25 02:21:22 +08:00
readest-calibre-plugin feat(calibre): add multi-language support (#6768) 2026-10-13 18:46:06 +02:00
readest-crosspoint-plugin fix(crosspoint): link an optimized copy to the book being read when duplicates tie (#6614) 2026-10-03 21:28:48 +02:00
readest.koplugin fix(koplugin): connect over IPv4 in forked sync workers on macOS (#7021) 2026-10-23 14:25:13 +02:00