mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3442] [MERGED] fix(conversation): suppress auto about-me block when preset places bios itself #5937
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#5937
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/3442
Author: @kolacheee
Created: 7/10/2026
Status: ✅ Merged
Merged: 7/10/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/3436-aboutme-macro-suppression📝 Commits (4)
1f1217bfix(conversation): suppress auto about-me block when preset places bios itselff4d71b5Merge branch 'staging' into fix/3436-aboutme-macro-suppressiona23c83ePreserve group About Me profiles with relocation macros59f5183Merge remote-tracking branch 'origin/staging' into HEAD📊 Changes
1 file changed (+18 additions, -2 deletions)
View changed files
📝
packages/server/src/routes/generate.routes.ts(+18 -2)📄 Description
Linked issue
Closes #3436
Why this change
Every other conversation-mode relocation macro suppresses its automatic block when the preset places that content itself:
!conversationContextMacroSlots.reactRules!conversationContextMacroSlots.memoriesreplaceConversationContextMacroThe participant about-me block was the exception: it was appended unconditionally (its only gate was the chat-level
conversationAboutMeInjecttoggle). So a preset that hand-builds a participant-profiles section with{{char_about}}/{{persona_about}}produced the bios twice — the user's custom section plus the separate auto-inserted "about me" SYSTEM block.What changed
packages/server/src/routes/generate.routes.ts:aboutMekey toConversationContextMacroSlots, with detection aliases{{char_about}}/{{persona_about}}. It's a detection-only slot (no placement alias) — those field macros are already rendered by the shared macro engine's flat pass; the slot only records that the preset places the bios itself.&& !conversationContextMacroSlots.aboutMe, mirroring thereactRules/memoriesgating.Result: when a preset references
{{char_about}}/{{persona_about}}, the engine skips its own about-me block, so the content appears once. Presets that don't reference them are unaffected (auto block still inserts, subject to the existingconversationAboutMeInjecttoggle).Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Automated checks I ran locally (green):
pnpm --filter @marinara-engine/server lint(tsc -b ../shared && tsc --noEmit) — cleanpnpm regression:prompt— full prompt/macro regression suite passesStill to verify manually in the app (please tick above once done):
{{char_about}}/{{persona_about}}, generate a reply, and confirm the assembled prompt contains the bios once (no separate auto "about me" SYSTEM block).Docs and release impact
Macro-reference docs are tracked in #3437; no version bump here.
UI evidence (if applicable)
N/A (prompt-assembly logic; no UI surface changed).
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.