Stop deleted LoRAs from sticking in the picker.

A cache merge that preferred the longer list was keeping removed files forever. Fresh Comfy lists now replace the cache, including shrinks, and xiagen- typos stay off AIGen like xaigen-.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-04 21:45:31 -05:00
co-authored by Cursor
parent d50719e1a7
commit b481c4e3ad
3 changed files with 14 additions and 22 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ export function loraIdentityKey(name: string) {
export function isXaigenOnlyLora(name: string) {
const base = loraBasename(name)
return /^xaigen/i.test(base) || /klein_snofs|snofs_krea/i.test(base)
// Include the common `xiagen-` typo so those files stay off AIGen too.
return /^(xai|xia)gen/i.test(base) || /klein_snofs|snofs_krea/i.test(base)
}
/** Pick the real Comfy filename: exact path, then same basename ignoring `xaigen-`, then suffix/contains. */