mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3350] [MERGED] Preserve lorebook angle-bracket markup #5893
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#5893
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/3350
Author: @SpicyMarinara
Created: 7/7/2026
Status: ✅ Merged
Merged: 7/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/preserve-lorebook-angle-markup📝 Commits (1)
70db8abPreserve lorebook angle markup📊 Changes
2 files changed (+43 additions, -4 deletions)
View changed files
📝
packages/server/src/services/prompt/marker-expander.ts(+4 -4)📝
scripts/regressions/prompt.regression.ts(+39 -0)📄 Description
Linked issue
No linked issue yet. This PR was opened from a maintainer/user bug report about Peek Prompt showing lorebook entry
<characters as<.Why this change
Lorebook entries can intentionally contain prompt markup such as
<START>, XML-like control tags, or other angle-bracket syntax. Preset lorebook markers were passing lorebook content through XML leaf escaping, so the actual assembled prompt, and therefore Peek Prompt, showed authorial<as<. That changes the prompt text users wrote and can break imported/worldbook prompt conventions.What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated checks run locally by Codex:
pnpm regression:promptpassed.pnpm checkpassed.No browser/manual click-through was performed. The regression directly exercises lorebook marker expansion and asserts
<START>,<tone soft>,<ritual_step id="2">, and depth-injected<scene-note>remain literal rather than becoming<....Docs and release impact
Prompt behavior only; no user-facing docs or release metadata updated.
UI evidence (if applicable)
Not applicable; no UI changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.