Apply and print SNOFS from the LoRA dials, not a leftover Concept LoRA row.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-09-02 21:33:30 -05:00
co-authored by Cursor
parent ca2380f4ae
commit 9fd96cb990
6 changed files with 94 additions and 28 deletions
+8
View File
@@ -197,6 +197,14 @@ export function isImageV2ConsistencyLora(name: string) {
return id === loraIdentityKey(IMAGE_V2_CONSISTENCY_LORA) || /flux2-klein-9b-consistency/i.test(id)
}
/** Strengths that are actually on the stack cards. Separate snofs_* fields are legacy only. */
export function imageV2StackSpecials(stack: unknown, engine?: ImageV2Engine) {
const items = normalizeLoraStack(stack)
const snofs = items.find(item => isImageV2ConceptLora(item.name, engine))
const consistency = items.find(item => isImageV2ConsistencyLora(item.name))
return { items, snofs, consistency }
}
export function upsertImageV2Lora(stack: unknown, name: string, model: number, clip: number): LoraStackItem[] {
const item = makeLoraStackItem(name, model, clip)
const current = normalizeLoraStack(stack)