[GH-ISSUE #1506] Roleplay Author's Notes are saved but not injected into prompts #756

Closed
opened 2026-10-20 17:32:59 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xelvanis on GitHub (May 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1506

Originally assigned to: @SpicyMarinara on GitHub.

Finding

Roleplay exposes an Author's Notes panel that tells the user its text is injected into the prompt at the chosen depth, but the saved metadata.authorNotes value is not read by prompt assembly or prompt preview.

Native repro

  1. Open a Roleplay chat in the native Tauri app.
  2. Open Author's Notes from the Roleplay surface.
  3. Enter a distinctive marker, for example A5_AUTHOR_NOTES_MARKER, and let the panel save.
  4. Open prompt preview with {{prompt}}.
  5. Inspect the assembled prompt.

Expected

The saved author note should appear in the assembled Roleplay prompt at the configured depth (metadata.authorNotesDepth), matching the UI copy.

Actual

The metadata is saved, but the assembled prompt does not contain the author note. In the same preview, character/persona/lorebook markers selected through Chat Settings were present, so the prompt preview path itself was current.

Evidence

  • UI save path: src/features/modes/roleplay/components/ChatRoleplayPanels.tsx saves authorNotes and authorNotesDepth through useUpdateChatMetadata.
  • Surface copy says the text is injected every generation.
  • Prompt assembly path: src/engine/generation/prompt-assembly.ts has no authorNotes / authorNotesDepth reader.
  • Native QA result: persisted metadata contained A5_AUTHOR_NOTES_MARKER, but previewGenerationPrompt(...) returned prompt text without that marker while still including the A5 character, persona, and lorebook markers.

Impact

Users can write author notes and see the note indicator light up, but the model never receives those instructions. This is a silent Roleplay prompt contract break.

Originally created by @Xelvanis on GitHub (May 29, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1506 Originally assigned to: @SpicyMarinara on GitHub. ## Finding Roleplay exposes an `Author's Notes` panel that tells the user its text is injected into the prompt at the chosen depth, but the saved `metadata.authorNotes` value is not read by prompt assembly or prompt preview. ## Native repro 1. Open a Roleplay chat in the native Tauri app. 2. Open `Author's Notes` from the Roleplay surface. 3. Enter a distinctive marker, for example `A5_AUTHOR_NOTES_MARKER`, and let the panel save. 4. Open prompt preview with `{{prompt}}`. 5. Inspect the assembled prompt. ## Expected The saved author note should appear in the assembled Roleplay prompt at the configured depth (`metadata.authorNotesDepth`), matching the UI copy. ## Actual The metadata is saved, but the assembled prompt does not contain the author note. In the same preview, character/persona/lorebook markers selected through Chat Settings were present, so the prompt preview path itself was current. ## Evidence - UI save path: `src/features/modes/roleplay/components/ChatRoleplayPanels.tsx` saves `authorNotes` and `authorNotesDepth` through `useUpdateChatMetadata`. - Surface copy says the text is injected every generation. - Prompt assembly path: `src/engine/generation/prompt-assembly.ts` has no `authorNotes` / `authorNotesDepth` reader. - Native QA result: persisted metadata contained `A5_AUTHOR_NOTES_MARKER`, but `previewGenerationPrompt(...)` returned prompt text without that marker while still including the A5 character, persona, and lorebook markers. ## Impact Users can write author notes and see the note indicator light up, but the model never receives those instructions. This is a silent Roleplay prompt contract break.
bsakaguchi 2026-10-20 17:32:59 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (May 29, 2026):

Addressed in 8b7dad66 on refactor. Roleplay prompt assembly now reads metadata.authorNotes/authorNotesDepth and injects the saved note as a system depth entry, matching the main-branch behavior. Added a prompt-assembly regression test proving the marker appears in preview/generation messages at the configured depth while prompt comments are stripped.

<!-- gh-comment-id:4572396210 --> @SpicyMarinara commented on GitHub (May 29, 2026): Addressed in 8b7dad66 on refactor. Roleplay prompt assembly now reads metadata.authorNotes/authorNotesDepth and injects the saved note as a system depth entry, matching the main-branch behavior. Added a prompt-assembly regression test proving the marker appears in preview/generation messages at the configured depth while prompt comments are stripped.
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#756
No description provided.