mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4728] [Issue]: Conversation mode edits are ignored by the model when the reply contained a character command #2596
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#2596
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 @NeoKazuya on GitHub (Aug 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4728
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In Conversation mode, editing a character's message has no effect on future prompts if that initial message's generation emitted a character command such as
[schedule_update]or[selfie]. The UI, the database, and chat exports all show the edit, but every later model request still contains the original wording, permanently.Expected behavior
After editing an assistant message, prompt history should send the edited text to the model. This already works in Roleplay mode and for Conversation messages that carried no command.
Actual behavior
Prompt history keeps sending the pre-edit text for the affected message. The stale text survives regeneration, swipes, and app restarts. Deleting a line through an edit only removes it from the visible chat. The deleted text still reaches the model in every later prompt.
Affected messages look identical to clean ones because commands are stripped before display, so some edits stick and others are silently ignored with no visible pattern.
Steps to reproduce
Expected: the character follows the edited text.
Actual: the character keeps referencing the original text. With a reasoning model, the thinking trace quotes the original wording directly, and Peek Prompt on the new reply shows the original text in its history. The same steps on a reply without a command work correctly.
Environment
2.4.2Docker install; root cause reproduced from source on currentstagingat83595dc6aLogs, screenshots, or video
Scanning every table of an affected install's data store for a phrase the character kept repeating found two rows, both in
extra.conversationCommandContent(the message and its active swipe), with zero hits in anycontentcolumn.Additional context
Likely cause: when a reply contains commands, the raw pre-strip text is kept on the message in
extra.conversationCommandContentso the command markers stay in the model-visible transcript. Conversation-mode prompt history prefers that field over the editedcontentunconditionally, and the edit path updatescontentand the active swipe but never touches the field. Nothing else clears it, so once it is set, edits to that message cannot reach the model.The same path also affects prose-guardian rewrites: the rewrite runs after the field is persisted, so the model keeps seeing pre-rewrite prose on Conversation replies that contained a command.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Aug 7, 2026):
Good catch. Thank you so much for the PR, too!