[PR #609] [MERGED] Fix NovelAI image request settings #4691

Closed
opened 2026-10-22 04:09:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/609
Author: @cha1latte
Created: 5/9/2026
Status: ✅ Merged
Merged: 5/9/2026
Merged by: @cha1latte

Base: main ← Head: fix/issue-608-novelai-settings


📝 Commits (2)

  • e60636f Fix NovelAI image request settings
  • 77d943c Preserve Unicode NovelAI request metadata

📊 Changes

6 files changed (+395 additions, -18 deletions)

View changed files

📝 packages/client/src/components/connections/ConnectionEditor.tsx (+85 -4)
📝 packages/server/src/services/image/image-generation-defaults.ts (+1 -0)
📝 packages/server/src/services/image/image-generation.ts (+105 -11)
📝 packages/server/test/image-generation-local.test.ts (+135 -0)
📝 packages/shared/src/constants/image-generation-defaults.ts (+56 -2)
📝 packages/shared/src/types/image-generation-defaults.ts (+13 -1)

📄 Description

Linked issue

Closes #608

Why this change

  • Illustrator Agent images generated through native NovelAI used a small hardcoded settings set, so users could not tune or inspect key NovelAI V4/V4.5 request settings such as prompt guidance rescale or noise schedule.

What changed

  • Added NovelAI to the existing connection-scoped image defaults profile.
  • Applied NovelAI defaults to native NovelAI image requests: prompt/negative prefixes, seed, steps, prompt guidance, prompt guidance rescale, sampler, noise schedule, and UC preset.
  • Embedded a compact marinara_novelai_request PNG text metadata chunk in native NovelAI PNG results so users can inspect the exact request body later.
  • Added NovelAI controls to the connection editor's image defaults panel.
  • Added a focused regression test that captures the outgoing native NovelAI request and verifies the generated PNG metadata snapshot.

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

  • Codex ran pnpm --dir packages/server exec tsx --test test/image-generation-local.test.ts.
  • Codex ran pnpm check.
  • The focused NovelAI test uses a local mock native endpoint rather than real NovelAI credentials. It verifies request construction and metadata preservation, but not live NovelAI output quality.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Not applicable. This is a provider request-building/backend behavior fix; the connection editor only exposes the new provider defaults fields.


🔄 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/609 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/9/2026 **Status:** ✅ Merged **Merged:** 5/9/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `main` ← **Head:** `fix/issue-608-novelai-settings` --- ### 📝 Commits (2) - [`e60636f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e60636f4a808bb6f13413b78a957ee7f4d2d18ee) Fix NovelAI image request settings - [`77d943c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/77d943c6eaaeabccd8f9d2640aa2ac87ad2ea422) Preserve Unicode NovelAI request metadata ### 📊 Changes **6 files changed** (+395 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+85 -4) 📝 `packages/server/src/services/image/image-generation-defaults.ts` (+1 -0) 📝 `packages/server/src/services/image/image-generation.ts` (+105 -11) 📝 `packages/server/test/image-generation-local.test.ts` (+135 -0) 📝 `packages/shared/src/constants/image-generation-defaults.ts` (+56 -2) 📝 `packages/shared/src/types/image-generation-defaults.ts` (+13 -1) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #608 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Illustrator Agent images generated through native NovelAI used a small hardcoded settings set, so users could not tune or inspect key NovelAI V4/V4.5 request settings such as prompt guidance rescale or noise schedule. ## What changed <!-- List the key changes in this PR --> - Added NovelAI to the existing connection-scoped image defaults profile. - Applied NovelAI defaults to native NovelAI image requests: prompt/negative prefixes, seed, steps, prompt guidance, prompt guidance rescale, sampler, noise schedule, and UC preset. - Embedded a compact `marinara_novelai_request` PNG text metadata chunk in native NovelAI PNG results so users can inspect the exact request body later. - Added NovelAI controls to the connection editor's image defaults panel. - Added a focused regression test that captures the outgoing native NovelAI request and verifies the generated PNG metadata snapshot. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `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 <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex ran `pnpm --dir packages/server exec tsx --test test/image-generation-local.test.ts`. - Codex ran `pnpm check`. - The focused NovelAI test uses a local mock native endpoint rather than real NovelAI credentials. It verifies request construction and metadata preservation, but not live NovelAI output quality. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Not applicable. This is a provider request-building/backend behavior fix; the connection editor only exposes the new provider defaults fields. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:09:52 +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#4691
No description provided.