Files
TowstyandCursor 545a3d749b Stop a folder wipe from restoring the pre-wipe library catalog.
The in-memory catalog could outlive the write, so delete-all came back as thousands of empty tiles and a stale badge.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-24 12:01:25 -05:00

1.2 KiB

Tasks

Done

  1. Library ghost / delete hardening. removeStillFiles no longer throws, so a locked thumb cannot abort the catalog write. deleteStill, deleteStillFamily, and wipeFolderContents prune missing masters and write the catalog. Library pages and Studio 2 refetch after delete, clear slots that pointed at the deleted id, and select-all only selects rows already loaded so a later page cannot put a suppressed id back into the selection.

  2. LoRA folders. Engine matching prefers xaigen/<engine>/ and aigen/<engine>/. xaigen and the xiagen typo stay xAIGen-only. aigen/ stays visible on AIGen. Filename prefixes remain the fallback. Refresh with fresh=1 still live-scans Comfy, and the stack stores the Comfy-relative path.

  3. Library delete-all. A folder wipe leaves that folder empty in the catalog that is written, drops the owner's in-memory catalog cache, and the wipe route returns a library read taken after that drop. The client replaces its lists from that response, trusts a server image count of 0, and clears the stage still and photo slots that pointed at wiped ids.

Not in this pass

Klein, Krea, MOSS, MiniMax, and LTX graph changes. Coolify app targets. The studio-2 branch.