mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6515] [MERGED] feat(tts): allow clearing cached audio for specific message #7207
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6515
Author: @menemorofaan
Created: 9/22/2026
Status: ✅ Merged
Merged: 9/23/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feature/tts-cache-clear📝 Commits (10+)
8a62ecbfeat(tts): allow clearing cached audio for specific message76108e3Merge branch 'staging' into feature/tts-cache-clear3687815fix(tts): prevent late persistent read from restoring purged audioc7daceeMerge branch 'staging' into feature/tts-cache-cleara00990aMerge branch 'staging' into feature/tts-cache-clear1aba299fix(i18n): sort clearCachedVoice key alphabetically9265b37Merge branch 'staging' into feature/tts-cache-clear039ee7fstyle: format ChatMessage.tsx with prettier539e2c6Merge branch 'staging' into feature/tts-cache-clear30545ccfeat(help): add eraser icon to legend and clean up unused variable📊 Changes
10 files changed (+308 additions, -76 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
e2e/chat-sweep.e2e.ts(+4 -4)📝
e2e/roleplay-vn.e2e.ts(+1 -0)📝
e2e/tts-mobile-playback.e2e.ts(+15 -6)📝
packages/client/src/components/chat/ChatHelpOverlay.tsx(+4 -5)📝
packages/client/src/components/chat/ChatMessage.tsx(+129 -49)📝
packages/client/src/lib/tts-audio-cache.ts(+56 -11)📝
packages/client/src/lib/tts-service.ts(+18 -1)📝
packages/client/src/localization/locales/en.json(+3 -0)➕
scripts/regressions/tts-cache-clear.regression.ts(+76 -0)📄 Description
Linked issue
Closes #6514
Why this change
marinara-tts-audio-cache), deleting cached voice lines across all other chats and characters.What changed
packages/client/src/lib/tts-audio-cache.ts:deleteCachedTTSAudioKeysto drop cache entries from memory and IndexedDB (both message keys and text-hash aliases).packages/client/src/lib/tts-service.ts:clearCachedAudiohelper method to extract cache keys and trigger eviction.packages/client/src/components/chat/ChatMessage.tsx:Eraseraction button to message toolbars (both standard and alternate layouts) to purge cache for that specific message.packages/client/src/localization/locales/en.json:"ui.chat.chatmessage.clearCachedVoice": "Clear cached voice".Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm buildon Windows.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue openedUI evidence (if applicable)
Summary by CodeRabbit
New Features
Bug Fixes
Maintainer integration verification
Reconciled with staging and restored the visual-novel dialogue layout, portraits and image lightbox. Kept the contributor's compact audio menu, updated its Help Overlay entry, added error feedback, and prevented late cache operations from restoring cleared audio.
pnpm checkpassed, including localization, types, lint and production build.Manual follow-up: verify your real TTS provider from the audio menu. The contributor's existing human checklist is preserved above.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.