mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #839] [MERGED] Fix depth zero lorebook prompt injection #4801
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#4801
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/839
Author: @Promansis
Created: 5/14/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @Promansis
Base:
main← Head:fix/lorebook-depth-zero-injection📝 Commits (1)
e99bcfffix: include depth zero lorebook injections (#837)📊 Changes
2 files changed (+27 additions, -1 deletions)
View changed files
📝
packages/server/src/services/lorebook/prompt-injector.ts(+1 -1)📝
packages/server/test/lorebook-processing.test.ts(+26 -0)📄 Description
Linked issue
Closes #837
Why this change
depth: 0can activate and appear in Active World Info, but are dropped before prompt injection because the server only keeps depth entries withdepth > 0.What changed
depth: 0to reach the prompt depth injector.processActivatedEntries()output for depth-0 lorebook entries.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --filter @marinara-engine/shared build && pnpm --dir packages/server exec tsx --import ./test/setup-env.ts --test test/lorebook-processing.test.ts --test-name-pattern "depth 0 lorebook entries"pnpm checkDocs and release impact
UI evidence (if applicable)
N/A - server-side prompt injection fix.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.