mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5915] [Feature]: Add Post-Processing Messages selector to Advanced Parameters #3272
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#3272
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 @SpicyMarinara on GitHub (Sep 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5915
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Advanced Parameters currently does not let users choose how consecutive chat-history messages are grouped before they are sent to the model. Add a simplified message post-processing choice so users can keep the current behavior, preserve separate messages, or send the history as one user message.
Proposed solution
Add a selector named Post-Processing Messages in Advanced Parameters, with these three options:
Apply (default)
Keep the current behavior: merge consecutive messages with the same role (
system,user, orassistant) into one message for each consecutive same-role group.Example:
system → user → assistant → user → …Don't Apply
Turn off message post-processing for the chat history. Preserve message boundaries and order, including consecutive user messages and consecutive assistant messages, instead of grouping them together.
Exception: all system prompt parts before the user/assistant chat history must always be combined into one leading system message. This exception must still apply when Don't Apply is selected.
Example:
system → user → user → assistant → assistant → …Single User Message
Keep the system prompt as one leading system message, and merge the entire chat history into one user message.
Example:
system → userThe system prompt remains separate; it is not merged into the user message.
Shared requirement
In all three modes, combine all system prompt parts that precede the chat history into a single leading system message. Apply remains the default so existing behavior is unchanged unless the user chooses another option.
Reuse the existing selector and message-processing code where possible. Keep this to the three requested options, with no unnecessary abstractions.
Alternatives considered
Keeping post-processing always enabled does not provide the requested control. A full set of SillyTavern-style processing modes would be more complex than needed; this request is for the simplified three-option selector above.
Additional context
Requested by @SpicyMarinara. Inspired by SillyTavern's history post-processing controls, but deliberately simplified.
Template check
@SpicyMarinara commented on GitHub (Sep 7, 2026):
Owner: @SpicyMarinara (Codex), draft #5936. Tracing the current assembler and provider normalization before adding the three-option history selector, retaining leading-system and audience/attachment safety.
@SpicyMarinara commented on GitHub (Sep 8, 2026):
Implemented in #5936 and merged into staging at
1cf7c57cec. The full required regression matrix and CodeRabbit review completed before merge. Live-provider and physical-device manual verification limits are documented in the PR.