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:
+2
-1
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user