[GH-ISSUE #8026] [Issue]: Roleplay TTS autoplay waits for non-rewriting agents before starting voice generation #7527

Closed
opened 2026-10-24 04:03:52 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8026

Originally assigned to: @SpicyMarinara on GitHub.

Summary

With TTS and auto-play enabled in roleplay mode, voice generation waits for every agent to finish after the main response is received. This adds unnecessary delay when the extra calls only decide the speaker and emotions.

Reported by @SpicyMarinara; not independently reproduced while filing this issue.

Expected behavior

Voice generation should start as soon as the main model response is received, without waiting for non-rewriting agents such as speaker or emotion analysis.

Exception: if any enabled agent rewrites the response text (for example, Prose Guardian), wait for the rewriting agents to finish and generate speech from the final rewritten response.

Actual behavior

Voice generation only starts after all agents have finished, including the extra speaker and emotion calls.

Steps to reproduce

Based on the reported setup:

  1. Open a roleplay chat with TTS and auto-play enabled.
  2. Enable additional calls to decide the speaker and emotions.
  3. Generate a response and observe when voice generation begins relative to the main response and the extra agent calls.

Environment

  • Marinara Engine version: Not provided.
  • Install type: (source / installer / docker / termux / other) Not provided.
  • OS + version: Not provided.
  • Browser or app shell: Not provided.

Logs, screenshots, or video

Not provided.

Additional context

The goal is to reduce the delay before automatic speech begins while ensuring that text-rewriting agents remain a prerequisite for voice generation. The exception applies to any enabled rewriting agent, not only Prose Guardian.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8026 Originally assigned to: @SpicyMarinara on GitHub. ## Summary With TTS and auto-play enabled in roleplay mode, voice generation waits for every agent to finish after the main response is received. This adds unnecessary delay when the extra calls only decide the speaker and emotions. Reported by @SpicyMarinara; not independently reproduced while filing this issue. ## Expected behavior Voice generation should start as soon as the main model response is received, without waiting for non-rewriting agents such as speaker or emotion analysis. Exception: if any enabled agent rewrites the response text (for example, Prose Guardian), wait for the rewriting agents to finish and generate speech from the final rewritten response. ## Actual behavior Voice generation only starts after all agents have finished, including the extra speaker and emotion calls. ## Steps to reproduce Based on the reported setup: 1. Open a roleplay chat with TTS and auto-play enabled. 2. Enable additional calls to decide the speaker and emotions. 3. Generate a response and observe when voice generation begins relative to the main response and the extra agent calls. ## Environment - Marinara Engine version: Not provided. - Install type: (source / installer / docker / termux / other) Not provided. - OS + version: Not provided. - Browser or app shell: Not provided. ## Logs, screenshots, or video Not provided. ## Additional context The goal is to reduce the delay before automatic speech begins while ensuring that text-rewriting agents remain a prerequisite for voice generation. The exception applies to any enabled rewriting agent, not only Prose Guardian. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [x] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-24 04:03:52 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 21, 2026):

Codex is handling this issue in the maintainer's assigned-issue sweep, on fix/assigned-issue-sweep-20261022, targeting staging. Existing contributor PRs are excluded from this sweep. Ownership: @SpicyMarinara, assisted by Codex.

<!-- gh-comment-id:6327668547 --> @SpicyMarinara commented on GitHub (Oct 21, 2026): Codex is handling this issue in the maintainer's assigned-issue sweep, on `fix/assigned-issue-sweep-20261022`, targeting `staging`. Existing contributor PRs are excluded from this sweep. Ownership: @SpicyMarinara, assisted by Codex.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 21, 2026):

Implemented in #8027 and merged into staging at 4d67fe75b3. Reviewed-head and merge ancestry are verified.

Roleplay publishes the saved main response before unrelated activation calls when no text-rewriting agent is enabled, allowing the existing speaker/emotion preparation to start earlier. Enabled rewriting agents still hold readiness until the final text is saved. Macro variables are committed before the next turn is unlocked. Delayed-agent, rewrite, concurrent-turn, error/abort and exactly-once/backpressure controls passed.

Final PR-head validation passed all eight required checks, 973/973 Node regressions and all ten platform checks; review findings were fixed or resolved with documented reasons. Closing as completed.

<!-- gh-comment-id:6328923283 --> @SpicyMarinara commented on GitHub (Oct 21, 2026): Implemented in #8027 and merged into `staging` at [4d67fe75b3](https://github.com/Pasta-Devs/Marinara-Engine/commit/4d67fe75b31b5fc97649ba340cb69832822395de). Reviewed-head and merge ancestry are verified. Roleplay publishes the saved main response before unrelated activation calls when no text-rewriting agent is enabled, allowing the existing speaker/emotion preparation to start earlier. Enabled rewriting agents still hold readiness until the final text is saved. Macro variables are committed before the next turn is unlocked. Delayed-agent, rewrite, concurrent-turn, error/abort and exactly-once/backpressure controls passed. Final PR-head validation passed all eight required checks, 973/973 Node regressions and all ten platform checks; review findings were fixed or resolved with documented reasons. Closing as completed.
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#7527
No description provided.