mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #872] [Issue]: Automation data expunge deletes saved game state from surviving chats #427
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#427
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 @NeoKazuya on GitHub (May 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/872
Originally assigned to: @cha1latte on GitHub.
Summary
Clearing the "Automation & Themes" data scope deletes saved game-state snapshots even though chats and messages are preserved. Existing game chats remain visible, but their saved scene/progress state can return
nullafterward.Expected behavior
The "Automation & Themes" scope should clear the data named by that scope: agents, custom tools, regex scripts, synced themes, and automation state. It should not delete durable chat/game runtime state for chats that survive the operation.
Game-state snapshots should be deleted only when the Chats & Messages scope is selected, or when Clear All Data selects all scopes.
Actual behavior
Using Settings -> Advanced -> Danger Zone to clear only "Automation & Themes" sends
POST /api/admin/expungewithscopes: ["automation"]. That route deletesgame_state_snapshots. The affected game chat still exists, butGET /api/chats/:id/game-statereturnsnull.Steps to reproduce
GET /api/chats/:id/game-state.Environment
1.5.9+ed59b87df901Logs, screenshots, or video
Reproduced on
1.5.9+ed59b87df901by clearing only "Automation & Themes" from Settings. The chat still existed afterward, butGET /api/chats/:id/game-statechanged from returning the saved state to returningnull.Additional context
Likely cause:
packages/server/src/routes/admin.routes.tsdeletesgame_state_snapshotsin both thechatsscope and theautomationscope. Thechatsscope delete is expected; theautomationscope delete causes the data loss.Checked current
mainat8a18a8c7; the relevant Settings label and admin expunge route are unchanged there.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: