mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5059] [Issue]: Roleplay speaker extractor can skip narration during TTS playback #2801
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#2801
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?
Originally created by @SpicyMarinara on GitHub (Aug 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5059
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Roleplay speaker extraction reconstructs the full message, but long messages with several narration paragraphs can be read only partially because the TTS queue starts all non-progressive audio-generation requests concurrently and silently skips failed chunks.
Expected behavior
When Only read dialogues is disabled, every narration and dialogue segment from the generated Roleplay message should be spoken in source order. If a provider request fails, playback should report the failure instead of silently omitting that text.
Actual behavior
A tested Roleplay message retained its quoted Columbina dialogue but skipped several narration paragraphs, a markdown warning block, and the final countdown. The current non-progressive queue uses an unbounded Promise.all burst and filters failed requests out before playback.
Steps to reproduce
Environment
Logs, screenshots, or video
No browser console log was captured. The reported omitted text includes ordinary narration, a three-line blockquote warning, and a final bold countdown.
Additional context
Reported while testing the Roleplay speaker extractor added in #5057. The narrow fix should reduce extractor narration request fragmentation, serialize non-progressive pre-generation, and stop treating failed chunks as safely skippable.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Aug 15, 2026):
@SpicyMarinara is taking this regression fix.
@SpicyMarinara commented on GitHub (Aug 15, 2026):
Additional test feedback is now covered on PR #5060: TTS receives a finalized-assistant-message signal before Illustrator and other non-rewriting agents finish, while active text-rewrite agents remain a required barrier. The Roleplay speaker extractor input also now explicitly mentions
jsonfor Responses API structured-output compatibility.