mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1461] [Issue]: Peek Prompt and generation use inconsistent prompt formatting parameters - prompt assembler contract bad #723
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#723
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 @Promansis on GitHub (May 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1461
Originally assigned to: @Promansis on GitHub.
Summary
Peek Prompt can show the final post-formatting request shape instead of a readable authored-section preview, and prompt assembly can apply different merged generation parameters than the final LLM request.
Expected behavior
Peek Prompt should display the authored prompt sections with clear section labels while still reflecting the same preset variables, connection, request, and chat-scoped generation parameters used by real generation.
Strict role formatting should preserve authored post-history system sections, such as output format instructions, instead of flattening them into user-side content.
Actual behavior
Peek Prompt may collapse or relabel prompt content according to the final LLM message shape, making strict-role and single-user formatting difficult to inspect.
Formatting flags such as
strictRoleFormattingandsingleUserMessagecan be merged differently between prompt assembly and the final LLM request, so preview, assembly, and generation can disagree.Post-history system sections can be converted into user-side content under strict role formatting.
Steps to reproduce
strictRoleFormattingorsingleUserMessage.Impact area
Environment
fix/prompt-assembly-formatLogs, screenshots, or video
TODO: Add before/after Peek Prompt screenshots showing section labels and preview messages.
Regression notes
Observed on the refactor branch prompt assembly/preview path. Last known good commit not confirmed.
Additional context
Related branch work introduces separate preview-only prompt messages with section display names, shares generation parameter source ordering between assembly/preview/final request paths, and preserves post-
history system sections during strict role formatting.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: