[GH-ISSUE #4540] [Issue]: Roleplay streaming renders responses in visible chunks #2474

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Streaming in Roleplay mode is still visibly delivered or rendered in chunks instead of updating smoothly. The text pauses and then advances in bursts, making a streaming response feel intermittently stalled.

Expected behavior

While a provider response is streaming, Roleplay mode should display frequent, smooth incremental text updates without perceptible pauses followed by large jumps.

Actual behavior

The visible response advances in discrete chunks. Text remains unchanged briefly, then several tokens or a larger segment appear at once.

Steps to reproduce

  1. Open a chat in Roleplay mode.
  2. Select a streaming-capable connection and model, with streaming enabled.
  3. Start a Firefox performance recording.
  4. Send a prompt that produces a sufficiently long response.
  5. Observe the assistant response while it streams: visible updates arrive in bursts rather than at a smooth cadence.

Environment

  • Marinara Engine version: Exact version was not recorded in the performance profile
  • Install type: Source / local browser build
  • OS + version: macOS 26.5.2
  • Browser or app shell: Firefox 153.0 release, ARM64 (build ID 20260715202819)

Logs, screenshots, or video

  • Firefox Profiler recording captured during the Roleplay streaming reproduction
  • Original capture: Firefox 2026-08-03 23.47 profile.json.gz
  • Capture length: approximately 40.7 seconds at a 1 ms sampling interval
  • Captured threads: 5, including the Roleplay tab's isolated web-content main thread and DOM worker
  • The web-content main thread recorded 197 long tasks of at least 50 ms; 95 exceeded 100 ms, and the longest was approximately 585.5 ms

These long tasks corroborate substantial main-thread stalls during the reproduction, but they do not by themselves prove whether the chunking originates in provider delivery, server buffering, client buffering, or rendering.

Additional context

Please use the profile to compare stream/network arrival cadence with client state updates and rendered commits in the isolated web-content process. The investigation should distinguish transport chunking from client-side buffering or expensive Roleplay rendering.

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 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4540 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Streaming in Roleplay mode is still visibly delivered or rendered in chunks instead of updating smoothly. The text pauses and then advances in bursts, making a streaming response feel intermittently stalled. ## Expected behavior While a provider response is streaming, Roleplay mode should display frequent, smooth incremental text updates without perceptible pauses followed by large jumps. ## Actual behavior The visible response advances in discrete chunks. Text remains unchanged briefly, then several tokens or a larger segment appear at once. ## Steps to reproduce 1. Open a chat in Roleplay mode. 2. Select a streaming-capable connection and model, with streaming enabled. 3. Start a Firefox performance recording. 4. Send a prompt that produces a sufficiently long response. 5. Observe the assistant response while it streams: visible updates arrive in bursts rather than at a smooth cadence. ## Environment - Marinara Engine version: Exact version was not recorded in the performance profile - Install type: Source / local browser build - OS + version: macOS 26.5.2 - Browser or app shell: Firefox 153.0 release, ARM64 (build ID 20260715202819) ## Logs, screenshots, or video - [Firefox Profiler recording captured during the Roleplay streaming reproduction](https://profiler.firefox.com/public/jvp08eksndrqc001vk98zhah1hbt84ke603mv98) - Original capture: `Firefox 2026-08-03 23.47 profile.json.gz` - Capture length: approximately 40.7 seconds at a 1 ms sampling interval - Captured threads: 5, including the Roleplay tab's isolated web-content main thread and DOM worker - The web-content main thread recorded 197 long tasks of at least 50 ms; 95 exceeded 100 ms, and the longest was approximately 585.5 ms These long tasks corroborate substantial main-thread stalls during the reproduction, but they do not by themselves prove whether the chunking originates in provider delivery, server buffering, client buffering, or rendering. ## Additional context Please use the profile to compare stream/network arrival cadence with client state updates and rendered commits in the isolated web-content process. The investigation should distinguish transport chunking from client-side buffering or expensive Roleplay rendering. ## 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:48:32 +07:00
Author
Owner

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

Implementation has started in draft PR #4553. Owner: @SpicyMarinara.

<!-- gh-comment-id:5175454763 --> @SpicyMarinara commented on GitHub (Aug 4, 2026): Implementation has started in draft PR #4553. Owner: @SpicyMarinara.
Author
Owner

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

Delivered to staging via #4553 (merge commit 7708b7f0b2).

<!-- gh-comment-id:5175920535 --> @SpicyMarinara commented on GitHub (Aug 4, 2026): Delivered to staging via #4553 (merge commit 7708b7f0b2581b90ae4fdc9e2eba787796005fab).
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#2474
No description provided.