[GH-ISSUE #3918] [Issue]: Generated content can be persisted twice in Noodle and Conversation mode #2118

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

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:

  • Noodle can create a post and then create a reply from the same account with identical text.
  • Conversation mode can repeat the same substantial character message, both for normal replies after a user message and for Autonomous check-ins.

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

  • A Noodle refresh can persist a new post and an identical reply beneath it.
  • Conversation mode can persist the same character message again in a later generation. This has been observed in both standard and Autonomous generation.

Steps to reproduce

  1. On staging, generate Noodle timeline activity or use a Conversation chat with standard/Autonomous generation enabled.
  2. Continue generating activity over multiple turns or check-ins.
  3. Observe that the model can occasionally return identical content and Marinara persists the duplicate as a separate post, reply, or message.

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

  • Marinara Engine version: staging build bb19b39
  • Install type: not provided
  • OS + version: not provided
  • Browser or app shell: not provided

Logs, screenshots, or video

Reporter screenshots show:

  • A Noodle post copied verbatim into a reply by the same account.
  • The same multi-line Conversation message posted at 7:32 AM and again at 10:03 AM.

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:

  • I DID NOT read this template and provide the requested details.
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: - Noodle can create a post and then create a reply from the same account with identical text. - Conversation mode can repeat the same substantial character message, both for normal replies after a user message and for Autonomous check-ins. ## 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 - A Noodle refresh can persist a new post and an identical reply beneath it. - Conversation mode can persist the same character message again in a later generation. This has been observed in both standard and Autonomous generation. ## Steps to reproduce 1. On staging, generate Noodle timeline activity or use a Conversation chat with standard/Autonomous generation enabled. 2. Continue generating activity over multiple turns or check-ins. 3. Observe that the model can occasionally return identical content and Marinara persists the duplicate as a separate post, reply, or message. 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 - Marinara Engine version: staging build `bb19b39` - Install type: not provided - OS + version: not provided - Browser or app shell: not provided ## Logs, screenshots, or video Reporter screenshots show: - A Noodle post copied verbatim into a reply by the same account. - The same multi-line Conversation message posted at 7:32 AM and again at 10:03 AM. 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: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:45:32 +07:00
  • closed this issue
  • added the
    in-pr
    label
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#2118
No description provided.