Keep library deletes when a still file is locked, and match LoRAs by engine folder.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-10-24 11:13:00 -05:00
co-authored by Cursor
parent 8602d6ed2e
commit 39aa4b65d0
19 changed files with 501 additions and 116 deletions
+2
View File
@@ -217,6 +217,8 @@ async function loadLoraCache(options: { fresh?: boolean } = {}): Promise<LoraCac
export async function listStudioLoras(options: { fresh?: boolean } = {}) {
const xaigen = isXaigenStudio()
// `fresh` hits Comfy /object_info so new files under models/loras/<site>/<engine>/ show up
// without a restart. Names stay Comfy-relative (slashes included) for the graph.
try {
const listed = await loadLoraCache(options)
return {