mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5349] [Issue]: Game Mode JSONL export preserves deleted and edited narration segments #2958
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#2958
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 (Aug 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5349
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Deleting or editing narration segments in Game Mode changes the visible transcript but is not applied to exported JSONL content. Reimporting the export can restore deleted text and lose segment changes.
Expected behavior
The JSONL export should match the transcript currently displayed in Game Mode: deleted segments should be absent, edited segments should contain their edited text, and importing the export should preserve those changes.
Actual behavior
The exported JSONL retains the original text in the message's mes and swipes fields. Reimporting the file restores deleted material. Segment changes are stored as metadata overlays, but the exporter does not apply them and imported messages receive new IDs that no longer match the original metadata.
Steps to reproduce
Environment
Logs, screenshots, or video
No logs, screenshots, or video were provided.
Additional context
The issue appears related to metadata overlays such as segmentDelete::. The exporter writes original message content without applying these overlays, and exported message entries do not retain their original message IDs. Impact includes restored deleted story content, exports that differ from the visible transcript, and segment-edit metadata that increases export size without reliably preserving edits. A possible fix is to apply segment edits and deletions to a copy before export, or preserve and remap original message IDs during import.
Discord thread: Game Mode JSONL session export does not preserve deleted or edited narration segments
Discord thread link: https://discord.com/channels/1417099416812392641/1540184626914398248
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (2 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Aug 21, 2026):
Resolved in #5350 and landed on
staging.