mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1409] [CLOSED] Restore lorebook No Vector parity #5075
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#5075
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/1409
Author: @Xelvanis
Created: 5/27/2026
Status: ❌ Closed
Base:
refactor← Head:fix/1333-lorebook-no-vector📝 Commits (6)
8c8e8ddRestore lorebook no-vector parity8fddd25Address no-vector review findings7cf0151Address lorebook no-vector review feedbackf7a31c2Merge refactor into lorebook no-vector paritydec8867Merge latest refactor into lorebook no-vector parity9dc1496Merge refactor into lorebook no-vector parity📊 Changes
7 files changed (+292 additions, -24 deletions)
View changed files
📝
src-tauri/src/commands/storage/prompts.rs(+122 -11)📝
src-tauri/src/commands/storage/shared.rs(+8 -0)➕
src/engine/contracts/schemas/lorebook.schema.test.ts(+16 -0)📝
src/engine/contracts/types/lorebook.ts(+1 -1)➕
src/engine/generation-core/lorebooks/keyword-scanner.test.ts(+85 -0)📝
src/features/catalog/lorebooks/components/LorebookEditor.tsx(+59 -12)📝
src/features/catalog/lorebooks/types.ts(+1 -0)📄 Description
Linked issue
Closes https://github.com/Pasta-Devs/Marinara-Engine/issues/1333
Why this change
What changed
excludeFromVectorizationto lorebook contracts, schema defaults, update schema, and feature types.totalmeans vectorizable entries andskippedincludes excluded/already-vectorized entries.Refactor impact
Primary owner:
Catalog lorebooks UI, engine lorebook contracts/generation, and Rust storage/vectorization commands.
Impact areas reviewed:
Boundary notes:
src/features/catalog/lorebooks.src/engine.src-tauri.Pressure points touched:
LorebookEditorsave/load and vectorization controls.prompt-assemblylorebook normalization.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
Validation run locally:
pnpm exec vitest run src/engine/contracts/schemas/lorebook.schema.test.ts src/engine/generation-core/lorebooks/keyword-scanner.test.tspnpm typecheckpnpm check:architecturecargo test --manifest-path src-tauri/Cargo.toml lorebook_defaults_include_vectorization_enabledcargo test --manifest-path src-tauri/Cargo.toml vectorize_lorebook_ -- --nocapturecargo test --manifest-path src-tauri/Cargo.toml storage_commands::custom_tools::tests::script_execution_type_returns_actionable_error -- --nocapturecargo check --manifest-path src-tauri/Cargo.tomlpnpm buildcargo nextest run --manifest-path src-tauri/Cargo.toml --workspace --no-fail-fastwas attempted locally; 137/138 tests passed, with the remaining unrelated Windows-only local failure blocked by missing symlink privilege inmarinara-assets tests::rejects_paths_that_escape_root_through_symlinked_directory.Native Tauri QA:
excludeFromVectorization: true.Not covered:
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs files were changed. This checkout does not currently have a
CHANGELOG.md.UI evidence
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.