[PR #1739] [MERGED] fix(gacha-forge): stop reading sent chat messages aloud (1.24.4) #1947

Closed
opened 2026-11-07 16:38:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1739
Author: @SpicyMarinara
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/gacha-forge-no-sent-message-voice


📝 Commits (1)

  • 38a6ec1 fix(gacha-forge): stop reading sent chat messages aloud (1.24.4)

📊 Changes

16 files changed (+210 additions, -455 deletions)

View changed files

➕ artifacts/gacha-forge-1.24.4.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/gacha-forge/CHANGELOG.md (+4 -0)
📝 packages/gacha-forge/README.md (+1 -1)
📝 packages/gacha-forge/bundle-patches.json (+38 -0)
📝 packages/gacha-forge/client.js (+3 -74)
📝 packages/gacha-forge/manifest.json (+3 -3)
📝 packages/gacha-forge/src/chat-continuity-client.mjs (+0 -71)
📝 tests/gacha-forge-battle-power.regression.mjs (+1 -4)
📝 tests/gacha-forge-persona-voices.regression.mjs (+118 -196)
📝 tests/package-gacha-forge-audio.e2e.ts (+6 -70)

📄 Description

Linked issue

Closes #1738

Why this change

With a voice assigned to the persona and Gacha Forge dialogue audio on, every message the player sends in a character chat is read aloud in the persona's voice. Mari reported that this should not happen in Gacha Forge: your own typed messages should stay silent there. 1.24.2 (#1730, #1731) added this on purpose. This PR removes that one path. The persona voice for generated story dialogue stays.

What changed

  • Removed sent-message speech from src/chat-continuity-client.mjs. That is speakForgeSavedPlayer, its call in adoptForgeChatSnapshot, and the voice-session plumbing it needed (forgeChatVoiceSessions, stopForgeChatVoice, forgeChatVoiceSession). The source change is a pure deletion.

  • Kept the rest of 1.24.2:

    • exact playerMessageId reconciliation;
    • the server's playerMessageId echo;
    • Send busy-guard ownership;
    • persona ID projection into the story cast.

    The first three fix chat row ownership and send ordering independently of speech. The last is what lets story dialogue use the persona voice.

  • Appended a 1.24.4 client.js ledger entry. It removes the six bundle call sites, bumps the version readout and adds the in-game What's-new. Existing ledger entries are unchanged (pure append). The server bundle is unchanged.

  • Rebuilt Gacha Forge 1.24.4: manifest, client.js, catalog lanes and notes, and artifacts/gacha-forge-1.24.4.zip. The 1.24.0–1.24.3 archives are untouched.

  • Updated the CHANGELOG and the README persona-voice paragraph.

  • Tests:

    • gacha-forge-persona-voices.regression.mjs now proves a confirmed send never reaches audio.speak or the TTS service. It covers success, failed-reply reconciliation, duplicate confirmations and later refreshes.
    • It still covers busy-guard ordering and cleanup, exact-ID and same-text row ownership, story cast voice selection, and the SDK playerMessageId contract.
    • Against the 1.24.3 code, 4 of its tests fail on speech reaching audio.speak.
    • In package-gacha-forge-audio.e2e.ts, the two "Newly sent persona letters…" browser tests are replaced by one. It sends and refreshes a letter with an assigned persona voice and dialogue audio on, and expects zero speech. The story-dialogue persona test is unchanged.

Engine chats are not affected; this is package-only.

Package and security impact

Only gacha-forge is affected. Entrypoints, permissions, Engine compatibility, dependencies, storage and settings are unchanged. No persisted fields were added or removed.

Validation

  • npm run check: passed.
  • Catalog lanes, package locales, catalog validation and the release-notes regression: passed.
  • All 65 tests/gacha-forge-*.regression.mjs files passed: 444 counted cases, 0 failed.
  • A repeat build is byte-identical.
  • Playwright browser suites run in CI.

Manual verification

  • With a persona voice assigned and dialogue audio on, send a message in a Gacha Forge character chat and confirm nothing is read aloud.
  • In the same world, play a story scene where the protagonist speaks and confirm the persona voice still reads that line.
  • Update Gacha Forge from the packages screen and confirm the in-game What's-new shows 1.24.4.

🤖 Generated with Claude Code


🔄 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-Agents/pull/1739 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/gacha-forge-no-sent-message-voice` --- ### 📝 Commits (1) - [`38a6ec1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/38a6ec1cb954db23975490e15a20fabf0ad50b4a) fix(gacha-forge): stop reading sent chat messages aloud (1.24.4) ### 📊 Changes **16 files changed** (+210 additions, -455 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.24.4.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/gacha-forge/CHANGELOG.md` (+4 -0) 📝 `packages/gacha-forge/README.md` (+1 -1) 📝 `packages/gacha-forge/bundle-patches.json` (+38 -0) 📝 `packages/gacha-forge/client.js` (+3 -74) 📝 `packages/gacha-forge/manifest.json` (+3 -3) 📝 `packages/gacha-forge/src/chat-continuity-client.mjs` (+0 -71) 📝 `tests/gacha-forge-battle-power.regression.mjs` (+1 -4) 📝 `tests/gacha-forge-persona-voices.regression.mjs` (+118 -196) 📝 `tests/package-gacha-forge-audio.e2e.ts` (+6 -70) </details> ### 📄 Description ## Linked issue Closes #1738 ## Why this change With a voice assigned to the persona and Gacha Forge dialogue audio on, every message the player sends in a character chat is read aloud in the persona's voice. Mari reported that this should not happen in Gacha Forge: your own typed messages should stay silent there. 1.24.2 (#1730, #1731) added this on purpose. This PR removes that one path. The persona voice for generated story dialogue stays. ## What changed - Removed sent-message speech from `src/chat-continuity-client.mjs`. That is `speakForgeSavedPlayer`, its call in `adoptForgeChatSnapshot`, and the voice-session plumbing it needed (`forgeChatVoiceSessions`, `stopForgeChatVoice`, `forgeChatVoiceSession`). The source change is a pure deletion. - Kept the rest of 1.24.2: - exact `playerMessageId` reconciliation; - the server's `playerMessageId` echo; - Send busy-guard ownership; - persona ID projection into the story cast. The first three fix chat row ownership and send ordering independently of speech. The last is what lets story dialogue use the persona voice. - Appended a 1.24.4 `client.js` ledger entry. It removes the six bundle call sites, bumps the version readout and adds the in-game What's-new. Existing ledger entries are unchanged (pure append). The server bundle is unchanged. - Rebuilt Gacha Forge 1.24.4: manifest, `client.js`, catalog lanes and notes, and `artifacts/gacha-forge-1.24.4.zip`. The 1.24.0–1.24.3 archives are untouched. - Updated the CHANGELOG and the README persona-voice paragraph. - Tests: - `gacha-forge-persona-voices.regression.mjs` now proves a confirmed send never reaches `audio.speak` or the TTS service. It covers success, failed-reply reconciliation, duplicate confirmations and later refreshes. - It still covers busy-guard ordering and cleanup, exact-ID and same-text row ownership, story cast voice selection, and the SDK `playerMessageId` contract. - Against the 1.24.3 code, 4 of its tests fail on speech reaching `audio.speak`. - In `package-gacha-forge-audio.e2e.ts`, the two "Newly sent persona letters…" browser tests are replaced by one. It sends and refreshes a letter with an assigned persona voice and dialogue audio on, and expects zero speech. The story-dialogue persona test is unchanged. Engine chats are not affected; this is package-only. ## Package and security impact Only `gacha-forge` is affected. Entrypoints, permissions, Engine compatibility, dependencies, storage and settings are unchanged. No persisted fields were added or removed. ## Validation - `npm run check`: passed. - Catalog lanes, package locales, catalog validation and the release-notes regression: passed. - All 65 `tests/gacha-forge-*.regression.mjs` files passed: 444 counted cases, 0 failed. - A repeat build is byte-identical. - Playwright browser suites run in CI. ### Manual verification - [ ] With a persona voice assigned and dialogue audio on, send a message in a Gacha Forge character chat and confirm nothing is read aloud. - [ ] In the same world, play a story scene where the protagonist speaks and confirm the persona voice still reads that line. - [ ] Update Gacha Forge from the packages screen and confirm the in-game What's-new shows 1.24.4. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:14 +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-Agents#1947
No description provided.