mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #884] [MERGED] Fix built-in agent prompt sections and KR roleplay leakage #4819
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#4819
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/884
Author: @Promansis
Created: 5/15/2026
Status: ✅ Merged
Merged: 5/15/2026
Merged by: @Promansis
Base:
staging← Head:fix/851-854-agent-prompt-sections📝 Commits (2)
66d8dd5Fix agent prompt sections for #851 and #854e726a83fix #851 preserve section agent injection cache📊 Changes
6 files changed (+258 additions, -14 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+62 -12)📝
packages/server/src/services/agents/agent-executor.ts(+71 -0)📝
packages/server/test/agent-executor-expression.test.ts(+32 -0)📝
packages/server/test/lorebook-processing.test.ts(+65 -0)📝
packages/server/test/runtime-agent-section-cleanup.test.ts(+26 -1)📝
packages/shared/src/constants/agent-prompts.ts(+2 -1)📄 Description
Linked issue
Closes #851
Closes #854
Why this change
What changed
<conversation_messages>in a final user message instead of sending it as continuation-ready chat turns.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm --filter @marinara-engine/server exec tsx --import ./test/setup-env.ts --test test/lorebook-processing.test.ts test/runtime-agent-section-cleanup.test.ts test/agent-executor-expression.test.ts; passed.pnpm check; passed after runningpnpm installto hydrate the local missing@dnd-kit/corepackage from the existing lockfile.Docs and release impact
No docs or release metadata changes expected; this is a narrow server prompt assembly and agent prompt-shaping fix.
UI evidence (if applicable)
N/A. Server prompt assembly and agent prompt behavior only; no UI surface changed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.