[PR #4935] [MERGED] fix: resolve assigned summary, setup, lorebook, and Spotify issues #6547

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

📋 Pull Request Information

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

Base: staging ← Head: agent/assigned-issues-4925-4934


📝 Commits (3)

  • 5c1c4fe fix: resolve assigned issue sweep
  • 6859c3b Merge branch 'staging' into agent/assigned-issues-4925-4934
  • e953888 fix: address CodeRabbit review feedback

📊 Changes

14 files changed (+397 additions, -167 deletions)

View changed files

📝 CHANGELOG.md (+5 -0)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+11 -2)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+26 -19)
📝 packages/client/src/components/game/GameSetupWizard.tsx (+152 -94)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+26 -9)
📝 packages/client/src/localization/locales/en.json (+2 -1)
📝 packages/client/src/stores/ui.store.ts (+6 -0)
📝 packages/server/src/services/conversation/auto-summary.service.ts (+6 -6)
📝 packages/server/src/services/generation/roleplay-summary-runtime.ts (+10 -16)
📝 packages/server/src/services/lorebook/character-book-sync.ts (+5 -6)
📝 packages/server/src/services/mari-db/mari-db.service.ts (+32 -9)
📝 packages/server/src/services/tools/tool-executor.ts (+2 -1)
📝 scripts/regressions/open-issues.regression.ts (+94 -1)
📝 scripts/regressions/prompt.regression.ts (+20 -3)

📄 Description

Linked issues

Closes #4925
Closes #4928
Closes #4929
Closes #4930
Closes #4932
Closes #4934

Related: #4922 is already being handled by draft PR #4923, so this sweep deliberately does not duplicate that work.

Why this change

These assigned issues covered several small but user-visible breaks: malformed model summary JSON leaked into summaries, Professor Mari could not opt out of Enter-to-send, newly edited NovelAI defaults could revert on Save, a Game setup could not be exported until after starting, whole-lorebook deletion left embedded character data stale, and Music DJ disabled an existing Spotify repeat choice.

What changed

  • Route Roleplay and Conversation summary output through the shared JSON-repair helper.
  • Add a persisted Professor Mari Send on Enter preference; when disabled, Enter inserts a newline and Ctrl/Command+Enter sends.
  • Keep a synchronous snapshot of image-generation defaults so NovelAI Save/export sees the latest committed field.
  • Reuse the existing Game setup share format on the final New Game step before Start Game.
  • Capture the actual embedded character before a whole-lorebook delete, clear its embedded book/pointer, and re-embed on Restore.
  • Preserve enabled Spotify repeat for multi-song Music DJ selections by looping the chosen context.
  • Add focused regressions and Unreleased changelog entries.

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

Commands run:

  • pnpm check — passed
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/prompt.regression.ts — passed
  • pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts — passed
  • pnpm --filter @marinara-engine/client lint — passed
  • pnpm smoke:ui — attempted; the parallel suite stopped at the desktop “What's New opens once” case while its mobile twin passed
  • pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project=desktop-chromium --grep "What's New opens once" — isolated rerun passed

Manual verification notes

  • Manually verify Professor Mari's four Send on Enter combinations in embedded and floating composers.
  • Manually verify NovelAI setup Save after editing a field and immediately clicking Save.
  • Manually export/import a setup from New Game's final step.
  • Manually verify whole-lorebook delete/Restore from Professor Mari's review UI.
  • Manually verify Music DJ keeps Spotify repeat enabled for a selected song list.
  • The in-app Browser control runtime could not initialize in this session (Cannot redefine property: process), so the UI evidence above is automated rather than an in-app walkthrough.

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] <paths> follow-up issue opened
  • Version/release files updated

Unreleased changelog entries are included. No user-facing documentation pages or version files changed.

UI evidence

No screenshots attached; the changes reuse existing controls and setup-download UI patterns.

Summary by CodeRabbit

  • New Features

    • Added a persisted Professor Mari “Send on Enter” setting, with Shift+Enter for multiline messages and Ctrl/Command+Enter when disabled.
    • Added export and import for reusable Game Setup files, preserving generation and style settings.
  • Bug Fixes

    • Improved recovery of malformed conversation summaries.
    • Fixed persistence of image-generation settings.
    • Corrected lorebook deletion and restoration synchronization.
    • Preserved Spotify repeat behavior during multi-song playback.
  • Accessibility

    • Improved labels, help text, and toggle-state communication for Send on Enter controls.

