[PR #4751] [MERGED] Fix NovelAI style plate and setup dropdown follow-up regressions #6487

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

📋 Pull Request Information

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

Base: staging ← Head: agent/fix-4748-4750-followups


📝 Commits (3)

  • 5443c00 Start assigned issue follow-up sweep
  • ade9c57 fix: resolve style plate and setup selector regressions
  • 3de4bf0 test: assert setup selector contrast

📊 Changes

5 files changed (+220 additions, -67 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/core-flows.e2e.ts (+35 -16)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+155 -46)
📝 packages/client/src/lib/chat-attachment-images.ts (+17 -1)
📝 packages/shared/src/constants/image-generation-defaults.ts (+11 -4)

📄 Description

Linked issues

Closes #4748
Closes #4750

Why this change

The prior fixes did not cover the actual failure modes. NovelAI style plates were still decoded into a full-resolution browser bitmap before resizing, and the editor sanitizer compared large encoded image strings by serializing them twice. On Windows Chromium, this could destabilize the center editor. The Connection and Preset menus were still native <select> popups, whose Windows rendering ignores the page option colors.

What changed

  • Downsample oversized uploaded images during createImageBitmap decoding instead of allocating a full-size browser bitmap first.
  • Keep the fast editor sanitization path free of redundant JSON serialization of encoded style-plate data.
  • Replace only the new Conversation/Roleplay Connection and Preset native popups with a compact themed, keyboard-accessible in-app listbox.
  • Expand the focused browser regressions to use a 1784×3228 PNG and exercise both opened setup menus.
  • Add Unreleased changelog entries for both follow-up issues.

Validation

  • pnpm check
  • Full pnpm smoke:ui
  • Manually verify the affected paths on Windows Chromium
  • Manually verify light and dark themes
  • Read and followed CONTRIBUTING.md

Automated evidence completed: pnpm check passed; the full browser suite passed with 202 tests and 100 intentional viewport skips; focused desktop and mobile Chromium runs passed. All boxes remain intentionally unchecked for human verification.

Manual verification still requested: upload the original reported style plate and open both new-chat selectors on a physical Windows Chrome or Edge installation.

Summary by CodeRabbit

  • New Features

    • Added themed, keyboard-accessible selectors for connection and preset choices during Conversation and Roleplay setup.
    • Added safe preview support for oversized NovelAI V4.5 style-plate uploads.
  • Bug Fixes

    • Large image uploads are automatically resized and compressed when needed, improving preview reliability while enforcing size and dimension limits.
    • Improved image-generation profile normalization and handling of invalid settings.

🔄 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/4751 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/8/2026 **Status:** ✅ Merged **Merged:** 8/8/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/fix-4748-4750-followups` --- ### 📝 Commits (3) - [`5443c00`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5443c00ce1ef8b42e752aaac7f28feac5652485f) Start assigned issue follow-up sweep - [`ade9c57`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ade9c57a376ddd5c7703d02a73dccdff56fb5eaa) fix: resolve style plate and setup selector regressions - [`3de4bf0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3de4bf02e2eb66f4fe542226acf9ca222d82521f) test: assert setup selector contrast ### 📊 Changes **5 files changed** (+220 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/core-flows.e2e.ts` (+35 -16) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+155 -46) 📝 `packages/client/src/lib/chat-attachment-images.ts` (+17 -1) 📝 `packages/shared/src/constants/image-generation-defaults.ts` (+11 -4) </details> ### 📄 Description ## Linked issues Closes #4748 Closes #4750 ## Why this change The prior fixes did not cover the actual failure modes. NovelAI style plates were still decoded into a full-resolution browser bitmap before resizing, and the editor sanitizer compared large encoded image strings by serializing them twice. On Windows Chromium, this could destabilize the center editor. The Connection and Preset menus were still native `<select>` popups, whose Windows rendering ignores the page option colors. ## What changed - Downsample oversized uploaded images during `createImageBitmap` decoding instead of allocating a full-size browser bitmap first. - Keep the fast editor sanitization path free of redundant JSON serialization of encoded style-plate data. - Replace only the new Conversation/Roleplay Connection and Preset native popups with a compact themed, keyboard-accessible in-app listbox. - Expand the focused browser regressions to use a 1784×3228 PNG and exercise both opened setup menus. - Add Unreleased changelog entries for both follow-up issues. ## Validation - [ ] `pnpm check` - [ ] Full `pnpm smoke:ui` - [ ] Manually verify the affected paths on Windows Chromium - [ ] Manually verify light and dark themes - [ ] Read and followed `CONTRIBUTING.md` Automated evidence completed: `pnpm check` passed; the full browser suite passed with 202 tests and 100 intentional viewport skips; focused desktop and mobile Chromium runs passed. All boxes remain intentionally unchecked for human verification. Manual verification still requested: upload the original reported style plate and open both new-chat selectors on a physical Windows Chrome or Edge installation. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added themed, keyboard-accessible selectors for connection and preset choices during Conversation and Roleplay setup. * Added safe preview support for oversized NovelAI V4.5 style-plate uploads. * **Bug Fixes** * Large image uploads are automatically resized and compressed when needed, improving preview reliability while enforcing size and dimension limits. * Improved image-generation profile normalization and handling of invalid settings. <!-- 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:10:53 +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#6487
No description provided.