mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3436] [Issue]: {{char_about}}/{{persona_about}} don't suppress the auto-inserted participant-profiles block (duplicated in prompt) #1859
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#1859
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 @kolacheee on GitHub (Jul 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3436
Originally assigned to: @kolacheee on GitHub.
Summary
In Conversation mode, placing the participant "about me" bios into your own preset with
{{char_about}}/{{persona_about}}does not suppress the automatically-inserted participant-profiles block, so the prompt ends up with the content twice — the user's custom section and the auto-inserted one.Expected behavior
Consistent with the other relocation macros (
{{reactRules}},{{memories}},{{context}},{{commands}},{{lorebook}}), which suppress their automatic block when used: when a preset places the about-me content itself (via{{char_about}}/{{persona_about}}, or a dedicated{{participantProfiles}}macro), the engine should skip its own auto-inserted participant-profiles block.Actual behavior
The prompt contains both:
<participant_profiles>section built with{{char_about}}/{{persona_about}}, and(See screenshot: the two sections carry the same about-me content.)
Steps to reproduce
{{char_about}}/{{persona_about}}.Environment
Logs, screenshots, or video
Screenshot shows a user-authored
PARTICIPANT_PROFILESsection and a separate autoSYSTEMsection both listing the same about-me bios.Additional context
Root cause (verified on staging). The macro-aware suppression is driven by
ConversationContextMacroSlots, whose key union is only"context" | "commands" | "reactRules" | "memories" | "lorebook"(packages/server/src/routes/generate.routes.ts:440, aliases at:451-457, detectionresolveConversationContextMacroSlotsat:464). There is no slot for participant profiles / about-me, and no{{participantProfiles}}macro exists.Every other auto block is suppressed when its macro is used:
if (!conversationContextMacroSlots.reactRules) { conversationSystemPrompt += … }(generate.routes.ts:1892)if (… && !conversationContextMacroSlots.memories) { … }(:1955)replaceConversationContextMacro.But the about-me block is appended unconditionally:
Its only gate is the chat-level toggle
autoInjectAbout = chatMeta.conversationAboutMeInject !== false(:1750) — not macro-aware. Meanwhile{{char_about}}/{{persona_about}}resolve independently in the user's template (macro-engine.ts:1298-1299). So a hand-built about-me section is duplicated by the auto block. (TheaboutMeBlocktext itself is built inpackages/server/src/services/conversation/conversation-profiles.ts:120-138.)Not a bug (scoping): the custom-emoji react rules block is correctly suppressed via
{{reactRules}}(:1892); in the reporter's screenshot it appears in the auto SYSTEM block only because they did not place{{reactRules}}in their custom section — it is present once, not duplicated.Suggested fix: make the about-me / participant-profiles auto block macro-aware, mirroring the
reactRules/memoriespattern — add aparticipantProfileskey (aliases e.g.["participantProfiles","char_about","persona_about"]) toConversationContextMacroKey+ the alias table, then either gate the append at:1969with&& !conversationContextMacroSlots.participantProfiles(and optionally support a{{participantProfiles}}placement macro), or minimally skip the append when the resolved template already contains{{char_about}}/{{persona_about}}.Template check