mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1506] Roleplay Author's Notes are saved but not injected into prompts #756
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#756
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 @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 Notespanel that tells the user its text is injected into the prompt at the chosen depth, but the savedmetadata.authorNotesvalue is not read by prompt assembly or prompt preview.Native repro
Author's Notesfrom the Roleplay surface.A5_AUTHOR_NOTES_MARKER, and let the panel save.{{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
src/features/modes/roleplay/components/ChatRoleplayPanels.tsxsavesauthorNotesandauthorNotesDepththroughuseUpdateChatMetadata.src/engine/generation/prompt-assembly.tshas noauthorNotes/authorNotesDepthreader.A5_AUTHOR_NOTES_MARKER, butpreviewGenerationPrompt(...)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.
@SpicyMarinara commented on GitHub (May 29, 2026):
Addressed in
8b7dad66on 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.