[PR #3678] [MERGED] feat: prepare v3.2.2 fixes and background organization #6049

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

📋 Pull Request Information

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

Base: staging ← Head: agent/v3.2.2-issue-batch


📝 Commits (9)

📊 Changes

41 files changed (+1917 additions, -659 deletions)

View changed files

📝 CHANGELOG.md (+24 -0)
📝 README.md (+1 -1)
📝 android/app/build.gradle (+3 -3)
📝 docs/appearance/chat-backgrounds.md (+20 -4)
📝 docs/roleplay/backgrounds.md (+1 -1)
📝 e2e/core-flows.e2e.ts (+122 -0)
📝 package.json (+1 -1)
📝 packages/client/package.json (+1 -1)
📝 packages/client/public/manifest.json (+1 -1)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+3 -3)
📝 packages/client/src/components/chat/ChatInput.tsx (+1 -2)
📝 packages/client/src/components/chat/HomeCreditsModal.tsx (+18 -18)
📝 packages/client/src/components/game/GameSurface.tsx (+0 -1)
📝 packages/client/src/components/modals/WhatsNewModal.tsx (+4 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+2 -459)
➕ packages/client/src/components/panels/settings/BackgroundPicker.tsx (+937 -0)
📝 packages/client/src/components/personas/PersonaEditor.tsx (+13 -4)
📝 packages/client/src/components/ui/ChibiProfessorMariEasterEgg.tsx (+1 -1)
➕ packages/client/src/lib/background-library.ts (+60 -0)
📝 packages/client/src/main.tsx (+6 -0)

...and 21 more files

📄 Description

Why

This patch resolves the current upgrade, prompt, downloadable-runtime, generator, and editor regressions before v3.2.2. It also brings Background management in line with the folder-based organization already used by Characters, Personas, and Lorebooks, while keeping every Background Agent choice available.

What changed

  • preserve the latest Roleplay assistant <speaker> example while trimming older tags, and place group instructions in <output_format> or the last user turn
  • preserve disabled Agents during legacy package migration and commit the migration marker only after chat selections are durably flushed
  • make downloaded Conversation Calls runtimes inherit the host DATA_DIR, so installed Whisper models remain discoverable
  • repair empty Professor Mari creation turns, normalize common character fields, and create lorebooks with their generated entries atomically
  • expose the host React runtime for legacy Conversation-game clients
  • contain cropped Character and Persona avatars inside the Colors example message
  • add server-persisted Background folders with desktop drag-and-drop, mobile touch dragging, double-click/double-tap/F2 rename, and safe folder deletion
  • add Background search, A-Z/Z-A/Newest/Oldest sorting, collapsible tag filters, and stable default-star positioning
  • keep folder organization out of Background Agent selection so every available background remains visible to the agent
  • synchronize v3.2.2 release metadata, release announcement, CHANGELOG, Android versionCode 36, and generated Credits

Addresses #3669, #3670, #3671, #3673, #3674, and #3675. Background organization and the Colors sprite regression were direct maintainer additions to this batch and do not have separate issues.

Root causes

The regressions came from lossy migration ordering, prompt cleanup that removed the final assistant example, downloaded runtimes not inheriting host storage configuration, structured-write edge cases, and unconstrained editor preview media. Background management previously had no organization manifest, reusable folder interaction layer, or stable action rail.

Automated validation

  • pnpm check
  • pnpm test
  • pnpm regression — all non-UI lanes passed; UI matrix: 62 passed, 38 project-skipped
  • pnpm version:check
  • pnpm credits:check
  • git diff --check

Manual verification

  • Manually verify a migrated chat with Enable Agents off remains off while selected Hierarchical Maps stays available.
  • Manually verify a downloaded Local Whisper model is recognized by Conversation Calls without an explicit DATA_DIR.
  • Manually generate a character and a multi-entry lorebook through Professor Mari.
  • Manually open Character and Persona Colors with cropped avatars and additional sprites.
  • Manually start Tic-Tac-Toe from an existing v1.0.0 capability install.
  • Manually organize Backgrounds with mouse dragging on desktop and touch dragging on a phone or tablet.
  • Manually verify Background folders do not reduce the choices offered to the Background Agent.

