[PR #3536] [MERGED] Prepare v2.2.1 and fix Roleplay generation regressions #5984

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

📋 Pull Request Information

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

Base: staging ← Head: fix/v2.2.1-roleplay-tts-failure


📝 Commits (3)

  • 0e5d275 Bump v2.2.1 and prevent failed-generation TTS replay
  • 821f25a Attribute every OpenRouter request
  • a10d096 Allow requested Illustrator comic lettering

📊 Changes

24 files changed (+320 additions, -54 deletions)

View changed files

📝 CHANGELOG.md (+14 -0)
📝 README.md (+1 -1)
📝 android/app/build.gradle (+3 -3)
📝 package.json (+1 -1)
📝 packages/client/package.json (+1 -1)
📝 packages/client/public/manifest.json (+1 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+45 -10)
📝 packages/client/src/components/chat/HomeCreditsModal.tsx (+10 -8)
➕ packages/client/src/lib/tts-autoplay.ts (+29 -0)
📝 packages/server/package.json (+1 -1)
📝 packages/server/src/routes/generate.routes.ts (+8 -8)
📝 packages/server/src/routes/generate/illustrator-references.ts (+29 -0)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+8 -4)
📝 packages/server/src/services/llm/base-provider.ts (+0 -4)
📝 packages/server/src/services/llm/providers/openai.provider.ts (+1 -5)
➕ packages/server/src/utils/openrouter-attribution.ts (+31 -0)
📝 packages/server/src/utils/security.ts (+5 -1)
📝 packages/shared/package.json (+1 -1)
📝 packages/shared/src/constants/defaults.ts (+1 -1)
📝 scripts/regressions/prompt.regression.ts (+47 -0)

...and 4 more files

📄 Description

Why

This prepares Marinara Engine v2.2.1 and fixes two Roleplay regressions discovered during release verification: failed generations could replay the previous response's audio, and Comic Page Illustrator requests were contradicted by a global negative prompt that banned the requested lettering. It also makes Marinara attribution consistent across every direct OpenRouter request.

No issue is currently linked; a tracking issue should be opened before this draft is submitted for review.

What changed

  • synchronized v2.2.1 across package metadata, the home page, PWA manifest, README release pointer, Windows installers, and Android metadata
  • advanced Android to versionCode 33 and refreshed contributor credits
  • prevented failed Roleplay generations from replaying TTS generated for the previous assistant message
  • centralized OpenRouter app attribution at the outbound request boundary for text, embeddings, image generation, model discovery, and video requests
  • made Illustrator text suppression conditional on the final compiled prompt, allowing explicitly requested speech bubbles, captions, signs, lettering, and SFX
  • preserved default accidental-text suppression for ordinary illustrations and watermark/logo/signature suppression for all illustrations
  • added provider, Roleplay streaming/TTS, and prompt-policy regression coverage
  • updated the v2.2.1 changelog

Root causes

  • TTS autoplay reacted to any streaming transition from active to inactive and selected the latest assistant message, even when the generation ended in failure.
  • OpenRouter attribution was assembled in individual provider paths, leaving direct media transports unattributed.
  • Roleplay Illustrator unconditionally appended a negative prompt banning all rendered text after the agent had explicitly requested comic lettering.

Validation

  • pnpm check
  • pnpm regression:roleplay
  • pnpm regression:providers
  • pnpm regression:prompt
  • pnpm smoke:ui
  • pnpm version:check
  • pnpm credits:check
  • release-note rendering and diff validation

Manual verification

  • Manually verify the home page and application metadata display v2.2.1.
  • Manually fail a Roleplay generation after a response with generated audio and confirm the previous audio does not replay.
  • Manually generate a Roleplay Comic Page with dialogue, captions, and SFX and confirm the final request does not ban those elements.
  • Manually generate an ordinary Roleplay illustration and confirm accidental text remains discouraged.
  • Manually confirm OpenRouter attributes representative text, image, and video requests to Marinara Engine.

Summary by CodeRabbit

  • New Features

    • Updated the application and installers to release version 2.2.1.
    • Added consistent app attribution for supported OpenRouter requests.
  • Bug Fixes

    • Roleplay Illustrator now honors prompts requesting lettering or rendered text.
    • Roleplay Text to Speech no longer replays unchanged or failed generations; autoplay occurs only for successful new responses or regenerated swipes.
  • Documentation

    • Updated the latest-release information to reference version 2.2.1.

🔄 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/3536 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/12/2026 **Status:** ✅ Merged **Merged:** 7/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/v2.2.1-roleplay-tts-failure` --- ### 📝 Commits (3) - [`0e5d275`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0e5d275aa8c9335831ca669d55abdc68fe035e53) Bump v2.2.1 and prevent failed-generation TTS replay - [`821f25a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/821f25afa9d2296aeccc5360fd95d70af6c010ab) Attribute every OpenRouter request - [`a10d096`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a10d09619d703d65c3cd9f832383d5a87eeb11d8) Allow requested Illustrator comic lettering ### 📊 Changes **24 files changed** (+320 additions, -54 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+14 -0) 📝 `README.md` (+1 -1) 📝 `android/app/build.gradle` (+3 -3) 📝 `package.json` (+1 -1) 📝 `packages/client/package.json` (+1 -1) 📝 `packages/client/public/manifest.json` (+1 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+45 -10) 📝 `packages/client/src/components/chat/HomeCreditsModal.tsx` (+10 -8) ➕ `packages/client/src/lib/tts-autoplay.ts` (+29 -0) 📝 `packages/server/package.json` (+1 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+8 -8) 📝 `packages/server/src/routes/generate/illustrator-references.ts` (+29 -0) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+8 -4) 📝 `packages/server/src/services/llm/base-provider.ts` (+0 -4) 📝 `packages/server/src/services/llm/providers/openai.provider.ts` (+1 -5) ➕ `packages/server/src/utils/openrouter-attribution.ts` (+31 -0) 📝 `packages/server/src/utils/security.ts` (+5 -1) 📝 `packages/shared/package.json` (+1 -1) 📝 `packages/shared/src/constants/defaults.ts` (+1 -1) 📝 `scripts/regressions/prompt.regression.ts` (+47 -0) _...and 4 more files_ </details> ### 📄 Description ## Why This prepares Marinara Engine v2.2.1 and fixes two Roleplay regressions discovered during release verification: failed generations could replay the previous response's audio, and Comic Page Illustrator requests were contradicted by a global negative prompt that banned the requested lettering. It also makes Marinara attribution consistent across every direct OpenRouter request. No issue is currently linked; a tracking issue should be opened before this draft is submitted for review. ## What changed - synchronized v2.2.1 across package metadata, the home page, PWA manifest, README release pointer, Windows installers, and Android metadata - advanced Android to versionCode 33 and refreshed contributor credits - prevented failed Roleplay generations from replaying TTS generated for the previous assistant message - centralized OpenRouter app attribution at the outbound request boundary for text, embeddings, image generation, model discovery, and video requests - made Illustrator text suppression conditional on the final compiled prompt, allowing explicitly requested speech bubbles, captions, signs, lettering, and SFX - preserved default accidental-text suppression for ordinary illustrations and watermark/logo/signature suppression for all illustrations - added provider, Roleplay streaming/TTS, and prompt-policy regression coverage - updated the v2.2.1 changelog ## Root causes - TTS autoplay reacted to any streaming transition from active to inactive and selected the latest assistant message, even when the generation ended in failure. - OpenRouter attribution was assembled in individual provider paths, leaving direct media transports unattributed. - Roleplay Illustrator unconditionally appended a negative prompt banning all rendered text after the agent had explicitly requested comic lettering. ## Validation - `pnpm check` - `pnpm regression:roleplay` - `pnpm regression:providers` - `pnpm regression:prompt` - `pnpm smoke:ui` - `pnpm version:check` - `pnpm credits:check` - release-note rendering and diff validation ## Manual verification - [ ] Manually verify the home page and application metadata display v2.2.1. - [ ] Manually fail a Roleplay generation after a response with generated audio and confirm the previous audio does not replay. - [ ] Manually generate a Roleplay Comic Page with dialogue, captions, and SFX and confirm the final request does not ban those elements. - [ ] Manually generate an ordinary Roleplay illustration and confirm accidental text remains discouraged. - [ ] Manually confirm OpenRouter attributes representative text, image, and video requests to Marinara Engine. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Updated the application and installers to release version 2.2.1. * Added consistent app attribution for supported OpenRouter requests. * **Bug Fixes** * Roleplay Illustrator now honors prompts requesting lettering or rendered text. * Roleplay Text to Speech no longer replays unchanged or failed generations; autoplay occurs only for successful new responses or regenerated swipes. * **Documentation** * Updated the latest-release information to reference version 2.2.1. <!-- 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:05: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#5984
No description provided.