mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1200] [MERGED] Harden SillyTavern bulk import #4975
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#4975
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/1200
Author: @TheLonelyDevil9
Created: 5/25/2026
Status: ✅ Merged
Merged: 5/25/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/st-bulk-import-hardening📝 Commits (1)
a54fd42Harden SillyTavern bulk import📊 Changes
4 files changed (+440 additions, -72 deletions)
View changed files
📝
src-tauri/src/commands/storage/imports/bulk_imports.rs(+230 -64)📝
src-tauri/src/commands/storage/imports/payloads.rs(+19 -0)📝
src-tauri/src/commands/storage/imports/service.rs(+74 -8)📝
src-tauri/src/commands/storage/media_uploads.rs(+117 -0)📄 Description
What?
Harden SillyTavern bulk imports so stale selected items are reported as per-item warnings instead of aborting the whole run. The importer now also stores imported character/persona avatar images as managed local asset files instead of embedding large image data URLs into storage records.
Why?
Bulk imports from realistic SillyTavern folders can contain many characters, backgrounds, personas, and large PNG character cards. A single missing selected file should not fail the whole import, and large inline avatar payloads can bloat storage enough to make otherwise ordinary imports fragile.
How?
errorsentries and continues with the remaining import queue.avatarfield.Testing?
cargo test --manifest-path "src-tauri/Cargo.toml" run_st_bulk_import_continues_after_stale_selected_itemscargo test --manifest-path "src-tauri/Cargo.toml" file_path_asset_url_matches_tauri_encoding_on_windowscargo check --manifest-path "src-tauri/Cargo.toml"Screenshots (optional)
Not applicable; this is Rust storage/import behavior with no UI changes.
Anything Else?
A live UI import against a full external SillyTavern folder was not run in this PR. The regression fixture covers the reported shape: many selected characters/backgrounds/personas plus stale selected items and managed avatar storage.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.