Impact

This touches startup migration ordering, prompt assembly and preview parity, downloaded capability bootstrap, Professor Mari structured writes, editor previews, Background library persistence and UI, and release metadata. Server-side changes have regression coverage, and the Background workflow is covered end to end on desktop and mobile Chromium profiles.

Summary by CodeRabbit

  • New Features
    • Added background library organization with folders, drag-and-drop (including touch), sorting, search, and tag filters, with responsive/mobile-friendly controls.
    • Improved Characters/Personas “Preview” tiles to show properly cropped avatar previews.
    • Added a tailored v3.2.2 entry in “What’s New”.
  • Bug Fixes
    • Improved roleplay speaker-tag handling and prompt formatting.
    • Preserved agent master settings during migration and made migrations restart-safe.
    • Fixed Local Whisper detection, Professor Mari generation/lorebook save normalization, and legacy Tic-Tac-Toe compatibility; also improved Roleplay-default star anchoring.
  • Documentation
    • Updated README release link and clarified background organization guidance.

🔄 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/3678 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/16/2026 **Status:** ✅ Merged **Merged:** 7/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/v3.2.2-issue-batch` --- ### 📝 Commits (9) - [`8f6d854`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8f6d85458ff2fee41bb6b183d8e9b8598d461718) fix: resolve v3.2.2 issue batch - [`100a910`](https://github.com/Pasta-Devs/Marinara-Engine/commit/100a91005401c5e935567c7f05b8248415a7f131) refactor: address CodeRabbit review - [`a6778cd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a6778cde36fb806db6f7eebfe972f628cab8254b) feat: organize background library - [`a4b44ef`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a4b44effe3f6ed2c467781ac5ec644f4a4d538b6) fix: harden background library updates - [`054bbd0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/054bbd05fed6544581fa0cb00c259105d429c698) fix: center Mini Mari toast sprite - [`b038b24`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b038b24d3f826fae5f9d003664944ba7a0422e15) Merge branch 'feature/3676-download-agent-mode-badges' of https://github.com/Pasta-Devs/Marinara-Engine into agent/v3.2.2-issue-batch - [`ff2d2df`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ff2d2dff5fafef28537e2800c6b23ca29d40b1b4) Merge branch 'fix/3679-hierarchical-maps-agent-menu' of https://github.com/Pasta-Devs/Marinara-Engine into agent/v3.2.2-issue-batch - [`5e64f03`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5e64f033409df6d03c511f36e2ac9030f0f2d5f6) docs: update v3.2.2 release notes - [`aeb151c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aeb151cb67498c35a54d3fad7364810f51569972) Merge branch 'staging' of https://github.com/Pasta-Devs/Marinara-Engine into agent/v3.2.2-issue-batch ### 📊 Changes **41 files changed** (+1917 additions, -659 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+24 -0) 📝 `README.md` (+1 -1) 📝 `android/app/build.gradle` (+3 -3) 📝 `docs/appearance/chat-backgrounds.md` (+20 -4) 📝 `docs/roleplay/backgrounds.md` (+1 -1) 📝 `e2e/core-flows.e2e.ts` (+122 -0) 📝 `package.json` (+1 -1) 📝 `packages/client/package.json` (+1 -1) 📝 `packages/client/public/manifest.json` (+1 -1) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+3 -3) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+1 -2) 📝 `packages/client/src/components/chat/HomeCreditsModal.tsx` (+18 -18) 📝 `packages/client/src/components/game/GameSurface.tsx` (+0 -1) 📝 `packages/client/src/components/modals/WhatsNewModal.tsx` (+4 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+2 -459) ➕ `packages/client/src/components/panels/settings/BackgroundPicker.tsx` (+937 -0) 📝 `packages/client/src/components/personas/PersonaEditor.tsx` (+13 -4) 📝 `packages/client/src/components/ui/ChibiProfessorMariEasterEgg.tsx` (+1 -1) ➕ `packages/client/src/lib/background-library.ts` (+60 -0) 📝 `packages/client/src/main.tsx` (+6 -0) _...and 21 more files_ </details> ### 📄 Description ## Why This patch resolves the current upgrade, prompt, downloadable-runtime, generator, and editor regressions before v3.2.2. It also brings Background management in line with the folder-based organization already used by Characters, Personas, and Lorebooks, while keeping every Background Agent choice available. ## What changed - preserve the latest Roleplay assistant `<speaker>` example while trimming older tags, and place group instructions in `<output_format>` or the last user turn - preserve disabled Agents during legacy package migration and commit the migration marker only after chat selections are durably flushed - make downloaded Conversation Calls runtimes inherit the host `DATA_DIR`, so installed Whisper models remain discoverable - repair empty Professor Mari creation turns, normalize common character fields, and create lorebooks with their generated entries atomically - expose the host React runtime for legacy Conversation-game clients - contain cropped Character and Persona avatars inside the Colors example message - add server-persisted Background folders with desktop drag-and-drop, mobile touch dragging, double-click/double-tap/F2 rename, and safe folder deletion - add Background search, A-Z/Z-A/Newest/Oldest sorting, collapsible tag filters, and stable default-star positioning - keep folder organization out of Background Agent selection so every available background remains visible to the agent - synchronize v3.2.2 release metadata, release announcement, CHANGELOG, Android versionCode 36, and generated Credits Addresses #3669, #3670, #3671, #3673, #3674, and #3675. Background organization and the Colors sprite regression were direct maintainer additions to this batch and do not have separate issues. ## Root causes The regressions came from lossy migration ordering, prompt cleanup that removed the final assistant example, downloaded runtimes not inheriting host storage configuration, structured-write edge cases, and unconstrained editor preview media. Background management previously had no organization manifest, reusable folder interaction layer, or stable action rail. ## Automated validation - `pnpm check` - `pnpm test` - `pnpm regression` — all non-UI lanes passed; UI matrix: 62 passed, 38 project-skipped - `pnpm version:check` - `pnpm credits:check` - `git diff --check` ## Manual verification - [ ] Manually verify a migrated chat with **Enable Agents** off remains off while selected Hierarchical Maps stays available. - [ ] Manually verify a downloaded Local Whisper model is recognized by Conversation Calls without an explicit `DATA_DIR`. - [ ] Manually generate a character and a multi-entry lorebook through Professor Mari. - [ ] Manually open Character and Persona **Colors** with cropped avatars and additional sprites. - [ ] Manually start Tic-Tac-Toe from an existing v1.0.0 capability install. - [ ] Manually organize Backgrounds with mouse dragging on desktop and touch dragging on a phone or tablet. - [ ] Manually verify Background folders do not reduce the choices offered to the Background Agent. ## Impact This touches startup migration ordering, prompt assembly and preview parity, downloaded capability bootstrap, Professor Mari structured writes, editor previews, Background library persistence and UI, and release metadata. Server-side changes have regression coverage, and the Background workflow is covered end to end on desktop and mobile Chromium profiles. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added background library organization with folders, drag-and-drop (including touch), sorting, search, and tag filters, with responsive/mobile-friendly controls. * Improved Characters/Personas “Preview” tiles to show properly cropped avatar previews. * Added a tailored v3.2.2 entry in “What’s New”. * **Bug Fixes** * Improved roleplay speaker-tag handling and prompt formatting. * Preserved agent master settings during migration and made migrations restart-safe. * Fixed Local Whisper detection, Professor Mari generation/lorebook save normalization, and legacy Tic-Tac-Toe compatibility; also improved Roleplay-default star anchoring. * **Documentation** * Updated README release link and clarified background organization guidance. <!-- 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:06:34 +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#6049
No description provided.