[GH-ISSUE #3817] [Issue]: Character and persona prompt fields use the wrong section order #2059

Closed
opened 2026-10-21 05:45:00 +07:00 by bsakaguchi · 2 comments
Owner

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

  1. Create a Character with Description, Personality, Backstory, Appearance, Scenario, and Example Dialogue filled.
  2. Generate a prompt in any mode that injects the Character card, including a Roleplay preset using the Characters marker.
  3. Inspect the assembled prompt and observe Scenario before Backstory and Appearance.

Environment

  • Marinara Engine version: current staging
  • Install type: source
  • OS + version: prompt-assembly behavior is platform-independent
  • Browser or app shell: prompt-assembly behavior is platform-independent

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

  • I DID NOT read this template and provide the requested details.
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 1. Create a Character with Description, Personality, Backstory, Appearance, Scenario, and Example Dialogue filled. 2. Generate a prompt in any mode that injects the Character card, including a Roleplay preset using the Characters marker. 3. Inspect the assembled prompt and observe Scenario before Backstory and Appearance. ## Environment - Marinara Engine version: current staging - Install type: source - OS + version: prompt-assembly behavior is platform-independent - Browser or app shell: prompt-assembly behavior is platform-independent ## 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 - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:45:00 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
Author
Owner

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

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

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

<!-- gh-comment-id:5016208771 --> @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.
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#2059
No description provided.