mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2450] 12-PROMPT-RUNTIME-regenerate-continue-impersonate: user-message regeneration source prompt is missing #1205
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#1205
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 @Promansis on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2450
Originally assigned to: @Xelvanis on GitHub.
Summary
12-PROMPT-RUNTIME-regenerate-continue-impersonate: refactor regeneration does not preserve the legacy user-message regeneration prompt path. Assistant regenerate, continue, and impersonate paths have matching static evidence, but the legacy path for regenerating a user message keeps the source user turn available for prompt macros/lorebook/memory and builds a rewrite prompt; no equivalent refactor path was found.Links: #2442
Expected behavior
Regenerating a user message should preserve legacy prompt semantics:
Actual behavior
Refactor slices history before the regenerate target and saves regenerated content as a swipe, but targeted static trace did not find a user-message source/rewrite prompt path equivalent to legacy
buildUserMessageRegenerationPromptFromSource.Steps to reproduce
Impact area
Environment
Logs, screenshots, or video
Proof:
main:packages/server/src/routes/generate.routes.ts:1764.main:packages/server/src/routes/generate.routes.ts:1978,main:packages/server/src/routes/generate.routes.ts:2108,main:packages/server/src/routes/generate.routes.ts:2367.src/engine/generation/start-generation.ts:1150,src/engine/generation/start-generation.ts:1320,src/engine/generation/start-generation.ts:3050.src/engine/generation/start-generation.ts:2384.Files inspected:
src/engine/generation/start-generation.tssrc/engine/generation/generation-replay.tssrc/engine/generation/prompt-assembly.tssrc/engine/shared/text/generation-guide.tssrc/engine/modes/chat/commands/impersonate-prompt.tsmain:packages/server/src/routes/generate.routes.tsmain:packages/server/src/services/conversation/impersonate-prompt.tsmain:packages/shared/src/utils/generation-guide.tsRegression notes
Legacy
mainhas explicit user-message regeneration source/rewrite handling inpackages/server/src/routes/generate.routes.ts. The refactor static trace did not find the equivalent path.Additional context
Acceptance criteria:
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: