[PR #6383] [MERGED] fix: VN speech, mobile activity, scene narration, inventory safety and Termux builds #7157

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

📋 Pull Request Information

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

Base: staging ← Head: codex/sept19-evening-sweep


📝 Commits (10+)

  • e863018 chore: start September 19 evening issue sweep
  • 1bdcb56 fix: follow VN speech and retain mobile activity edits; allow Termux build headroom
  • 124f138 Merge remote-tracking branch 'origin/staging' into codex/sept19-evening-sweep
  • 93ae2e2 docs: keep ruleset API status aligned with the new server combat support
  • 696e35b test: follow the Termux build helper in the launcher regression
  • b2d2e27 docs: explain Termux minimum heap precedence on small devices
  • 0532fe8 fix(docs): use reader theme colors for inline code
  • 99f4711 chore: begin follow-up issue sweep for tracker safety and settings
  • 0e1fe6a fix: reject incomplete and malformed inventory agent updates
  • 930d11d Merge remote-tracking branch 'origin/staging' into codex/sept19-evening-sweep

📊 Changes

26 files changed (+930 additions, -91 deletions)

View changed files

📝 CHANGELOG.md (+7 -0)
📝 android/README.md (+1 -1)
📝 docs/TROUBLESHOOTING.md (+6 -0)
📝 e2e/core-flows.e2e.ts (+22 -1)
📝 e2e/roleplay-vn.e2e.ts (+130 -2)
📝 e2e/scene-tts-preferences.e2e.ts (+85 -0)
➕ e2e/translation-long-output.e2e.ts (+95 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+18 -1)
📝 packages/client/src/components/chat/ChatMessage.tsx (+105 -69)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+55 -0)
📝 packages/client/src/components/chat/ConversationPresenceCard.tsx (+7 -3)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+46 -0)
➕ packages/client/src/lib/roleplay-vn-tts.ts (+69 -0)
📝 packages/client/src/lib/tts-dialogue.ts (+1 -0)
📝 packages/client/src/lib/tts-service.ts (+1 -0)
📝 packages/client/src/localization/locales/en.json (+5 -0)
📝 packages/client/src/stores/ui.store.ts (+15 -0)
📝 packages/client/src/styles/globals.css (+6 -0)
📝 packages/server/src/routes/scene.routes.ts (+12 -4)
📝 packages/server/src/services/agents/agent-executor.ts (+21 -4)

...and 6 more files

📄 Description

Linked issues

Closes #6373. Closes #6379. Closes #6380. Closes #6381. Closes #6387.

Investigates #6374 and #6388; the reported translation cutoff and Android/Termux settings slowdown remain open pending reporter-specific reproduction. Translated ruleset guides (#6371) are in #6384 against docs-i18n.

Why this change

VN speech previously read beyond the paragraph on screen, mobile keyboard events dismissed Conversation Presence while typing, and Termux used the server's small heap for the much larger client build. Scene return summaries also needed a clearer narrator instruction.

What changed

  • Follow manual and automatic TTS using the existing speech sequence, aligned to the paragraphs actually displayed after formatting/regex. Reuse the existing speech controls in VN and add a persistent Appearance autoplay toggle and delay. Timed playback waits for speech, pauses for editing/hidden pages, and stops at the end of the message.
  • Keep the Presence popup open while its editor has focus during keyboard resize/scroll, retaining the typed activity and existing dismissal controls.
  • Give Termux client builds temporary heap headroom toward 1536 MiB, capped for device RAM, while retaining the server limit and explicit user overrides. Explain recovery in the Android and troubleshooting guides.
  • Ask scene summaries to use an outside narrator and name whose feelings or thoughts are being described. Preserve message speaker identities in the summary input and keep the stored recap as a narrator message.
  • Reject incomplete Inventory Tracker JSON and malformed rows before they can replace saved inventory. Reuse the existing row validator and single-retry path, including batch fallback; keep complete legacy arrays and incremental updates supported.
  • Use the Docs reader theme colors for inline code so settings and paths remain legible in light mode; retain the shared renderer and document layout.
  • Add long-translation regression coverage through a real HTTP provider fixture, translation route, storage, browser rendering, and reload. No speculative translation change.

Speech alignment deliberately leaves paraphrased extractor output playing normally when it cannot be matched safely to displayed text.

