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>
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
## 2026-10-24
|
||||
|
||||
Delete-all was still serving a pre-wipe catalog. The folder wipe now strips that folder's stills, clips, and tracks, filters again if any rows remain, and deletes the owner's in-memory catalog cache after the write. The wipe route reads the library only after that drop. Prune still only removes stills. Studio 2 and the library page replace local rows from the wipe response instead of merging, keep wiped ids out of later pages, and treat a folder image count of 0 as empty. The stage drops a selected still that is no longer in the library.
|
||||
|
||||
Library deletes now commit the catalog when file removal fails, then prune stills whose masters are missing. Studio 2 and the library page drop the deleted id from the selected still, photo slots, and the in-memory list, and they refetch `/api/library` instead of trusting that list. Select-all uses the rows already loaded. It does not start a second full-catalog fetch that can merge a suppressed id back in from a later page.
|
||||
|
||||
LoRA engine matching prefers the folder under `xaigen/` or `aigen/`. The task text said an `aigen` path segment marks a LoRA xAIGen-only. That conflicts with the check that `aigen/flux/bar.safetensors` is visible on AIGen. The checks win: `xaigen/` and the `xiagen` typo are xAIGen-only; `aigen/` is visible on AIGen. Old `krea-something.safetensors` names still match Krea.
|
||||
|
||||
Reference in New Issue
Block a user