[GH-ISSUE #4172] [Issue]: CYOA choice dialogue keeps model single-quote delimiters #2259

Closed
opened 2026-10-21 05:46:46 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

CYOA models often avoid escaped double quotes inside JSON string values by returning dialogue delimited with single quotes. Those single-quote delimiters are displayed and sent unchanged.

Expected behavior

A CYOA choice such as 'Stay here,' I whisper. should be normalized to "Stay here," I whisper. before it is persisted, displayed, or sent. Apostrophes in contractions and possessives must remain unchanged.

Actual behavior

Parsed CYOA choices[].text values retain the model-provided single-quote dialogue delimiters.

Steps to reproduce

  1. Enable the CYOA Choices agent in a Roleplay chat.
  2. Generate a choice whose JSON text uses single quotes around spoken dialogue.
  3. Observe the single quotes in the choice button and in the message sent after clicking it.

Environment

  • Marinara Engine version: current staging
  • Install type: not provided
  • OS + version: not provided
  • Browser or app shell: not provided

Logs, screenshots, or video

Example model text: 'Like this'

Additional context

The normalization belongs at the Engine agent-result boundary so main generation, batched execution, rerolls, persistence, display, and sends all receive the same corrected text.

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 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4172 Originally assigned to: @SpicyMarinara on GitHub. ## Summary CYOA models often avoid escaped double quotes inside JSON string values by returning dialogue delimited with single quotes. Those single-quote delimiters are displayed and sent unchanged. ## Expected behavior A CYOA choice such as `'Stay here,' I whisper.` should be normalized to `"Stay here," I whisper.` before it is persisted, displayed, or sent. Apostrophes in contractions and possessives must remain unchanged. ## Actual behavior Parsed CYOA `choices[].text` values retain the model-provided single-quote dialogue delimiters. ## Steps to reproduce 1. Enable the CYOA Choices agent in a Roleplay chat. 2. Generate a choice whose JSON text uses single quotes around spoken dialogue. 3. Observe the single quotes in the choice button and in the message sent after clicking it. ## Environment - Marinara Engine version: current `staging` - Install type: not provided - OS + version: not provided - Browser or app shell: not provided ## Logs, screenshots, or video Example model text: `'Like this'` ## Additional context The normalization belongs at the Engine agent-result boundary so main generation, batched execution, rerolls, persistence, display, and sends all receive the same corrected text. ## 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:46:46 +07:00
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#2259
No description provided.