mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5686] [Issue]: Stop unexplained iPhone reloads during active chat sessions #3144
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Aug 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5686
Originally assigned to: @SpicyMarinara on GitHub.
Summary
On iPhone, Marinara can intermittently go dark and reload while the user is in a chat or taps a control that opens another surface. No render-error recovery screen appears, and the supplied diagnostics report no server freeze.
Inspection of the reported build found deterministic silent reload paths during client updates, plus unnecessary permanent compositing hints on every mounted Roleplay avatar that increase iOS WebKit GPU pressure.
Expected behavior
An available client update should not replace an active session without warning. Marinara should ask the user to refresh at a convenient moment, and long Roleplay chats should avoid persistent GPU-layer hints on repeated message avatars.
Actual behavior
The PWA is configured for automatic service-worker activation and calls the reload form of updateSW when new content is found. The five-minute runtime build check also clears caches and replaces the page immediately, while a first lazy-chunk failure performs another automatic reload when the user taps an unopened surface after an update.
Separately, every mounted Roleplay avatar receives will-change: opacity, filter even while static. A long transcript can therefore keep the browser reserving compositing resources for dozens of repeated images; opening another layered surface can add pressure at the moment described in the report.
Steps to reproduce
Environment
ebfa30512cLogs, screenshots, or video
No client crash log or video was supplied. The observed behavior is a dark screen followed by a reload. The server diagnostics report no detected freeze.
Additional context
This fix should stay deliberately small:
The automatic reload paths are confirmed in code. A separate iOS WebKit process termination cannot be proven from the supplied diagnostics, so real-device confirmation remains necessary after these deterministic causes and the repeated compositing pressure are removed.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Aug 31, 2026):
Owned by @SpicyMarinara and being handled in draft PR #5687 against staging. The hardware-only WebKit termination path remains an explicit manual verification item; the deterministic reload paths and repeated avatar compositing pressure are confirmed in code.
@SpicyMarinara commented on GitHub (Aug 31, 2026):
Resolved by #5687 and landed on
stagingin commit00123f543b.