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:
Towsty
2026-10-24 12:01:25 -05:00
co-authored by Cursor
parent 39aa4b65d0
commit 545a3d749b
12 changed files with 393 additions and 131 deletions
+2
View File
@@ -6,6 +6,8 @@
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.