[GH-ISSUE #4714] [Issue]: Roleplay streaming shows formatting only after generation completes #2589

Closed
opened 2026-10-21 05:50:52 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

In Roleplay mode, streamed response text remains visually unformatted while generation is in progress. Markdown, asterisk-based italics, dialogue colors, and other text formatting appear only after streaming finishes.

Expected behavior

Roleplay output should render supported formatting incrementally as text streams in. Completed Markdown spans, italicized asterisk spans, dialogue colorization, and other supported styling should become visible during generation without waiting for the entire response to finish.

Incomplete formatting syntax at the current stream boundary should be handled gracefully until the closing syntax arrives.

Actual behavior

The response streams as unformatted text. Once generation completes, the message is rerendered and its Markdown, italics, dialogue colors, and other formatting suddenly appear.

This makes the streaming presentation look inconsistent and causes a noticeable visual change at the end of every formatted response.

Steps to reproduce

  1. Open a chat in Roleplay mode.
  2. Generate a response containing Markdown, text wrapped in asterisks, and dialogue that receives character/dialogue coloring.
  3. Watch the message while it is streaming.
  4. Observe that formatting is absent during streaming and appears only after generation completes.

Environment

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

Logs, screenshots, or video

No logs, screenshots, or video were provided.

Additional context

This report concerns Roleplay mode's live streaming renderer. The final committed message already renders correctly, so the streaming presentation should reuse or share the same formatting behavior where practical.

Prefer a small solution that updates formatting as completed syntax becomes available during the stream. It should not require waiting for generation completion, and the final committed message should remain visually consistent with what was shown while streaming.

Suggested verification:

  • Markdown emphasis appears during streaming once its closing syntax arrives.
  • Asterisk-based italic/action text is styled during streaming.
  • Dialogue colors appear while dialogue streams.
  • Incomplete Markdown at the current stream boundary does not throw, flicker excessively, or corrupt the final output.
  • The formatting does not disappear or visibly change when the streamed response is committed.

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 (Aug 7, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4714 Originally assigned to: @SpicyMarinara on GitHub. ## Summary In Roleplay mode, streamed response text remains visually unformatted while generation is in progress. Markdown, asterisk-based italics, dialogue colors, and other text formatting appear only after streaming finishes. ## Expected behavior Roleplay output should render supported formatting incrementally as text streams in. Completed Markdown spans, italicized asterisk spans, dialogue colorization, and other supported styling should become visible during generation without waiting for the entire response to finish. Incomplete formatting syntax at the current stream boundary should be handled gracefully until the closing syntax arrives. ## Actual behavior The response streams as unformatted text. Once generation completes, the message is rerendered and its Markdown, italics, dialogue colors, and other formatting suddenly appear. This makes the streaming presentation look inconsistent and causes a noticeable visual change at the end of every formatted response. ## Steps to reproduce 1. Open a chat in Roleplay mode. 2. Generate a response containing Markdown, text wrapped in asterisks, and dialogue that receives character/dialogue coloring. 3. Watch the message while it is streaming. 4. Observe that formatting is absent during streaming and appears only after generation completes. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No logs, screenshots, or video were provided. ## Additional context This report concerns Roleplay mode's live streaming renderer. The final committed message already renders correctly, so the streaming presentation should reuse or share the same formatting behavior where practical. Prefer a small solution that updates formatting as completed syntax becomes available during the stream. It should not require waiting for generation completion, and the final committed message should remain visually consistent with what was shown while streaming. Suggested verification: - Markdown emphasis appears during streaming once its closing syntax arrives. - Asterisk-based italic/action text is styled during streaming. - Dialogue colors appear while dialogue streams. - Incomplete Markdown at the current stream boundary does not throw, flicker excessively, or corrupt the final output. - The formatting does not disappear or visibly change when the streamed response is committed. ## 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-21 05:50:52 +07:00
Author
Owner

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

Work is underway in draft PR #4717, owned by @SpicyMarinara.

<!-- gh-comment-id:5218379085 --> @SpicyMarinara commented on GitHub (Aug 7, 2026): Work is underway in draft PR #4717, owned by @SpicyMarinara.
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#2589
No description provided.