mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1313] [MERGED] Fix import rollback on failed writes #5032
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#5032
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/1313
Author: @cha1latte
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/26/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1250-import-rollbacks📝 Commits (1)
ae52b94Fix import rollback on failed writes📊 Changes
4 files changed (+713 additions, -217 deletions)
View changed files
📝
src-tauri/src/commands/storage/imports/bulk_imports.rs(+289 -46)➕
src-tauri/src/commands/storage/imports/rollback.rs(+118 -0)📝
src-tauri/src/commands/storage/imports/service.rs(+117 -171)➕
src-tauri/src/commands/storage/imports/service_tests.rs(+189 -0)📄 Description
Linked issue
Closes #1250
Why this change
What changed
Refactor impact
Primary owner:
Rust storage/imports
Impact areas reviewed:
avatars/charactersandavatars/personasBoundary notes:
Pressure points touched:
src-tauri/src/commands/storage/imports/service.rssrc-tauri/src/commands/storage/imports/bulk_imports.rssrc-tauri/src/commands/storage/imports/Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
cargo test storage_commands::importspassed 14 Rust import tests, including failure-injection rows for lorebook parent rollback, character/avatar embedded-lorebook rollback, chat rollback, group branch target restoration, existing group preservation, and persona avatar rollback.pnpm checkpassed architecture, frontend TypeScript, Rust cargo check workspace, and docs checks.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch\bugfix-verification.jsonpassed.pnpm db:pushis not present in this refactor worktree, so no DB push command was available to run.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdUI evidence
N/A - non-UI Rust storage/import rollback fix. Machine proof is in the Rust import tests and proof ledger.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.