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

2.1 KiB

Progress

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.

Nitro routeRules headers were moved to server/middleware/cache-headers.ts so the Nuxt 3 route-rules advisory stays in the accepted case: this app does not use routeRules for redirects, headers, proxy, or auth. Auth remains the case-sensitive middleware allowlist.

seroval is pinned to 1.7.2 and serialize-javascript to 7.1.4. Node stays on 22.23.4, the newest 22.x release. No simple-git override.

The notes server rejected the configured credential, so these six docs are in the repo and not yet mirrored to Brain projects/aigen/.

Left for a live check after Coolify deploys: delete one still and a batch, confirm the count drops in another browser after refresh, and confirm a newly dropped file under models/loras/xaigen/<engine>/ or aigen/<engine>/ shows up from Refresh.