mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5989] [MERGED] fix(ui): prevent Accent Pulse WebKit crashes and idle repaint bursts #7017
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#7017
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5989
Author: @SpicyMarinara
Created: 9/9/2026
Status: ✅ Merged
Merged: 9/9/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/5988-iphone-accent-pulse-rendering📝 Commits (2)
104acd6test(ui): reproduce idle Accent Pulse rendering work (#5988)493c63ffix(ui): prevent Accent Pulse WebKit crashes and idle repaint bursts📊 Changes
4 files changed (+124 additions, -39 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)➕
e2e/accent-pulse.e2e.ts(+80 -0)📝
packages/client/src/App.tsx(+31 -39)📝
packages/client/src/styles/globals.css(+12 -0)📄 Description
Linked issue
Closes #5988. Owner: @SpicyMarinara.
Why this change
Accent Pulse can crash WebKit's content process while opening Settings/Appearance with a solid accent. Three native crash reports from the local production/development repro abort in
WebCore::Style::Color::resolvedColor()while applying a nestedcolor-mix()background. The same production path with Pulse off survives. The transition-only mitigation still crashes; resolving the animated color before publishing root tokens fixes the repro.Pulse also starts hundreds of paint-property transitions while idle, and enabling its Appearance preview resumes Home stars, logo and Professor effects behind the settings panel. This unnecessary rendering work is relevant to the reported iPhone heating.
The supplied iPhone history has one explicit settings refresh and two later page starts without recorded reload requests. It does not prove those restarts have the same native cause or establish a JavaScript memory leak. Its memory/session figures describe the Docker server, not the phone.
What changed
Validation
Passed
pnpm check(including localization, formatting, lint, E2E types and production builds).Passed 25 selected browser cases across desktop Chromium, mobile Chromium and mobile WebKit (8 platform-specific skips):
The new regression exercises real idle transition events, solid/gradient accents, dark/light themes, Home pause/resume and reduced-motion changes. It failed before the fix and passes afterward, including the native WebKit crash path.
Production measurements on isolated synthetic data, eight idle seconds in Appearance, gradient Pulse on:
Pulse still cycles at 2 Hz. These desktop-hosted browser measurements demonstrate a rendering reduction, not a physical-device temperature result. Five-minute production WebKit idle runs passed in both Appearance and Chat Settings with solid Pulse on: zero crashes, reloads or JavaScript errors; DOM counts stayed exactly 1,722 and 665 respectively; the accent continued cycling. The Chat Name section still expanded and the drawer closed normally afterward.
Docs and release impact
Added an Unreleased fix entry. No new UI copy, documentation changes or version bump.
UI evidence (if applicable)
Production before/after screenshots, measurements and native crash summary. Download the HTML to view its embedded screenshots. No real user data or full native crash reports are included.
The deliberate ceiling is that root accent tokens still update at 2 Hz. Coarse-pointer paint/dimension transitions settle immediately while Pulse is active; opacity and transform motion remain. Physical iPhone heat, battery drain and long-session stability still require on-device confirmation.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.