mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7260] [Issue]: Backgrounding the tab terminates client extension workers #4052
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#4052
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 (Oct 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7260
Originally assigned to: @SpicyMarinara on GitHub.
Summary
When the Marinara Engine tab is backgrounded for about 10 seconds, browser timer throttling stalls the client extension heartbeat and the watchdog terminates an otherwise healthy worker. The extension panel still renders from cached registration, but all controls stop responding without console errors.
Expected behavior
Client extension workers should remain usable after the tab is backgrounded and restored, or the watchdog should account for background-tab timer throttling before terminating the worker.
Actual behavior
After returning to the tab, the client extension panel renders but every control is unresponsive because the worker was terminated while hidden. No console errors are visible.
Steps to reproduce
Environment
7e28236962)Logs, screenshots, or video
No screenshots or video provided. Support diagnostics were provided. No console errors were observed. Suspected runtime code is served by GET /personal-extensions/runtime/client: the worker sends heartbeats every 1 second, while the watchdog terminates it after more than 5 seconds without a heartbeat. The watchdog reports an unresponsive-worker error while the tab is hidden, so users do not see it.
Additional context
Reproduced consistently. The issue was also present in the previous release, where the watchdog code was reportedly identical. The extension remains enabled and its hashes remain unchanged, suggesting a runtime lifecycle issue rather than permissions or approval. The proposed fix is to pause or relax the watchdog while document.hidden, or reset lastHeartbeat when visibility changes back to visible. Workaround: reload the app and avoid leaving the tab backgrounded for more than approximately 5 seconds. A separate minor issue was reported where the top-bar client extension button may be missing after a fresh load until a remount.
Discord thread: Client extensions: background tab kills worker — panel renders, buttons dead
Discord thread link: https://discord.com/channels/1417099416812392641/1557462067101958246
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (4 messages)
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 (Oct 7, 2026):
Fixed on
stagingby #7262. Ships tomainwith the next promotion.