[GH-ISSUE #5915] [Feature]: Add Post-Processing Messages selector to Advanced Parameters #3272

Closed
opened 2026-10-21 06:01:33 +07:00 by bsakaguchi · 2 comments
Owner

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, or assistant) 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 → user

The 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

  • I DID NOT read this template and provide the requested details.
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`, or `assistant`) 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 → user` The 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 - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@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.

<!-- gh-comment-id:5574881085 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:5577082893 --> @SpicyMarinara commented on GitHub (Sep 8, 2026): Implemented in #5936 and merged into staging at 1cf7c57cec0cf070e09801ccb82e0af80abf16ea. The full required regression matrix and CodeRabbit review completed before merge. Live-provider and physical-device manual verification limits are documented in the PR.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3272
No description provided.