[GH-ISSUE #3326] [Issue]: {{user}} macros are not evaluated in live audio prompt #1805

Closed
opened 2026-10-21 05:42:51 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In live audio mode, the generated prompt includes unresolved user macros in persona/character content. The same prompt also appears to include voice cue instructions that are read aloud and a closing </lorebook_entries> tag without a matching opening tag or visible entries.

Expected behavior

Live audio prompts should resolve user macros before sending, include well-formed lorebook sections when entries are triggered, and avoid causing TTS to read bracketed voice cues as spoken words.

Actual behavior

The live audio prompt shows unresolved {{user}}/{user}} text in persona and character blocks. It also includes output format guidance that can insert cues like [sighs], which are read aloud, and includes </lorebook_entries> without a visible opening tag or entries.

Steps to reproduce

  1. Start or inspect a live audio call request prompt.
  2. Check the <persona> block and observe {{user}} remains unresolved.
  3. Check the <characters> block and observe a malformed/unresolved user macro such as {user}}.
  4. Observe the <output_format> prompt text instructing voice cues such as [soft], [sighs], [brief pause], or [laughing quietly].
  5. Trigger lorebook entries and inspect the request prompt for lorebook tags.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Discord report: When looking at the <persona> for the live audio call, I see <persona>... {{user}}...</persona>. Also: <characters><character>...{user}}...</character><characters>. The prompt includes <output_format>...For voice turns, include natural TTS cues inside content or tone when useful, such as [soft], [sighs], [brief pause], or [laughing quietly], etc.</output_format>, which causes live audio to read words like sigh. Reporter also sees </lorebook_entries> in all requests without a start tag or entries, despite entries showing as triggered.

Additional context

Reporter asked whether the live audio prompt section can be exposed for editing. Maintainer replied they will look into the lorebook tag issue.

Discord thread: [Bug] {{user}} macros not eval'd in live audio mode
Discord thread link: https://discord.com/channels/1417099416812392641/1523837065043902484
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (4 messages)
[2026-07-06T23:44:27.830Z] AgentX: 1. When looking at the `<persona>` for the live audio call, I see `<persona>... {{user}}...</persona>`.

2. Also in the characters block, I see `<characters><character>...{user}}...</character><characters>`

3. Also, can this prompt be exposed so we can edit it? This part of the prompt: `<output_format>...For voice turns, include natural TTS cues inside content or tone when useful, such as [soft], [sighs], [brief pause], or [laughing quietly], etc.</output_format>` is inserting words like [sighs] in the middle of sentences and my live audio is reading the word 'sigh'. 

4. Lastly, I see a `</lorebook_entries>` in all requests, but I don't see the start tag or any lorebook entries even though a bunch are shown as being triggered.
[Discord message: https://discord.com/channels/1417099416812392641/1523837065043902484/1523837065043902484]

[2026-07-07T06:02:54.397Z] Marinara: 1. ?
2. You mean persona is also posted in characters?
[Discord message: https://discord.com/channels/1417099416812392641/1523837065043902484/1523932303288696883]

[2026-07-07T06:03:34.102Z] Marinara: 3. These are voice cues, though, all voice models should allow to set them up, no?
[Discord message: https://discord.com/channels/1417099416812392641/1523837065043902484/1523932469823541338]

[2026-07-07T06:04:01.685Z] Marinara: 4. I’ll look into it.
[Discord message: https://discord.com/channels/1417099416812392641/1523837065043902484/1523932585515024384]

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 (Jul 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3326 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In live audio mode, the generated prompt includes unresolved user macros in persona/character content. The same prompt also appears to include voice cue instructions that are read aloud and a closing </lorebook_entries> tag without a matching opening tag or visible entries. ## Expected behavior Live audio prompts should resolve user macros before sending, include well-formed lorebook sections when entries are triggered, and avoid causing TTS to read bracketed voice cues as spoken words. ## Actual behavior The live audio prompt shows unresolved `{{user}}`/`{user}}` text in persona and character blocks. It also includes output format guidance that can insert cues like `[sighs]`, which are read aloud, and includes `</lorebook_entries>` without a visible opening tag or entries. ## Steps to reproduce 1. Start or inspect a live audio call request prompt. 2. Check the `<persona>` block and observe `{{user}}` remains unresolved. 3. Check the `<characters>` block and observe a malformed/unresolved user macro such as `{user}}`. 4. Observe the `<output_format>` prompt text instructing voice cues such as `[soft]`, `[sighs]`, `[brief pause]`, or `[laughing quietly]`. 5. Trigger lorebook entries and inspect the request prompt for lorebook tags. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Discord report: `When looking at the <persona> for the live audio call, I see <persona>... {{user}}...</persona>`. Also: `<characters><character>...{user}}...</character><characters>`. The prompt includes `<output_format>...For voice turns, include natural TTS cues inside content or tone when useful, such as [soft], [sighs], [brief pause], or [laughing quietly], etc.</output_format>`, which causes live audio to read words like `sigh`. Reporter also sees `</lorebook_entries>` in all requests without a start tag or entries, despite entries showing as triggered. ## Additional context Reporter asked whether the live audio prompt section can be exposed for editing. Maintainer replied they will look into the lorebook tag issue. Discord thread: [Bug] {{user}} macros not eval'd in live audio mode Discord thread link: https://discord.com/channels/1417099416812392641/1523837065043902484 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-07-06T23:44:27.830Z] AgentX: 1. When looking at the `<persona>` for the live audio call, I see `<persona>... {{user}}...</persona>`. 2. Also in the characters block, I see `<characters><character>...{user}}...</character><characters>` 3. Also, can this prompt be exposed so we can edit it? This part of the prompt: `<output_format>...For voice turns, include natural TTS cues inside content or tone when useful, such as [soft], [sighs], [brief pause], or [laughing quietly], etc.</output_format>` is inserting words like [sighs] in the middle of sentences and my live audio is reading the word 'sigh'. 4. Lastly, I see a `</lorebook_entries>` in all requests, but I don't see the start tag or any lorebook entries even though a bunch are shown as being triggered. [Discord message: https://discord.com/channels/1417099416812392641/1523837065043902484/1523837065043902484] [2026-07-07T06:02:54.397Z] Marinara: 1. ? 2. You mean persona is also posted in characters? [Discord message: https://discord.com/channels/1417099416812392641/1523837065043902484/1523932303288696883] [2026-07-07T06:03:34.102Z] Marinara: 3. These are voice cues, though, all voice models should allow to set them up, no? [Discord message: https://discord.com/channels/1417099416812392641/1523837065043902484/1523932469823541338] [2026-07-07T06:04:01.685Z] Marinara: 4. I’ll look into it. [Discord message: https://discord.com/channels/1417099416812392641/1523837065043902484/1523932585515024384] ``` </details> ## 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.
bsakaguchi 2026-10-21 05:42:51 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jul 7, 2026):

Codex is picking this up for the v2.1.1 issue sweep in draft PR #3331.

<!-- gh-comment-id:4902332087 --> @SpicyMarinara commented on GitHub (Jul 7, 2026): Codex is picking this up for the v2.1.1 issue sweep in draft PR #3331.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 7, 2026):

Fixed in PR #3331 and merged to staging for v2.1.1. Thank you for the report.

<!-- gh-comment-id:4902884992 --> @SpicyMarinara commented on GitHub (Jul 7, 2026): Fixed in PR #3331 and merged to staging for v2.1.1. Thank you for the report.
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#1805
No description provided.