mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5716] [Issue]: Lorebook entry duplicated in Before Char and After Char placeholders #3162
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#3162
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?
Originally created by @SpicyMarinara on GitHub (Sep 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5716
Originally assigned to: @Romuromylus on GitHub.
Summary
A lorebook entry configured for insertion Before Char is duplicated across both the Before Char and After Char preset placeholders.
Expected behavior
The lorebook entry should be inserted only at the configured Before Char placeholder.
Actual behavior
The entry appears at both the Before Char and After Char placeholders, as shown in the chat prompt inspection.
Steps to reproduce
Environment
e96412040c)Logs, screenshots, or video
No logs, screenshots, or video provided. The duplication is visible in the chat's prompt inspection.
Additional context
Diagnostics reported heap usage of 690 / 4288 MiB, RSS of 926.4 MiB, no detected freeze, and background wake lock status not reported.
Discord thread: [Bug]: Lorebook insertion duplications (Before Char/After Char)
Discord thread link: https://discord.com/channels/1417099416812392641/1544252303391989830
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)
Discord thread transcript (2 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Romuromylus commented on GitHub (Sep 2, 2026):
Fixed by #5760, squash-merged into
stagingas4798d4167. Each world-info position is now placed by the first lorebook marker that covers it, so a preset with more than one lorebook marker no longer repeats the same entries across placeholders.