Validation evidence

  • pnpm check passed, including TypeScript, ESLint, localization and production build. Final e2e type and localization checks passed after review/test adjustments.
  • Prompt regressions, launcher regressions, VN paragraph mapping (including display regex removal/merging), and connection/translation regressions passed.
  • Desktop Chromium, mobile Chromium and mobile WebKit: all six long-translation checks passed; all nine VN speech/Appearance checks passed. The iPhone Presence keyboard resize/pan/save check passed. All 30 translated-guide rendering checks and three Docs contrast checks passed.
  • Termux build failure reproduced at 1024 MiB; the client build passed at 1536 MiB, including the latest staging combat-screen integration. Launcher probes check 8/3/2 GiB and unknown RAM, explicit overrides, and unchanged server limits.
  • Built and ran a production Lite container using the existing unchanged dependency image plus freshly built artifacts. Health, app HTML and a JavaScript asset returned successfully. A full clean Docker build was interrupted by host disk exhaustion/OrbStack shutdown; this was an infrastructure failure, not a passing clean-container claim.
  • Local CodeRabbit review completed before publication and again for the Docs styling and inventory safety changes (no remaining findings). Fixed the hosted review findings about the searchable delay control and scene speaker identity; their targeted browser/route checks passed. Additional local passes for those two fixes and updated combat documentation hit the hourly review limit; GitHub CodeRabbit remains a merge gate.
  • The #6388 investigation exercised settings while a real main-model or custom-agent provider stream stayed open in all three browser projects; sections opened and a chat rename saved. This did not reproduce the Android/Termux report.
  • pnpm check passed again after merging the latest staging combat-screen work. Inventory regression checks and the captured before/after destructive-response fixture passed.
  • Browser screenshots and scope notes. The original mobile failure recording is in #6380.

Manual verification still needed

  • Manually verify voice timing with a real TTS provider, including pause/resume, dialogue-only and extracted voices.
  • Manually verify the activity editor with a physical iPhone keyboard.
  • Manually verify the launcher on the reporter's Android/Termux device; low-memory devices may still be unable to build.
  • Reproduce #6374 with a captured provider response and completion metadata; the fixture's 54,000+ characters remained complete in Roleplay and Conversation.
  • Read and followed CONTRIBUTING.md.

Documentation

Changelog entries accompany the product changes. #6384 includes translations of the new troubleshooting section alongside the ruleset guides. No version bump or dependency change.


