[GH-ISSUE #5365] [Issue]: Streaming text freezes iOS browsers during generation #2968

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Streaming responses abort mid-generation on iOS browsers when Smooth Streaming Text is enabled. The response freezes at roughly 75% completion and the UI becomes unresponsive, while desktop browsers do not reproduce the issue under identical conditions.

Expected behavior

The AI response should stream to completion without freezing the page, locking the UI, or aborting the request.

Actual behavior

The response streams normally until approximately 75% complete, then freezes. UI buttons become unresponsive, and the reverse proxy reports that the client aborted the streaming request.

Steps to reproduce

  1. Run Marinara Engine self-hosted with Docker Compose behind a Caddy reverse proxy.
  2. Open Marinara Engine on an iOS browser.
  3. Enable Streaming Text / Smooth Streaming Text in settings.
  4. Start a chat completion using the OpenRouter provider and the anthropic/claude-opus-4.6 model.
  5. Observe that the response freezes at roughly 75% completion and the UI becomes unresponsive.

Environment

  • Marinara Engine version: 2.4.3 (build 2.4.3+34442e26da57, commit 34442e26da)
  • Install type: docker
  • OS + version: Server: Linux 6.8.0-137-generic (x64); client: iOS 18.7
  • Browser or app shell: iOS Safari, Chrome, and Firefox; reported user agent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6 Mobile/15E148 Safari/604.1

Logs, screenshots, or video

Caddy reverse proxy log: "msg":"aborting with incomplete response","upstream":"127.0.0.1:7860","uri":"/api/generate","error":"reading: context canceled". No screenshots or video provided.

Additional context

The issue was tested across multiple iOS browsers and chat completion models. It has not been reproduced on desktop browsers under identical conditions. Disabling Smooth Streaming Text in settings appears to resolve the issue completely. Active connection: OpenRouter Opus 4.6; provider: openrouter; model: anthropic/claude-opus-4.6. GPU: Apple GPU.

Discord thread: Text streaming freezes app on iOS mobile browsers
Discord thread link: https://discord.com/channels/1417099416812392641/1540388182787629086
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-08-21T15:52:41.805Z] wait have i: Streaming responses are aborted mid-generation on iOS browsers when "Streaming Text" is enabled. AI response streams in normally, then freezes at roughly 75% complete. UI locks up (buttons unresponsive), page otherwise still loaded. Haven't been able to reproduce on desktop browser under identical conditions.

Tested across multiple iOS browsers (Safari, Chrome, Firefox) and chat completion models.

I've got ME self-hosted via Docker Compose, behind Caddy reverse proxy. Caddy's reverse proxy log shows request aborted client-side mid-stream:
` ` `"msg":"aborting with incomplete response","upstream":"127.0.0.1:7860","uri":"/api/generate","error":"reading: context canceled"` ` `

**Disabling "Smooth Streaming Text" in settings seems to resolve it completely; issue has not yet recurred.**

Thanks for all the hard work that goes into ME, it's best in class even at this early stage!

Marinara Engine diagnostics
Version: 2.4.3
Build: 2.4.3+34442e26da57
Commit: 34442e26da57
Server OS: Linux 6.8.0-137-generic (x64)
Client OS: iOS 18.7
Browser / app shell: Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6 Mobile/15E148 Safari/604.1
GPU: Apple GPU
Active connection: OpenRouter Opus 4.6
Connection provider: openrouter
LLM model: anthropic/claude-opus-4.6
[Discord message: https://discord.com/channels/1417099416812392641/1540388182787629086/1540388182787629086]

[2026-08-21T15:52:42.446Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1540388182787629086/1540388185476174033]

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 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5365 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Streaming responses abort mid-generation on iOS browsers when Smooth Streaming Text is enabled. The response freezes at roughly 75% completion and the UI becomes unresponsive, while desktop browsers do not reproduce the issue under identical conditions. ## Expected behavior The AI response should stream to completion without freezing the page, locking the UI, or aborting the request. ## Actual behavior The response streams normally until approximately 75% complete, then freezes. UI buttons become unresponsive, and the reverse proxy reports that the client aborted the streaming request. ## Steps to reproduce 1. Run Marinara Engine self-hosted with Docker Compose behind a Caddy reverse proxy. 2. Open Marinara Engine on an iOS browser. 3. Enable Streaming Text / Smooth Streaming Text in settings. 4. Start a chat completion using the OpenRouter provider and the anthropic/claude-opus-4.6 model. 5. Observe that the response freezes at roughly 75% completion and the UI becomes unresponsive. ## Environment - Marinara Engine version: 2.4.3 (build 2.4.3+34442e26da57, commit 34442e26da57) - Install type: docker - OS + version: Server: Linux 6.8.0-137-generic (x64); client: iOS 18.7 - Browser or app shell: iOS Safari, Chrome, and Firefox; reported user agent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6 Mobile/15E148 Safari/604.1 ## Logs, screenshots, or video Caddy reverse proxy log: "msg":"aborting with incomplete response","upstream":"127.0.0.1:7860","uri":"/api/generate","error":"reading: context canceled". No screenshots or video provided. ## Additional context The issue was tested across multiple iOS browsers and chat completion models. It has not been reproduced on desktop browsers under identical conditions. Disabling Smooth Streaming Text in settings appears to resolve the issue completely. Active connection: OpenRouter Opus 4.6; provider: openrouter; model: anthropic/claude-opus-4.6. GPU: Apple GPU. Discord thread: Text streaming freezes app on iOS mobile browsers Discord thread link: https://discord.com/channels/1417099416812392641/1540388182787629086 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-08-21T15:52:41.805Z] wait have i: Streaming responses are aborted mid-generation on iOS browsers when "Streaming Text" is enabled. AI response streams in normally, then freezes at roughly 75% complete. UI locks up (buttons unresponsive), page otherwise still loaded. Haven't been able to reproduce on desktop browser under identical conditions. Tested across multiple iOS browsers (Safari, Chrome, Firefox) and chat completion models. I've got ME self-hosted via Docker Compose, behind Caddy reverse proxy. Caddy's reverse proxy log shows request aborted client-side mid-stream: ` ` `"msg":"aborting with incomplete response","upstream":"127.0.0.1:7860","uri":"/api/generate","error":"reading: context canceled"` ` ` **Disabling "Smooth Streaming Text" in settings seems to resolve it completely; issue has not yet recurred.** Thanks for all the hard work that goes into ME, it's best in class even at this early stage! Marinara Engine diagnostics Version: 2.4.3 Build: 2.4.3+34442e26da57 Commit: 34442e26da57 Server OS: Linux 6.8.0-137-generic (x64) Client OS: iOS 18.7 Browser / app shell: Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6 Mobile/15E148 Safari/604.1 GPU: Apple GPU Active connection: OpenRouter Opus 4.6 Connection provider: openrouter LLM model: anthropic/claude-opus-4.6 [Discord message: https://discord.com/channels/1417099416812392641/1540388182787629086/1540388182787629086] [2026-08-21T15:52:42.446Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1540388182787629086/1540388185476174033] ``` </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:58:25 +07:00
Author
Owner

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

Resolved by #5367, merged into staging as 448042c2dc.

<!-- gh-comment-id:5374672254 --> @SpicyMarinara commented on GitHub (Aug 21, 2026): Resolved by #5367, merged into staging as 448042c2dced0b50ea28332525b65444e7d321b9.
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#2968
No description provided.