mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1250] [Issue]: Refactor ST and direct imports can leave partial rows or files after mid-import failure #614
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#614
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 @Xelvanis on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1250
Originally assigned to: @cha1latte on GitHub.
Summary
Several import paths create storage rows or managed files before the full import succeeds and do not appear to roll those writes back on later failure. A mid-import error can leave orphaned lorebook rows, character assets, chats, messages, or partially patched chat state.
Expected behavior
Per-item imports should either complete atomically or roll back rows/files created during the failed import. Existing chat state should not be patched until branch/message import succeeds, or it should be restored if a later step fails.
Actual behavior
The audited import paths create parent rows, child rows, files, or chat patches across multiple steps without an obvious transaction/rollback boundary for later failures.
Steps to reproduce
refactorbranch, run a focused import test with an injected storage failure after an early write succeeds.Impact area
Environment
refactor, identified during 2026-05-26 failpath auditLogs, screenshots, or video
Relevant code paths:
Audit finding:
Regression notes
Found by source inspection during the 2026-05-26 failpath audit. Needs injected-failure tests to prove the exact leftover rows/files.
Additional context
This is separate from #1161 and #1162. Those issues cover import UI/drop/cache behavior; this issue covers storage consistency after a failed import.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: