[PR #3181] [MERGED] [codex] Fix game NPC portraits, TTS NPC voices, and Termux update #5831

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

📋 Pull Request Information

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

Base: staging ← Head: codex/issue-sweep-3178-3180


📝 Commits (2)

  • 4105bce Start issue sweep 3178-3180
  • e200a3e Fix game NPC portraits, TTS voices, and Termux schema imports

📊 Changes

5 files changed (+178 additions, -58 deletions)

View changed files

📝 packages/client/src/components/panels/settings/TTSConfigCard.tsx (+50 -46)
📝 packages/client/src/lib/tts-dialogue.ts (+5 -4)
📝 packages/server/src/db/schema/gallery.ts (+2 -2)
📝 packages/server/src/routes/game.routes.ts (+53 -6)
📝 scripts/regressions/prompt.regression.ts (+68 -0)

📄 Description

Why

Fixes #3178.
Fixes #3179.
Fixes #3180.

This PR handles the current issue sweep for Game Mode NPC portrait prompts, Termux staging startup, and NPC TTS fallback/random voice behavior.

What Changed

  • Includes canonical Game Mode NPC descriptions, current tracker appearance, outfit, mood, and notes when composing NPC portrait image prompts, instead of stopping at the first non-empty description.
  • Fixes the server schema import extension in gallery.ts so the Android/low-memory esbuild output imports emitted .js modules instead of missing source .ts modules.
  • Exposes Random NPC Voices for all TTS providers, not only ElevenLabs.
  • Allows non-ElevenLabs TTS providers to use stable random NPC voice pools, including shared/unpartitioned pools for local providers.
  • Adds a prompt regression covering non-ElevenLabs NPC default voice resolution.

Validation

Ran locally:

  • pnpm regression:prompt
  • MARINARA_LOW_MEMORY_BUILD=1 pnpm --filter @marinara-engine/server build
  • pnpm --filter @marinara-engine/server lint
  • pnpm --filter @marinara-engine/client lint
  • pnpm check

Confirmed emitted low-memory server output has packages/server/dist/db/schema/gallery.js importing ./chats.js and ./characters.js.

Manual Verification Needed

  • In Game Mode, generate/regenerate an NPC portrait for an NPC with a stored generated description and confirm the prompt includes that description.
  • On Termux/Android, update to this staging build and confirm the server starts without the missing chats.ts import error.
  • With an OpenAI-compatible/Chatterbox TTS server, enable per-character voices and Random NPC Voices, then confirm unprofiled Game Mode NPC dialogue is voiced.

Summary by CodeRabbit

  • New Features

    • Expanded random NPC voice options to work with all TTS providers, with clearer guidance when voices haven’t loaded yet.
    • Improved NPC portrait appearance details by combining appearance, outfit, expression, and notable notes into a richer description.
  • Bug Fixes

    • Fixed voice selection so NPCs can still get a default voice when gender-specific pools are empty.
    • Updated fallback messaging for empty voice lists to be more generic.
  • Tests

    • Added regression coverage for NPC voice selection across multiple provider pool scenarios.

🔄 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/3181 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/3/2026 **Status:** ✅ Merged **Merged:** 7/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/issue-sweep-3178-3180` --- ### 📝 Commits (2) - [`4105bce`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4105bce73530605436e8d9c1f4585e4e39575c5f) Start issue sweep 3178-3180 - [`e200a3e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e200a3e033b772dfcd2b2afddc8896e5980f9523) Fix game NPC portraits, TTS voices, and Termux schema imports ### 📊 Changes **5 files changed** (+178 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/panels/settings/TTSConfigCard.tsx` (+50 -46) 📝 `packages/client/src/lib/tts-dialogue.ts` (+5 -4) 📝 `packages/server/src/db/schema/gallery.ts` (+2 -2) 📝 `packages/server/src/routes/game.routes.ts` (+53 -6) 📝 `scripts/regressions/prompt.regression.ts` (+68 -0) </details> ### 📄 Description ## Why Fixes #3178. Fixes #3179. Fixes #3180. This PR handles the current issue sweep for Game Mode NPC portrait prompts, Termux staging startup, and NPC TTS fallback/random voice behavior. ## What Changed - Includes canonical Game Mode NPC descriptions, current tracker appearance, outfit, mood, and notes when composing NPC portrait image prompts, instead of stopping at the first non-empty description. - Fixes the server schema import extension in `gallery.ts` so the Android/low-memory esbuild output imports emitted `.js` modules instead of missing source `.ts` modules. - Exposes Random NPC Voices for all TTS providers, not only ElevenLabs. - Allows non-ElevenLabs TTS providers to use stable random NPC voice pools, including shared/unpartitioned pools for local providers. - Adds a prompt regression covering non-ElevenLabs NPC default voice resolution. ## Validation Ran locally: - `pnpm regression:prompt` - `MARINARA_LOW_MEMORY_BUILD=1 pnpm --filter @marinara-engine/server build` - `pnpm --filter @marinara-engine/server lint` - `pnpm --filter @marinara-engine/client lint` - `pnpm check` Confirmed emitted low-memory server output has `packages/server/dist/db/schema/gallery.js` importing `./chats.js` and `./characters.js`. ## Manual Verification Needed - [ ] In Game Mode, generate/regenerate an NPC portrait for an NPC with a stored generated description and confirm the prompt includes that description. - [ ] On Termux/Android, update to this staging build and confirm the server starts without the missing `chats.ts` import error. - [ ] With an OpenAI-compatible/Chatterbox TTS server, enable per-character voices and Random NPC Voices, then confirm unprofiled Game Mode NPC dialogue is voiced. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Expanded random NPC voice options to work with all TTS providers, with clearer guidance when voices haven’t loaded yet. * Improved NPC portrait appearance details by combining appearance, outfit, expression, and notable notes into a richer description. * **Bug Fixes** * Fixed voice selection so NPCs can still get a default voice when gender-specific pools are empty. * Updated fallback messaging for empty voice lists to be more generic. * **Tests** * Added regression coverage for NPC voice selection across multiple provider pool scenarios. <!-- 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-22 04:19:58 +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#5831
No description provided.