mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3438] [Feature]: Placement macros for the remaining auto-inserted prompt blocks (conversation history, lorebook before/after, emoji/sticker reply rules) #1860
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#1860
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/3438
Originally assigned to: @kolacheee on GitHub.
What problem does this solve?
The new Conversation-mode preset macros (e.g.
{{char_about}},{{persona_about}},{{reactRules}},{{commands}},{{status}},{{context}},{{memories}}, …) let users place and customize individual auto-inserted prompt blocks from their preset — reposition them, wrap them in{{#if}}, or omit them. This has made Conversation prompts far more modular and controllable.But several other things the engine inserts into the prompt automatically still have no macro, so they can't be repositioned, wrapped, or conditionally included from a custom preset. The two most requested:
Users building fully modular prompts want the same control over these that the existing macros already give for participant profiles, memories, rules, etc.
Proposed solution
Add placement macros for the remaining automatic prompt insertions, following the same convention as the existing set (when the macro appears in the preset, render the content there — and suppress the corresponding automatic insertion so it isn't duplicated):
{{reactRules}}, but the reply advertisement ("You can use custom emojis in your reply by writing their name between colons…", and the sticker equivalent) has no macro and is always force-appended. There's a clear parity gap: a preset can move the react rules but not the emoji/sticker reply rules. A{{emojis}}/{{stickers}}(or{{replyRules}}) macro, gating the force-append the way{{reactRules}}already gates its block, would close it. (This one is a concrete, low-effort parity fix — it mirrors the existingreactRulesslot; the react force-append is gated atgenerate.routes.ts:1892, while the emoji/sticker reply advertisements are appended unconditionally inpackages/server/src/routes/generate/conversation-custom-assets.ts:316/:369.)Alternatives considered
{{#if}}, custom surrounding text) around the block the way a placement macro does.Additional context
Follow-up to the new Conversation macros. The reporter notes they're not certain what's technically feasible and would appreciate whatever subset can be exposed. Filed alongside the conversation-macro bug reports #3435 (
{{#if}}+ macros), #3436 (auto-block suppression), and #3437 (macro docs). In particular, any new placement macro should suppress its auto-inserted counterpart the same way the existing relocation macros do — see #3436.Template check