mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1730] [MERGED] [codex] Tighten Lorebook Keeper target resolution #5242
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#5242
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/1730
Author: @Xelvanis
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @Xelvanis
Base:
refactor← Head:codex/lorebook-keeper-target-resolution📝 Commits (1)
fcf960cTighten lorebook keeper target resolution📊 Changes
5 files changed (+187 additions, -33 deletions)
View changed files
📝
src/engine/contracts/types/chat.ts(+1 -1)➕
src/engine/generation-core/lorebooks/lorebook-keeper-target.ts(+129 -0)📝
src/engine/generation/agent-runner.ts(+40 -14)📝
src/features/catalog/lorebooks/lib/lorebook-keeper-updates.ts(+14 -15)📝
src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx(+3 -3)📄 Description
Linked issue
Not linked.
Why this change
What changed
Refactor impact
Primary owner:
engine generation and generation-core lorebook targeting, with small catalog update-flow and shared chat settings UI touchpoints.
Impact areas reviewed:
Boundary notes:
src/engine/generation-core/lorebooks.Pressure points touched:
ChatSettingsDrawercopy only.ModeSurface,GameSurface, Tauri command registration, or import modules touched.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:
pnpm vitest run src/engine/generation-core/lorebooks/lorebook-keeper-target.test.ts src/features/catalog/lorebooks/lib/lorebook-keeper-updates.test.ts src/engine/generation/agent-runner.test.tspassed: 3 files, 46 tests.pnpm typecheckpassed.pnpm check:architecturepassed.pnpm buildpassed; Vite reported existing large chunk warnings and an existing CSS minify warning.git diff --checkpassed.pnpm checkpassed after fixing an unused exported type.Not run: native Tauri UI pass, live provider call, or manual Lorebook Keeper review/apply flow.
Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release files changed; this is a focused engine behavior fix with small settings copy adjustment.
UI evidence
Not added. Visible UI impact is limited to target selector copy; no native UI pass was run.
Summary by CodeRabbit
Bug Fixes
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.