Fix TTS message generation to include message_id in websocket handler

This commit is contained in:
vegu-ai-tools
2026-05-14 13:06:26 +03:00
parent 7fae536d17
commit 9cc28fa6fb
2 changed files with 4 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
- "Game Loop Event: Fixed an internal scene-loop event being constructed with the wrong scene reference, surfaced by the pydantic migration."
- "Conversation Agent: Stopped injecting `#` into the LLM stop-sequence list on every conversation turn. The conversation agent's prompt-parameter hook now only wipes character-name stop sequences when the `inject_character_names_into_stop` setting is disabled, and is a no-op otherwise."
- "Scene-Group Templates: Templates created via the prompt manager under the `scene` agent prefix (stored at `{scene}/templates/scene/`) are now resolvable from Jinja `{% include %}` calls regardless of the active agent type."
- "Intro Message TTS: Fixed the scene tools audio control not activating when TTS was manually triggered for the intro message. The intro isn't a real scene message and has no id, so audio playback was emitted without a message id; the `intro` id is now forwarded through generation."
0.37.0:
features:
- "System Prompt Template Variable: Added {{ system_prompt }} template variable for system prompt overrides. Use it to include the default system prompt within a custom override, at both the app and client level."

View File

@@ -553,7 +553,9 @@ class TTSWebsocketHandler(Plugin):
await self.signal_operation_failed("No text to generate speech for.")
return
await tts_agent.generate(text, character, message=message)
await tts_agent.generate(
text, character, message=message, message_id=payload.message_id
)
await self.signal_operation_done()