mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3918] [Issue]: Generated content can be persisted twice in Noodle and Conversation mode #2118
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#2118
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 (Jul 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3918
Summary
Generated content can be posted twice in two related flows:
Expected behavior
Each generated post or reply should contain distinct content. If a model returns a duplicate, Marinara should discard the copy before creating a post, reply, or Conversation message.
Actual behavior
Steps to reproduce
The Conversation standard-reply path is also vulnerable when a browser stream disconnects while the server continues generation: recovery can refetch the server-saved message and then persist the streamed partial as another message.
Environment
bb19b39Logs, screenshots, or video
Reporter screenshots show:
No relevant logs were provided.
Additional context
Implementation owner: @Xelvanis (
fix/prevent-duplicate-posts). GitHub does not permit this fork contributor to self-assign the upstream issue.The structured Noodle output schema contains both posts and interactions in one response, which may make reuse more likely, but it does not itself contain duplicated sample content. Runtime detection is still required because prompt instructions alone cannot guarantee unique model output.
The proposed behavior is to strengthen the prompts, reject substantial normalized Conversation repeats before persistence, remove duplicate Noodle post/reply items before media generation or persistence, and prevent interrupted-stream recovery from performing a second durable write.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: