mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2165] [Issue]: Secret Plot turn-only re-roll clobbers the overarching arc (secretPlotRerollMode ignored) #1074
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#1074
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 @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2165
Originally assigned to: @cha1latte on GitHub.
Summary
The Secret Plot panel offers a "re-roll this turn only" button that is supposed to refresh per-turn guidance while preserving the long-running
overarchingArcmemory. In the refactor thesecretPlotRerollModeflag is still sent by the UI but is read nowhere in the engine, andpersistSecretPlotAgentMemoryunconditionally overwritesoverarchingArcon every secret-plot result, so a turn-only re-roll wipes the arc it was designed to keep.Expected behavior
On a turn-only re-roll, the
overarchingArcagent memory is preserved and only per-turn state (sceneDirections / pacing / staleDetected) is refreshed, matching legacy'ssecretPlotRerollMode !== "turn_only"guard before writing the arc.Actual behavior
The engine ignores
secretPlotRerollModeentirely (no match anywhere insrc/engineorsrc-tauri; the only reference is the clientSecretPlotPanelthat sends it).persistSecretPlotAgentMemoryalways overwritesoverarchingArcwhenever the result carries one, so "turn_only" behaves identically to "full" and the arc is clobbered. The UI even shows a toast promising preservation, which is now false.Steps to reproduce
Impact area
Environment
93555d4bRegression notes
Worked in legacy (main @
c49f1d95). main:packages/server/src/routes/generate/retry-agents-route.ts:1574gates the overarchingArc write onsecretPlotRerollMode !== "turn_only". refactor @93555d4b:src/engine/generation/agent-memory-runtime.ts:44(unconditional overarchingArc write); retry path atsrc/engine/generation/start-generation.ts:2392,2898;secretPlotRerollModeproduced only atsrc/features/modes/roleplay/components/SecretPlotPanel.tsx:228, consumed nowhere. Fix: threadsecretPlotRerollModeintopersistSecretPlotAgentMemoryand skip the arc write when it equals "turn_only".