mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3817] [Issue]: Character and persona prompt fields use the wrong section order #2059
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#2059
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 (Jul 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3817
Summary
Character cards and Persona fields are serialized into prompts in an order that does not match their editor sections. This affects the Characters preset marker and general card injection across modes.
Expected behavior
Filled sections should be emitted in editor order, skipping empty values: Description, Personality, Backstory, Appearance, Scenario, Example Dialogue. Persona fields should follow the same relative editor order for the sections they support.
Actual behavior
Character prompt serialization currently places Scenario before Backstory and Appearance: Description, Personality, Scenario, Backstory, Appearance, Example Dialogue.
Steps to reproduce
Environment
Logs, screenshots, or video
The incorrect order is visible in the assembled provider prompt; no runtime error is emitted.
Additional context
Apply the canonical editor order consistently across Conversation, Roleplay, and Game prompt injection paths, including Persona serialization, while continuing to omit empty fields.
Template check
@SpicyMarinara commented on GitHub (Jul 19, 2026):
@SpicyMarinara is taking this prompt-assembly fix. A draft PR will track implementation and cross-mode regression proof.
@SpicyMarinara commented on GitHub (Jul 19, 2026):
Implemented and validated in draft PR #3818. The fix covers preset markers, fallback and preview assembly, agent lore, Game/scene card contexts, and Professor Mari fetches, with focused prompt regressions and the full repository check passing.