mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3818] [MERGED] Fix character and persona prompt field order #6116
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#6116
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3818
Author: @SpicyMarinara
Created: 7/19/2026
Status: ✅ Merged
Merged: 7/19/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/character-persona-field-order📝 Commits (3)
5ed074fchore: start prompt field ordering fix54b4cc0fix: align prompt card field ordere2f2e8cMerge branch 'staging' into agent/character-persona-field-order📊 Changes
11 files changed (+223 additions, -34 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
packages/server/src/routes/chats.routes.ts(+9 -9)📝
packages/server/src/routes/game.routes.ts(+6 -6)📝
packages/server/src/routes/generate/dry-run-route.ts(+6 -2)📝
packages/server/src/routes/scene.routes.ts(+1 -1)📝
packages/server/src/services/agents/agent-executor.ts(+1 -1)📝
packages/server/src/services/generation/character-prompt-context.ts(+1 -1)📝
packages/server/src/services/generation/game-gm-prompt-runtime.ts(+1 -1)📝
packages/server/src/services/generation/professor-mari-command-runtime.ts(+4 -4)📝
packages/server/src/services/prompt/marker-expander.ts(+28 -8)📝
scripts/regressions/prompt.regression.ts(+165 -1)📄 Description
Linked issue
Closes #3817
Why this change
Character and Persona sections should reach models in the same top-to-bottom order users see in their editors. Several serializers placed Scenario before Backstory and Appearance, while agent and Game card contexts had their own ordering drift.
Root cause
The canonical order was repeated manually across marker expansion, fallback injection, prompt preview, agents, and Game helpers. The Characters marker default itself encoded the old order, and saved custom marker selections were emitted in their stored order.
What changed
Automated evidence
Manual verification
Risk
This is a provider-facing prompt-order change. Field content, labels, wrappers, preset section placement, advanced instructions, and macro behavior are unchanged. Existing custom marker selections are preserved but their standard card fields now follow the editor order.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.