mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5052] [Issue]: Windows launcher skips auto-update when snapshot copies capability-package junction #2795
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#2795
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 @mro1229 on GitHub (Aug 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5052
Originally assigned to: @SpicyMarinara on GitHub.
Summary
On Windows, the launcher cannot create its pre-update data snapshot when
DATA_DIR/capability-packages/node_modulesis a junction. The snapshot fails withEPERM, causing every pending automatic update to be skipped.Expected behavior
The launcher should successfully protect the user data and continue with the automatic update.
Generated runtime links such as
capability-packages/node_modulesshould either be excluded from the snapshot or copied in a way that does not require elevated symbolic-link privileges on Windows.Actual behavior
When an update is available,
scripts/protect-launcher-data.mjs snapshotrecursively copies the default data directory. It encounters the generated junction:packages/server/data/capability-packages/node_modules→
packages/server/node_modulesNode attempts to recreate this link inside
.marinara-engine-update-backups, but a normally launched, non-elevated process receivesEPERM. The launcher then skips the update to protect the user data.Marinara still starts, but it remains on the old commit and repeats the same error on every launch while an update is pending.
Steps to reproduce
packages/server/data/capability-packages/node_modulesto be created as a junction.MarinaraLauncher.exe, without elevation.The snapshot failure can also be reproduced directly from the repository root in a non-elevated terminal:
node scripts/protect-launcher-data.mjs snapshotEnvironment
2f75eeed9a1043b57bMarinaraLauncher.exe; Firefox is the default browser, but the failure occurs before the browser is relevantLogs, screenshots, or video
Additional context
The application itself continues to start, and no user-data loss was observed. However, automatic Engine updates remain blocked.
Running the launcher as Administrator or enabling Windows Developer Mode may allow link creation and serves as a temporary workaround. Permanently running the server elevated is not desirable.
pnpm check passes successfully on the affected checkout using the pinned pnpm 10.33.2, including localization checks, TypeScript, ESLint, and the complete client/server build.
The likely fix is to exclude the generated capability-packages/node_modules junction from launcher data snapshots. It contains runtime dependencies rather than unique user data and is recreated by the capability-module runtime.
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 15, 2026):
I’m taking this one. I’ll keep the launcher snapshot fix focused on excluding the generated capability-package runtime junction, add a regression for the Windows failure mode, and submit it against staging.