[PR #5075] [MERGED] fix(image): expand ComfyUI LoRA strength range #6615

Closed
opened 2026-10-23 04:12:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5075
Author: @SpicyMarinara
Created: 8/15/2026
Status: ✅ Merged
Merged: 8/15/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/5072-lora-strength-range


📝 Commits (2)

  • 1bff717 fix(image): expand ComfyUI LoRA strength range
  • 2ed0118 test(image): cover LoRA strength bounds

📊 Changes

4 files changed (+26 additions, -9 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+4 -2)
📝 packages/shared/src/constants/image-generation-defaults.ts (+3 -1)
📝 scripts/regressions/open-issues.regression.ts (+18 -6)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #5072

Why this change

  • SwarmUI and ComfyUI slider LoRAs can require weights outside the legacy -2..2 range, but both saved normalization and the editor silently clamped them.

What changed

  • Defined one shared -100..100 LoRA strength range.
  • Reused it in profile normalization and the connection editor.
  • Updated the existing ComfyUI LoRA regression and changelog entry.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • pnpm check passes.
  • The focused open-issues regression passes and confirms 99 and -99 survive normalization and workflow substitution.
  • The connection-editor smoke paths pass in the broader UI suite; live browser verification remains for review because no in-app browser is attached to this session.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

No user-facing docs or release metadata changes are expected; the existing connection control now accepts the wider backend-supported range.

UI evidence (if applicable)

The shared range is consumed by the existing number control, so the UI and saved normalization cannot diverge. Manual field entry above 2 remains an unchecked review item.

Summary by CodeRabbit

  • New Features

    • Expanded ComfyUI and SwarmUI LoRA strength controls to support values from -100 to 100.
    • LoRA settings now preserve higher positive and negative strength values.
  • Documentation

    • Added a changelog entry describing the expanded LoRA strength range.
  • Tests

    • Updated regression coverage to verify strengths such as 99 and -99 are retained.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/5075 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/15/2026 **Status:** ✅ Merged **Merged:** 8/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/5072-lora-strength-range` --- ### 📝 Commits (2) - [`1bff717`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1bff71782ec7309e3e97700db27edbf89935906a) fix(image): expand ComfyUI LoRA strength range - [`2ed0118`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2ed0118b925f00dd58dd0614807edf0544966c32) test(image): cover LoRA strength bounds ### 📊 Changes **4 files changed** (+26 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+4 -2) 📝 `packages/shared/src/constants/image-generation-defaults.ts` (+3 -1) 📝 `scripts/regressions/open-issues.regression.ts` (+18 -6) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository staging branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #5072 ## Why this change - SwarmUI and ComfyUI slider LoRAs can require weights outside the legacy `-2..2` range, but both saved normalization and the editor silently clamped them. ## What changed - Defined one shared `-100..100` LoRA strength range. - Reused it in profile normalization and the connection editor. - Updated the existing ComfyUI LoRA regression and changelog entry. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `pnpm check` passes. - The focused open-issues regression passes and confirms `99` and `-99` survive normalization and workflow substitution. - The connection-editor smoke paths pass in the broader UI suite; live browser verification remains for review because no in-app browser is attached to this session. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) No user-facing docs or release metadata changes are expected; the existing connection control now accepts the wider backend-supported range. ## UI evidence (if applicable) The shared range is consumed by the existing number control, so the UI and saved normalization cannot diverge. Manual field entry above `2` remains an unchecked review item. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Expanded ComfyUI and SwarmUI LoRA strength controls to support values from **-100 to 100**. * LoRA settings now preserve higher positive and negative strength values. * **Documentation** * Added a changelog entry describing the expanded LoRA strength range. * **Tests** * Updated regression coverage to verify strengths such as `99` and `-99` are retained. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:12:05 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6615
No description provided.