mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#7470
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/7091
Author: @Promansis
Created: 10/5/2026
Status: ✅ Merged
Merged: 10/5/2026
Merged by: @Promansis
Base:
staging← Head:fix/profile-restore-vault-lock-7043📝 Commits (1)
0e8aaacfix(backup): coordinate profile restore with the active Long-Term Memory vault (#7043)📊 Changes
2 files changed (+34 additions, -6 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
packages/server/src/routes/backup.routes.ts(+32 -6)📄 Description
Linked issue
Closes #7043
Why this change
Restoring a settings profile that contains a Long-Term Memory vault while the Long-Term Memory package is active could publish memory files the package's own lock and caches never observed: the package could keep serving the pre-restore copy, and a restore could interleave with a memory read or index rebuild. When the installed package is too old to expose the coordination hook, the restore must be refused rather than publish memory the package cannot see.
What changed
packages/server/src/routes/backup.routes.ts: when a profile containslong-term-memory/assets, resolve the activelong-term-memory:runtimecapability. An active package withoutwithVaultMutationis refused with a clear update/disable message; a compatible active package runs database replacement, asset promotion, rollback and staging cleanup insidewithVaultMutation(the package's reentrant vault lock plus cache reset). An inactive package keeps the existing disk-only restore. The compatibility decision is made from the profile's declared asset inputs before staging, so a refused restore never stages vault bytes.CHANGELOG.md: user-facing entry under[Unreleased].Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
.profile-import-*staging directory remains under the data directory.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.