mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1727] [MERGED] [codex] Extract active lorebook scope reasons #5236
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#5236
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/1727
Author: @Xelvanis
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @Xelvanis
Base:
refactor← Head:codex/lorebooks-scope-reasons📝 Commits (2)
e8db10aExtract active lorebook scope reasons1e69008Address lorebook scope review notes📊 Changes
5 files changed (+387 additions, -170 deletions)
View changed files
➕
src/engine/generation-core/lorebooks/active-lorebook-scope.test.ts(+131 -0)➕
src/engine/generation-core/lorebooks/active-lorebook-scope.ts(+208 -0)📝
src/engine/generation/active-lorebook-scanner.ts(+12 -62)📝
src/features/catalog/lorebooks/components/LorebooksPanel.tsx(+14 -28)📝
src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx(+22 -80)📄 Description
Linked issue
None.
Why this change
What changed
src/engine/generation-core/lorebooks/active-lorebook-scope.ts.Refactor impact
Primary owner:
Impact areas reviewed:
Boundary notes:
src/engine/generation-core.Pressure points touched:
ChatSettingsDrawer.tsxnow delegates active lorebook scope math to the engine helper.Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyCommands run:
pnpm vitest run src/engine/generation-core/lorebooks/active-lorebook-scope.test.ts src/engine/generation/prompt-assembly.test.ts src/engine/generation-core/lorebooks/keyword-scanner.test.tspassed: 3 files, 69 tests.pnpm checkpassed.pnpm buildpassed; Vite reported existing large chunk warnings plus an existing CSS minify warning aboutfilenot being a known CSS property.Manual verification notes
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNotes:
UI evidence
Summary by CodeRabbit
New Features
Tests
Refactor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.