mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1412] [CLOSED] Fix lorebook vectorization parity #5078
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#5078
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/1412
Author: @Xelvanis
Created: 5/27/2026
Status: ❌ Closed
Base:
refactor← Head:fix/lorebook-secondary-key-vector-parity📝 Commits (4)
9a7cf7bFix lorebook vectorization parity6af5980Address lorebook vectorization review findingsb629b98Fix custom tool script error contract175344aMerge refactor into lorebook vectorization parity📊 Changes
1 file changed (+232 additions, -17 deletions)
View changed files
📝
src-tauri/src/commands/storage/prompts.rs(+232 -17)📄 Description
Linked issue
Closes #1411
Why this change
Refactor lorebook vectorization missed staging parity in two places: embedding input ignored secondary lorebook keys, and lorebook-level
excludeFromVectorizationdid not skip the native vectorization path. That could make semantic lorebook matching less accurate and could still call an embedding provider for a book the user/imported data marked as excluded.What changed
secondaryKeysin lorebook entry embedding text.secondary_keysandkeysecondaryat the vectorization boundary.excludeFromVectorization: trueas a successful no-op before provider calls.refactor.Refactor impact
Primary owner:
Rust storage / native lorebook vectorization command.
Impact areas reviewed:
Boundary notes:
src-tauri/src/commands/storage/prompts.rs.src-tauri/src/commands/storage/custom_tools.rs.Pressure points touched:
lorebook_vectorize.scripttools.src-tauri/src/lib.rscommand registration, mode surface, GameSurface, or shared mode UI changes.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
Agent-run validation, checkboxes left unchecked for human confirmation:
cargo test --manifest-path src-tauri/Cargo.toml lorebook --libpassed, 9 tests.cargo test --manifest-path src-tauri/Cargo.toml script_execution_type_returns_actionable_error --libpassed.cargo nextest run --manifest-path src-tauri/Cargo.toml --workspace script_execution_type_returns_actionable_errorpassed.cargo check --manifest-path src-tauri/Cargo.toml --workspacepassed.git diff origin/refactor...HEAD --checkpassed before PR creation;git diff --checkpassed after the CI-unblock commit.A full local
cargo nextest run --manifest-path src-tauri/Cargo.toml --workspacewas attempted but blocked on Windows bymarinara-assets tests::rejects_paths_that_escape_root_through_symlinked_directorybecause the local shell lacks symlink creation privilege. The previously failing CI test was rerun directly through nextest and passed.No live embedding provider call or native Tauri UI pass was run.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdChangelog: release-notable bugfix, but no
CHANGELOG.mdexists on this branch.Docs: no developer docs or repo skill updates needed because this does not change architecture, commands, or workflow guidance.
UI evidence
No UI changes.
Summary by CodeRabbit
Bug Fixes
New Features
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.