[PR #3761] [MERGED] Fix NovelAI resolved-size reporting #6091

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3761
Author: @SpicyMarinara
Created: 7/17/2026
Status: ✅ Merged
Merged: 7/17/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/3758-novelai-resolved-size


📝 Commits (4)

  • 097232f Add NovelAI legacy defaults regression
  • c60bbd8 Fix NovelAI resolved-size previews
  • 8f5ce38 Apply NovelAI regression review
  • 56c46f4 Merge remote-tracking branch 'origin/staging' into fix/3758-novelai-resolved-size

📊 Changes

11 files changed (+241 additions, -27 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/server/src/routes/backgrounds.routes.ts (+10 -2)
📝 packages/server/src/routes/characters.routes.ts (+10 -2)
📝 packages/server/src/routes/gallery.routes.ts (+13 -3)
📝 packages/server/src/routes/game.routes.ts (+27 -8)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+10 -2)
📝 packages/server/src/routes/noodle.routes.ts (+10 -2)
📝 packages/server/src/routes/sprites.routes.ts (+19 -4)
📝 packages/server/src/services/image/image-generation.ts (+13 -3)
📝 packages/server/src/services/image/image-prompt-review.ts (+33 -0)
📝 scripts/regressions/open-issues.regression.ts (+95 -1)

📄 Description

Why

NovelAI dynamic resolution correctly changed the generated image size, but image prompt review still displayed the configured dimensions. Subject-count tokens in a connection Prompt Prefix could also change scene orientation, and partial pre-v2.3.3 profiles could omit newer defaults.

Closes #3758.

What changed

  • report subject-count-resolved dimensions from the final scene prompt in every image prompt review surface
  • exclude Prompt Prefix from subject-count detection while still sending the prefix to NovelAI
  • merge legacy partial NovelAI profiles over current defaults
  • preserve requested dimensions for non-native NovelAI proxies, other providers, and disabled dynamic sizing
  • add positive and negative regression rows for native NovelAI, prefixes, proxies, other providers, and legacy profiles
  • update the changelog

Validation

Automated evidence:

  • PASS: pnpm regression:issues
  • PASS: pnpm check
  • PASS after CodeRabbit cleanup: focused open-issues regression

Manual verification remaining:

  • Review a one-subject NovelAI prompt and confirm the UI reports 832x1216
  • Review a three-subject NovelAI prompt and confirm the UI reports 1216x832
  • Confirm a Prompt Prefix count token does not change scene orientation

Summary by CodeRabbit

  • Bug Fixes
    • Image prompt previews now display dimensions that match the actual image request, including NovelAI subject-based sizing.
    • Prompt prefixes no longer affect scene-based image dimensions.
    • Legacy and partial NovelAI settings now receive appropriate default values.
    • Preview sizing is corrected across backgrounds, characters, galleries, storyboards, sprites, illustrations, and retry flows.

🔄 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/3761 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/17/2026 **Status:** ✅ Merged **Merged:** 7/17/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3758-novelai-resolved-size` --- ### 📝 Commits (4) - [`097232f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/097232f8277de03bde4debf76b1dd3a883eaf39a) Add NovelAI legacy defaults regression - [`c60bbd8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c60bbd8f82d42d2f96c6bd73af4cfee178caacee) Fix NovelAI resolved-size previews - [`8f5ce38`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8f5ce388a8f860805329a7a91710e2168857e514) Apply NovelAI regression review - [`56c46f4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/56c46f4c9845b2c901ab0b32c2a39f58ab07f875) Merge remote-tracking branch 'origin/staging' into fix/3758-novelai-resolved-size ### 📊 Changes **11 files changed** (+241 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/server/src/routes/backgrounds.routes.ts` (+10 -2) 📝 `packages/server/src/routes/characters.routes.ts` (+10 -2) 📝 `packages/server/src/routes/gallery.routes.ts` (+13 -3) 📝 `packages/server/src/routes/game.routes.ts` (+27 -8) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+10 -2) 📝 `packages/server/src/routes/noodle.routes.ts` (+10 -2) 📝 `packages/server/src/routes/sprites.routes.ts` (+19 -4) 📝 `packages/server/src/services/image/image-generation.ts` (+13 -3) 📝 `packages/server/src/services/image/image-prompt-review.ts` (+33 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+95 -1) </details> ### 📄 Description ## Why NovelAI dynamic resolution correctly changed the generated image size, but image prompt review still displayed the configured dimensions. Subject-count tokens in a connection Prompt Prefix could also change scene orientation, and partial pre-v2.3.3 profiles could omit newer defaults. Closes #3758. ## What changed - report subject-count-resolved dimensions from the final scene prompt in every image prompt review surface - exclude Prompt Prefix from subject-count detection while still sending the prefix to NovelAI - merge legacy partial NovelAI profiles over current defaults - preserve requested dimensions for non-native NovelAI proxies, other providers, and disabled dynamic sizing - add positive and negative regression rows for native NovelAI, prefixes, proxies, other providers, and legacy profiles - update the changelog ## Validation Automated evidence: - PASS: `pnpm regression:issues` - PASS: `pnpm check` - PASS after CodeRabbit cleanup: focused open-issues regression Manual verification remaining: - [ ] Review a one-subject NovelAI prompt and confirm the UI reports 832x1216 - [ ] Review a three-subject NovelAI prompt and confirm the UI reports 1216x832 - [ ] Confirm a Prompt Prefix count token does not change scene orientation <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Image prompt previews now display dimensions that match the actual image request, including NovelAI subject-based sizing. * Prompt prefixes no longer affect scene-based image dimensions. * Legacy and partial NovelAI settings now receive appropriate default values. * Preview sizing is corrected across backgrounds, characters, galleries, storyboards, sprites, illustrations, and retry flows. <!-- 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:07:00 +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#6091
No description provided.