🔄 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/4935 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/11/2026 **Status:** ✅ Merged **Merged:** 8/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/assigned-issues-4925-4934` --- ### 📝 Commits (3) - [`5c1c4fe`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5c1c4fedca35a323c87655d9671b99e5dc926617) fix: resolve assigned issue sweep - [`6859c3b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6859c3b9425d181686f762d14e259b5612e5626c) Merge branch 'staging' into agent/assigned-issues-4925-4934 - [`e953888`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e953888d3029b3d86c5e9327263b44c504bbecc3) fix: address CodeRabbit review feedback ### 📊 Changes **14 files changed** (+397 additions, -167 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+5 -0) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+11 -2) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+26 -19) 📝 `packages/client/src/components/game/GameSetupWizard.tsx` (+152 -94) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+26 -9) 📝 `packages/client/src/localization/locales/en.json` (+2 -1) 📝 `packages/client/src/stores/ui.store.ts` (+6 -0) 📝 `packages/server/src/services/conversation/auto-summary.service.ts` (+6 -6) 📝 `packages/server/src/services/generation/roleplay-summary-runtime.ts` (+10 -16) 📝 `packages/server/src/services/lorebook/character-book-sync.ts` (+5 -6) 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+32 -9) 📝 `packages/server/src/services/tools/tool-executor.ts` (+2 -1) 📝 `scripts/regressions/open-issues.regression.ts` (+94 -1) 📝 `scripts/regressions/prompt.regression.ts` (+20 -3) </details> ### 📄 Description ## Linked issues Closes #4925 Closes #4928 Closes #4929 Closes #4930 Closes #4932 Closes #4934 Related: #4922 is already being handled by draft PR #4923, so this sweep deliberately does not duplicate that work. ## Why this change These assigned issues covered several small but user-visible breaks: malformed model summary JSON leaked into summaries, Professor Mari could not opt out of Enter-to-send, newly edited NovelAI defaults could revert on Save, a Game setup could not be exported until after starting, whole-lorebook deletion left embedded character data stale, and Music DJ disabled an existing Spotify repeat choice. ## What changed - Route Roleplay and Conversation summary output through the shared JSON-repair helper. - Add a persisted Professor Mari Send on Enter preference; when disabled, Enter inserts a newline and Ctrl/Command+Enter sends. - Keep a synchronous snapshot of image-generation defaults so NovelAI Save/export sees the latest committed field. - Reuse the existing Game setup share format on the final New Game step before Start Game. - Capture the actual embedded character before a whole-lorebook delete, clear its embedded book/pointer, and re-embed on Restore. - Preserve enabled Spotify repeat for multi-song Music DJ selections by looping the chosen context. - Add focused regressions and Unreleased changelog entries. ## 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` Commands run: - `pnpm check` — passed - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/prompt.regression.ts` — passed - `pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts` — passed - `pnpm --filter @marinara-engine/client lint` — passed - `pnpm smoke:ui` — attempted; the parallel suite stopped at the desktop “What's New opens once” case while its mobile twin passed - `pnpm exec playwright test -c playwright.config.ts e2e/core-flows.e2e.ts --project=desktop-chromium --grep "What's New opens once"` — isolated rerun passed ### Manual verification notes - Manually verify Professor Mari's four Send on Enter combinations in embedded and floating composers. - Manually verify NovelAI setup Save after editing a field and immediately clicking Save. - Manually export/import a setup from New Game's final step. - Manually verify whole-lorebook delete/Restore from Professor Mari's review UI. - Manually verify Music DJ keeps Spotify repeat enabled for a selected song list. - The in-app Browser control runtime could not initialize in this session (`Cannot redefine property: process`), so the UI evidence above is automated rather than an in-app walkthrough. ## 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] <paths>` follow-up issue opened - [ ] Version/release files updated Unreleased changelog entries are included. No user-facing documentation pages or version files changed. ## UI evidence No screenshots attached; the changes reuse existing controls and setup-download UI patterns. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added a persisted Professor Mari “Send on Enter” setting, with Shift+Enter for multiline messages and Ctrl/Command+Enter when disabled. - Added export and import for reusable Game Setup files, preserving generation and style settings. - **Bug Fixes** - Improved recovery of malformed conversation summaries. - Fixed persistence of image-generation settings. - Corrected lorebook deletion and restoration synchronization. - Preserved Spotify repeat behavior during multi-song playback. - **Accessibility** - Improved labels, help text, and toggle-state communication for Send on Enter controls. <!-- 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:11:28 +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#6547
No description provided.