mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1937] [MERGED] Fix startup storage persistence and import rollback flushes #5347
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#5347
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/1937
Author: @Xelvanis
Created: 6/2/2026
Status: ✅ Merged
Merged: 6/2/2026
Merged by: @Xelvanis
Base:
refactor← Head:fix/startup-state-storage-tests📝 Commits (2)
8a2190aFix startup storage persistence and import rollback flushes0992398Guard ST preset import rollback on flush failure📊 Changes
7 files changed (+284 additions, -139 deletions)
View changed files
📝
src-tauri/src/commands/storage/imports/bulk_imports.rs(+23 -4)📝
src-tauri/src/commands/storage/imports/marinara.rs(+5 -0)📝
src-tauri/src/commands/storage/imports/rollback.rs(+4 -0)📝
src-tauri/src/commands/storage/imports/service.rs(+2 -0)📝
src-tauri/src/commands/storage/imports/service_tests.rs(+70 -0)📝
src-tauri/src/commands/storage/imports/st_preset.rs(+171 -135)📝
src-tauri/src/state.rs(+9 -0)📄 Description
Linked issue
No linked issue.
Why this change
Startup storage repair tests and import rollback paths need to observe durable storage writes when correctness depends on persisted data. A debounced storage write could leave startup fixtures invisible to a fresh storage instance, and import flows could return success before a pending write failure was surfaced.
What changed
AppState.Refactor impact
Primary owner:
Rust storage and imports.
Impact areas reviewed:
Boundary notes:
No React, engine, shared API, or remote-runtime boundaries changed. The change stays in
src-tauristorage/import ownership.Pressure points touched:
Import modules under
src-tauri/src/commands/storage/imports.Validation
pnpm typecheck,pnpm build,pnpm check:architecture,pnpm check:docs, or fullpnpm checkwhen warranted)pnpm checkpasses before PR push/handoffManual verification notes
cargo test --manifest-path src-tauri/Cargo.toml state::tests -- --nocapturecargo test --manifest-path src-tauri/Cargo.toml import_persona_avatar_file_rolls_back_avatar_when_persona_write_fails -- --nocapturecargo test --manifest-path src-tauri/Cargo.toml rolls_back -- --nocapturecargo test --manifest-path src-tauri/Cargo.toml branch_import_fails -- --nocapturepnpm check:rust:testpnpm check:rustpnpm check:rust:nextestpnpm checkgit diff --checkFeature Discoverability
Check exactly one:
src/features/shell/discovery/because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.Reason:
This is a Rust storage/import rollback correctness fix and does not add a discoverable feature.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release-note changes needed; no public workflow, command, architecture, or discoverability documentation changed.
UI evidence
No UI changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.