mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #873] [MERGED] fix: preserve game state when clearing automation data #4813
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#4813
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/873
Author: @NeoKazuya
Created: 5/15/2026
Status: ✅ Merged
Merged: 5/15/2026
Merged by: @Romuromylus
Base:
staging← Head:fix/preserve-game-state-on-automation-expunge📝 Commits (2)
4ae083efix: preserve game state when clearing automation data817ad17Merge branch 'staging' into fix/preserve-game-state-on-automation-expunge📊 Changes
1 file changed (+0 additions, -1 deletions)
View changed files
📝
packages/server/src/routes/admin.routes.ts(+0 -1)📄 Description
Linked issue
Closes #872
Why this change
Clearing the "Automation & Themes" data scope should not erase saved game state from chats that remain in the app. The current expunge route deletes
game_state_snapshotsunder the automation scope, so a user can keep the chat transcript but lose scene/progress state after clearing unrelated Automation & Themes data.What changed
game_state_snapshotswhen only the automation scope is expunged.game_state_snapshotsthrough the Chats & Messages scope, so Clear All Data still removes game state.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
packages/server/src/routes/admin.routes.tsand confirmedgame_state_snapshotsis no longer deleted in theautomationscope.game_state_snapshotsis still deleted in thechatsscope, so Chats & Messages and Clear All Data still remove saved game state when chat data is intentionally removed.scopes: ["automation"]to/api/admin/expunge. The patch only changes the server delete list for that scope.pnpm --filter @marinara-engine/server lintsuccessfully on the patch branch.Docs and release impact
UI evidence (if applicable)
The existing Settings -> Advanced -> Danger Zone UI exposes "Automation & Themes" as an individual clear-data checkbox and sends the selected scope list to
/api/admin/expunge.Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.