[GH-ISSUE #3187] [Issue]: Chromium browsers freeze or lag during pending reply generation #1710

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Generating a reply can make Chromium-based browsers lag or freeze while Marinara is waiting for the model response. This happens in Edge and Brave. A quick Firefox test did not reproduce it.

Expected behavior

Reply generation should not make video/audio playback, other tabs, or the browser become unresponsive while waiting for a remote provider response.

Actual behavior

After clicking Send, Chromium-based browsers can become sluggish or unresponsive during the silent "waiting for reply" period before any assistant text appears.

This happens with both streaming enabled and streaming disabled, so it does not appear to be caused only by streamed token rendering or markdown rendering.

The provider is remote/self-hosted and is not running on the same client machine as the browser.

Browser task manager does not show obvious excessive CPU usage. With localStorage.mariPerfVerbose = "1", there may be a few long-task logs shortly after sending, but then logging goes quiet while video playback/browser responsiveness is still affected.

Steps to reproduce

  1. Open Marinara in Brave or Edge (or other chromium browser probably?).
  2. Start YouTube, Twitch, or another video/audio playback source in another tab or in the browser.
  3. Use a slow remote/self-hosted provider so reply generation waits a long time before returning text.
  4. Send a prompt that causes a long pending-generation period.
  5. Observe that video/audio playback, other tabs, or the browser may lag or freeze while Marinara waits for the response.
  6. Repeat the same quick test in Firefox. It does not appear to reproduce there.

Environment

  • Marinara Engine version: 2.0.9
  • Install type: docker
  • OS + version: linux
  • Browser: Brave and edge reproduce; quick Firefox test did not reproduce

Logs, screenshots, or video

With localStorage.mariPerfVerbose = "1", only a few long-task entries may appear shortly after clicking Send. After that, logging goes quiet even though video playback/browser responsiveness is still affected.

Example observed log:

[mari-perf] IDLE chat-area why-render — changed: characterMap, isPageActive
[mari-perf] long task 187ms
[mari-perf] long task 102ms
[mari-perf] long task 187ms

No repeated SLOW render warnings were observed during the main freeze/lag period.

Additional context

This appears to be client-side and Chromium-specific. It happens before any assistant text appears, while the animated waiting indicator is active, and it happens with streaming enabled or disabled. Quick replies may only show minor or barely noticeable lag, but slow upstream provider responses make the issue much easier to reproduce because the app stays in the pending generation state longer.

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 @calmcacil on GitHub (Jul 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3187 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Generating a reply can make Chromium-based browsers lag or freeze while Marinara is waiting for the model response. This happens in Edge and Brave. A quick Firefox test did not reproduce it. ## Expected behavior Reply generation should not make video/audio playback, other tabs, or the browser become unresponsive while waiting for a remote provider response. ## Actual behavior After clicking Send, Chromium-based browsers can become sluggish or unresponsive during the silent "waiting for reply" period before any assistant text appears. This happens with both streaming enabled and streaming disabled, so it does not appear to be caused only by streamed token rendering or markdown rendering. The provider is remote/self-hosted and is not running on the same client machine as the browser. Browser task manager does not show obvious excessive CPU usage. With `localStorage.mariPerfVerbose = "1"`, there may be a few long-task logs shortly after sending, but then logging goes quiet while video playback/browser responsiveness is still affected. ## Steps to reproduce 1. Open Marinara in Brave or Edge (or other chromium browser probably?). 2. Start YouTube, Twitch, or another video/audio playback source in another tab or in the browser. 3. Use a slow remote/self-hosted provider so reply generation waits a long time before returning text. 4. Send a prompt that causes a long pending-generation period. 5. Observe that video/audio playback, other tabs, or the browser may lag or freeze while Marinara waits for the response. 6. Repeat the same quick test in Firefox. It does not appear to reproduce there. ## Environment - Marinara Engine version: 2.0.9 - Install type: docker - OS + version: linux - Browser: Brave and edge reproduce; quick Firefox test did not reproduce ## Logs, screenshots, or video With `localStorage.mariPerfVerbose = "1"`, only a few long-task entries may appear shortly after clicking Send. After that, logging goes quiet even though video playback/browser responsiveness is still affected. Example observed log: ```text [mari-perf] IDLE chat-area why-render — changed: characterMap, isPageActive [mari-perf] long task 187ms [mari-perf] long task 102ms [mari-perf] long task 187ms ``` No repeated `SLOW` render warnings were observed during the main freeze/lag period. ## Additional context This appears to be client-side and Chromium-specific. It happens before any assistant text appears, while the animated waiting indicator is active, and it happens with streaming enabled or disabled. Quick replies may only show minor or barely noticeable lag, but slow upstream provider responses make the issue much easier to reproduce because the app stays in the pending generation state longer. ## 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:41:55 +07:00
Author
Owner

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

Confirming, I use Firefox and have never experienced the bug, so it must be related to other browsers.

<!-- gh-comment-id:4881559732 --> @SpicyMarinara commented on GitHub (Jul 4, 2026): Confirming, I use Firefox and have never experienced the bug, so it must be related to other browsers.
Author
Owner

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

Addressed in draft PR #3200.

<!-- gh-comment-id:4881636030 --> @SpicyMarinara commented on GitHub (Jul 4, 2026): Addressed in draft PR #3200.
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#1710
No description provided.