mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8185] Game narration can retain planning-only and post-roll planning text #7602
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#7602
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 @SpicyMarinara on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8185
Originally assigned to: @SpicyMarinara on GitHub.
Game narration can still display private planning in two cases already present in staging. This was independently verified while reviewing the clean staging integration into #8153; it is outside that PR's agent-lorebook changes.
Observed with the real Fastify
/api/generate/route, actual disposable storage and synthetic model replies:Plan: Hidden preparation only.is saved verbatim and emitted visibly.extractLeadingGmPlanningintentionally restores the original text when no narration follows (the existing regression explicitly preserves this case). The follow-up should choose a safe no-narration outcome without deleting legitimate out-of-character answers.[dice: 1d1]causes a real engine roll and a second narration request. When that second reply beginsPlan: This is hidden final planning.\n\nThe stone strikes the floor., both the plan and scene are saved before the real dice receipt. The extraction currently runs before this replacement narration is generated; the follow-up extracts tagged thinking, but does not apply the labeled-planning extraction again.Code ownership: Engine
packages/server/src/services/game/gm-planning.tsand the final Game narration path inpackages/server/src/routes/generate.routes.ts. Keep the fix focused on final visible narration and preserve resolved rolls, receipts, actual harm/healing/resource commands, impersonation and normal prose.Runnable probe and actual route results. All four raw files in that evidence gist were byte-verified. Probe source is
marinara-upstream-planner-787-probe.mts; results aremarinara-upstream-planner-787-actual.log. Proof used candidate787ea1481, whose planning implementation is the already-published staging implementation. No live model or paid-provider test was performed.Owner for triage: @SpicyMarinara. Implementation has not started in this follow-up; no branch or draft duplicates the active lorebook work.
@coderabbitai[bot] commented on GitHub (Oct 23, 2026):
⚠️ Possible Duplicate Issue(s)
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
@SpicyMarinara commented on GitHub (Oct 23, 2026):
Implementation owner: @SpicyMarinara (Codex lane assigned_agents_ui). I am taking the bounded server-only planner helper/final narration fix in an isolated branch. I will reproduce the actual generation-route cases before changing source and preserve OOC, impersonation, resolved dice receipts and game commands.