[PR #1617] [MERGED] Reuse embedded lorebook reimports #5150

Closed
opened 2026-10-22 04:13:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1617
Author: @Promansis
Created: 5/30/2026
Status: ✅ Merged
Merged: 5/30/2026
Merged by: @Promansis

Base: refactor ← Head: fix/issue-1551


📝 Commits (1)

  • 95a7189 Reuse embedded lorebook reimports

📊 Changes

1 file changed (+257 additions, -6 deletions)

View changed files

📝 src-tauri/src/commands/storage/exports.rs (+257 -6)

📄 Description

Summary

  • Reuse the existing linked embedded lorebook when importing a character book again
  • Replace old imported entries/folders for that linked lorebook before writing the refreshed entries
  • Clean up stale duplicate embedded-lorebook imports while preserving manual character-linked lorebooks

Fixes #1551

Verification

  • cargo test --manifest-path src-tauri/Cargo.toml storage_commands::exports::tests::embedded_lorebook_reimport_reuses_linked_lorebook_and_replaces_entries
  • Combined branch also passed cargo check --manifest-path src-tauri/Cargo.toml

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1617 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/30/2026 **Status:** ✅ Merged **Merged:** 5/30/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `refactor` ← **Head:** `fix/issue-1551` --- ### 📝 Commits (1) - [`95a7189`](https://github.com/Pasta-Devs/Marinara-Engine/commit/95a7189384340391a3b2eefaa6d916c52452b464) Reuse embedded lorebook reimports ### 📊 Changes **1 file changed** (+257 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `src-tauri/src/commands/storage/exports.rs` (+257 -6) </details> ### 📄 Description ## Summary - Reuse the existing linked embedded lorebook when importing a character book again - Replace old imported entries/folders for that linked lorebook before writing the refreshed entries - Clean up stale duplicate embedded-lorebook imports while preserving manual character-linked lorebooks Fixes #1551 ## Verification - cargo test --manifest-path src-tauri/Cargo.toml storage_commands::exports::tests::embedded_lorebook_reimport_reuses_linked_lorebook_and_replaces_entries - Combined branch also passed cargo check --manifest-path src-tauri/Cargo.toml --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:44 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#5150
No description provided.