mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4696] [Issue]: Responsiveness degrades over long sessions until refresh #2573
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#2573
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 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4696
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Marinara Engine becomes progressively less responsive during a long session, even when no response is being generated. A refresh restores normal performance. Opening and scrolling through a large image Gallery appears to accelerate the degradation, although the supplied Firefox recording indicates that the problem is broader than the Gallery alone.
Expected behavior
Marinara Engine should maintain stable input, scrolling, hover, and navigation responsiveness over a long session. Closing a large Gallery should stop its active work and allow image/DOM resources to be reclaimed without requiring a page refresh.
Actual behavior
Responsiveness gradually degrades the longer the application remains open. UI interactions become visibly laggy and main-thread stalls occur while no model generation is active. Refreshing the page immediately restores normal responsiveness.
The supplied Firefox performance recording indicates two likely compounding sources:
The Gallery drawer itself appears to unmount correctly and cleans up its document pointer listener, so this should not initially be treated as a proven detached React-subtree leak.
Steps to reproduce
A useful comparison is to repeat the same session with RGB Accent, Accent Pulse, custom-theme accent pulse, and Custom Cursor disabled, with Reduce ambient animations and effects enabled.
Environment
Logs, screenshots, or video
Firefox performance recording:
Firefox 2026-08-06 23.40 profile.json.gzThe approximately 26.2-second recording was captured while no response was being generated. Notable observations:
transitionrun, 72ktransitionstart, and 68ktransitionendcolor,scrollbar-color, and individual border colorsqueueAccentAnimationTick→applyLiveAccent, React mutation/passive/layout effect traversal, Roleplay surface updates, and custom-cursor color resolutionThe malloc counter is not a heap snapshot, so its growth does not by itself prove a reachable-object leak. A production-build recording and before/after heap or
about:memorycomparison would help distinguish decoded-image caching from retained application objects.Additional context
Relevant implementation observations:
/api/.../gallery/file/...resources as visual thumbnails. The server returns the stored original file without resizing.Suggested optimization boundary:
Acceptance criteria:
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 6, 2026):
Claimed by @SpicyMarinara. Implementation and validation are being tracked in draft PR #4697.