🔄 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/6383 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/19/2026 **Status:** ✅ Merged **Merged:** 9/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/sept19-evening-sweep` --- ### 📝 Commits (10+) - [`e863018`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e863018c3dce6352dd8eae5f94bd99c96e4eef66) chore: start September 19 evening issue sweep - [`1bdcb56`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1bdcb56dec982a7799d32fde00538cb6c750ec12) fix: follow VN speech and retain mobile activity edits; allow Termux build headroom - [`124f138`](https://github.com/Pasta-Devs/Marinara-Engine/commit/124f1388bd63b9318ca629f94fbc0afe4e724cfc) Merge remote-tracking branch 'origin/staging' into codex/sept19-evening-sweep - [`93ae2e2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/93ae2e2dca63020ec31f984e1cb8dc779cfe6e41) docs: keep ruleset API status aligned with the new server combat support - [`696e35b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/696e35b79d9bb8808ed8eb80ced8cbdef9ae4b47) test: follow the Termux build helper in the launcher regression - [`b2d2e27`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b2d2e275342e58ef69f92575b52e27a3d8b56088) docs: explain Termux minimum heap precedence on small devices - [`0532fe8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0532fe8ca28e18a8dad78dff6ca7a6bfe043be96) fix(docs): use reader theme colors for inline code - [`99f4711`](https://github.com/Pasta-Devs/Marinara-Engine/commit/99f47113642478d3d9bb7da8029c45cc7d1def11) chore: begin follow-up issue sweep for tracker safety and settings - [`0e1fe6a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0e1fe6a6abbe721a61b4dcdd0a96fea9cbf1e606) fix: reject incomplete and malformed inventory agent updates - [`930d11d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/930d11d677ee7ff02a5913777ce4753a3d63d5d4) Merge remote-tracking branch 'origin/staging' into codex/sept19-evening-sweep ### 📊 Changes **26 files changed** (+930 additions, -91 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+7 -0) 📝 `android/README.md` (+1 -1) 📝 `docs/TROUBLESHOOTING.md` (+6 -0) 📝 `e2e/core-flows.e2e.ts` (+22 -1) 📝 `e2e/roleplay-vn.e2e.ts` (+130 -2) 📝 `e2e/scene-tts-preferences.e2e.ts` (+85 -0) ➕ `e2e/translation-long-output.e2e.ts` (+95 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+18 -1) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+105 -69) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+55 -0) 📝 `packages/client/src/components/chat/ConversationPresenceCard.tsx` (+7 -3) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+46 -0) ➕ `packages/client/src/lib/roleplay-vn-tts.ts` (+69 -0) 📝 `packages/client/src/lib/tts-dialogue.ts` (+1 -0) 📝 `packages/client/src/lib/tts-service.ts` (+1 -0) 📝 `packages/client/src/localization/locales/en.json` (+5 -0) 📝 `packages/client/src/stores/ui.store.ts` (+15 -0) 📝 `packages/client/src/styles/globals.css` (+6 -0) 📝 `packages/server/src/routes/scene.routes.ts` (+12 -4) 📝 `packages/server/src/services/agents/agent-executor.ts` (+21 -4) _...and 6 more files_ </details> ### 📄 Description ## Linked issues Closes #6373. Closes #6379. Closes #6380. Closes #6381. Closes #6387. Investigates #6374 and #6388; the reported translation cutoff and Android/Termux settings slowdown remain open pending reporter-specific reproduction. Translated ruleset guides (#6371) are in #6384 against `docs-i18n`. ## Why this change VN speech previously read beyond the paragraph on screen, mobile keyboard events dismissed Conversation Presence while typing, and Termux used the server's small heap for the much larger client build. Scene return summaries also needed a clearer narrator instruction. ## What changed - Follow manual and automatic TTS using the existing speech sequence, aligned to the paragraphs actually displayed after formatting/regex. Reuse the existing speech controls in VN and add a persistent Appearance autoplay toggle and delay. Timed playback waits for speech, pauses for editing/hidden pages, and stops at the end of the message. - Keep the Presence popup open while its editor has focus during keyboard resize/scroll, retaining the typed activity and existing dismissal controls. - Give Termux client builds temporary heap headroom toward 1536 MiB, capped for device RAM, while retaining the server limit and explicit user overrides. Explain recovery in the Android and troubleshooting guides. - Ask scene summaries to use an outside narrator and name whose feelings or thoughts are being described. Preserve message speaker identities in the summary input and keep the stored recap as a narrator message. - Reject incomplete Inventory Tracker JSON and malformed rows before they can replace saved inventory. Reuse the existing row validator and single-retry path, including batch fallback; keep complete legacy arrays and incremental updates supported. - Use the Docs reader theme colors for inline code so settings and paths remain legible in light mode; retain the shared renderer and document layout. - Add long-translation regression coverage through a real HTTP provider fixture, translation route, storage, browser rendering, and reload. No speculative translation change. Speech alignment deliberately leaves paraphrased extractor output playing normally when it cannot be matched safely to displayed text. ## Validation evidence - `pnpm check` passed, including TypeScript, ESLint, localization and production build. Final e2e type and localization checks passed after review/test adjustments. - Prompt regressions, launcher regressions, VN paragraph mapping (including display regex removal/merging), and connection/translation regressions passed. - Desktop Chromium, mobile Chromium and mobile WebKit: all six long-translation checks passed; all nine VN speech/Appearance checks passed. The iPhone Presence keyboard resize/pan/save check passed. All 30 translated-guide rendering checks and three Docs contrast checks passed. - Termux build failure reproduced at 1024 MiB; the client build passed at 1536 MiB, including the latest staging combat-screen integration. Launcher probes check 8/3/2 GiB and unknown RAM, explicit overrides, and unchanged server limits. - Built and ran a production Lite container using the existing unchanged dependency image plus freshly built artifacts. Health, app HTML and a JavaScript asset returned successfully. A full clean Docker build was interrupted by host disk exhaustion/OrbStack shutdown; this was an infrastructure failure, not a passing clean-container claim. - Local CodeRabbit review completed before publication and again for the Docs styling and inventory safety changes (no remaining findings). Fixed the hosted review findings about the searchable delay control and scene speaker identity; their targeted browser/route checks passed. Additional local passes for those two fixes and updated combat documentation hit the hourly review limit; GitHub CodeRabbit remains a merge gate. - The #6388 investigation exercised settings while a real main-model or custom-agent provider stream stayed open in all three browser projects; sections opened and a chat rename saved. This did not reproduce the Android/Termux report. - `pnpm check` passed again after merging the latest staging combat-screen work. Inventory regression checks and the captured before/after destructive-response fixture passed. - [Browser screenshots and scope notes](https://gist.github.com/SpicyMarinara/c7564cc5ed04dcf3a5d4aa6311a9352e). The original mobile failure recording is in #6380. ## Manual verification still needed - [ ] Manually verify voice timing with a real TTS provider, including pause/resume, dialogue-only and extracted voices. - [ ] Manually verify the activity editor with a physical iPhone keyboard. - [ ] Manually verify the launcher on the reporter's Android/Termux device; low-memory devices may still be unable to build. - [ ] Reproduce #6374 with a captured provider response and completion metadata; the fixture's 54,000+ characters remained complete in Roleplay and Conversation. - [ ] Read and followed `CONTRIBUTING.md`. ## Documentation Changelog entries accompany the product changes. #6384 includes translations of the new troubleshooting section alongside the ruleset guides. No version bump or dependency change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:17:03 +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#7157
No description provided.