mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1248] [Issue]: Refactor assistant regenerate loses generation replay metadata #611
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#611
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 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1248
Originally assigned to: @cha1latte on GitHub.
Summary
Assistant regeneration can lose or ignore the generation replay metadata needed to reproduce the original request shape. The generation path writes replay metadata to the user message, while the regenerate path reads replay metadata from the target assistant message.
Expected behavior
Regenerating an assistant message should reuse the replay metadata that produced the target response, including guided/impersonation/request-shape details, or should explicitly store that replay metadata on the assistant message/swipe target.
Actual behavior
The audit found replay metadata being built on the user message during generation, while the regenerate hook reads from the assistant message being regenerated. The assistant save path does not appear to persist that replay metadata in the same place the regenerate path reads it.
Steps to reproduce
refactorbranch, create a chat response with guided generation or another generation mode that depends on replay metadata.Impact area
Environment
refactor, identified during 2026-05-26 failpath auditLogs, screenshots, or video
Relevant code paths:
Audit finding:
Regression notes
Found by source inspection during the 2026-05-26 failpath audit. Needs a guided-regenerate regression test or focused manual trace.
Additional context
This can produce subtle behavior drift: the regenerated message may not use the same prompt/replay contract as the original target even though the UI action implies "regenerate this response."
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: