mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2966] [Issue]: GM mode import overwrites manual narration edits and new session creation breaks after branch import #1542
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#1542
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 (Jun 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2966
Originally assigned to: @SpicyMarinara on GitHub.
Summary
In GM mode, imported chats revert manual narration edits made before export, and creating a new session after importing a branch can place the new session in the wrong chat and make existing branches unusable. A separate frontend-only Minified React error #185 also appears when generating a new GM session, especially with large GM files.
Expected behavior
Imported GM chats should preserve manual narration edits. Creating a new session from an imported branch should create it in the intended chat and keep existing branches functional. Generating/switching sessions should not trigger a frontend crash.
Actual behavior
On import, GM mode chats revert narration text back to the original AI output instead of keeping user edits. After exporting a completed session from Chat 1, importing it into a branch in Chat 2, and creating a new session, the new session was generated in Chat 1 instead of Chat 2; Chat 1 branches then became clickable but would not actually switch. Separately, generating or switching to a new session on large GM files triggers Minified React error #185. Silver Wolf reported the same error with frontend-only crashing, plus repeated backend API failures (429s and later "no api connected" errors) shown in PowerShell.
Steps to reproduce
Environment
Logs, screenshots, or video
Minified React error #185 on switching to/generating new session from large GM files. Silver Wolf also reported PowerShell backend logs showing many failed API calls, including 429 errors and later "no api connected" errors.
Additional context
Leon reported these issues in GM mode. Marinara replied that edits should be preserved on export and would investigate the React error; for the branch/session issue, Marinara suspected exporting/importing may have broken the state, but noted it should not work this way. Silver Wolf said the React error affects only the frontend window and does not crash the backend.
Discord thread: GM mode issues
Discord thread link: https://discord.com/channels/1417099416812392641/1521061798390796379
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (6 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 (Jun 29, 2026):
Extra comment clarifications:
"The Edits ARE listed in the first line of the export document, but not integrated in the next lines."
… Whatever that means. Still, edits should be considered when we import and the edited text should be displayed to the users and be considered in the prompt. The error on creating a new session should also be investigated.
The exact error on the new session:
First this one, repeated dozens of times per attempt:
{"level":50,"time":1782707778253,"pid":30352,"hostname":"George-PC","reqId":"req-1gx","err":{"type":"Error","message":"Custom OpenAI-compatible endpoint error 429: Too many concurrent requests.","stack":"Error: Custom OpenAI-compatible endpoint error 429: Too many concurrent requests.\n at OpenAIProvider.chatComplete (file:///C:/Users/gfeld/AppData/Local/MarinaraEngine/packages/server/dist/services/llm/providers/openai.provider.js:1044:19)\n at async runGameChatComplete (file:///C:/Users/gfeld/AppData/Local/MarinaraEngine/packages/server/dist/routes/game.routes.js:1455:16)\n at async Object. (file:///C:/Users/gfeld/AppData/Local/MarinaraEngine/packages/server/dist/routes/game.routes.js:5886:24)"},"msg":"Custom OpenAI-compatible endpoint error 429: Too many concurrent requests."}
Then after I deleted an old connection to see if that was the problem, it started giving this one:
{"level":50,"time":1782712784522,"pid":30352,"hostname":"George-PC","reqId":"req-9ma","err":{"type":"Error","message":"API connection not found","stack":"Error: API connection not found\n at resolveConnection (file:///C:/Users/gfeld/AppData/Local/MarinaraEngine/packages/server/dist/routes/game.routes.js:1154:15)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async Object. (file:///C:/Users/gfeld/AppData/Local/MarinaraEngine/packages/server/dist/routes/game.routes.js:5835:64)"},"msg":"API connection not found"}
I should note, my API is definitely connected. I've been using it this whole time.
@SpicyMarinara commented on GitHub (Jun 29, 2026):
Fixed in staging: JSONL import now trusts active mes text over stale swipe content, and imported Game metadata remaps source gameId/scene pointers so branch imports cannot start sessions in the wrong campaign. Validated with pnpm check and pnpm regression:prompt.