- Fix pop(0) crash on empty append queue - Cap page cache to 10 pages (pagination mode only) - Bounds check before data[0] in gelbooru/moebooru get_post - Move json import to top level in db.py - Remove unused imports (Slot, contextmanager) - Safe dict access in _row_to_bookmark - Remove redundant datetime import in save_library_meta - Add threading import for future DB locking