mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5926] A Game Mode regenerate that returns command-only appends an anchor instead of replacing the message #3274
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#3274
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 @kolacheee on GitHub (Sep 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5926
Originally assigned to: @SpicyMarinara on GitHub.
When a Game Mode generation is a regenerate (the request carries the id of the message
being redone) and the model's reply strips down to nothing — today that means a reply
that was only bracket commands — the empty-response path ignores the regenerate id and
appends instead: the original message stays, and a new hidden anchor row is created
after it. Regenerate the same turn a few times and the chat accumulates trailing
anchors, one per attempt, while the message being regenerated never changes.
Where it is. The empty-response branch in
packages/server/src/routes/generate.routes.ts(~:7373-7379 on current staging plusthe GM verb runtime branch) always goes through message creation and never consults
input.regenerateMessageId, unlike the normal save path. The shape predates the GMverb work — a Conversation command-only regenerate does the same — but the verb
channel makes verb-only replies a normal outcome rather than a rarity, so the
accumulation gets easier to hit.
Why it matters. The visible outcome is currently benign (the game surface filters
hidden rows when picking the narration to show, so the player sees the unchanged
original), but the stored chat grows a tail of empty hidden rows with no owner, and
anything that walks raw messages — exports, previews, future tooling — meets them.
The smallest honest fix is to make the empty-response branch honor the regenerate id
the way the normal save path does: a regenerate that comes back command-only should
land its anchor as the regenerated message's new swipe (or replace it), not as a fresh
appended row. Whichever shape is chosen should match what a Conversation command-only
regenerate decides to do, since the two paths share the behavior today.
@SpicyMarinara commented on GitHub (Sep 8, 2026):
Codex is taking #5926 and #5927 for @SpicyMarinara. The draft targets
stagingand keeps command-only regenerations on the existing message/swipe while making Game narration and its sibling readers agree about hidden rows.@SpicyMarinara commented on GitHub (Sep 8, 2026):
Resolved by #5975, merged into staging. Command-only regeneration now saves a new swipe on the original message; the real generation/storage regression covers repeated regeneration and visibility when switching swipes.