mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1792] [Issue]: Game mode refactor lost auto checkpoints and scene asset safeguards #875
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#875
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 @Xelvanis on GitHub (Jun 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1792
Originally assigned to: @cha1latte on GitHub.
Summary
Static comparison against the legacy game mode found several likely-unintentional regressions in the refactor game surface:
groupId, while gallery session scoping still queries bygroupId.Expected behavior
Game mode should preserve these legacy outcomes unless intentionally removed:
Actual behavior
Static evidence from the refactor path shows:
src/features/modes/game/components/GameCheckpoints.tsx:60only creates manual checkpoints.src/features/modes/game/api/game-api.ts:2041implements manual checkpoint creation, but no matching auto-create calls were found in start-session, conclude-session, or combat transition paths.src/engine/modes/game/scene/game-scene-analysis.service.ts:262catches scene-analysis failures and returnsdefaultGameSceneAnalysis(), which reaches the UI success path instead ofonErrorfallback.src/features/modes/game/api/game-api.ts:2378callsimageGenerationApi.generatewith prompt/size only, with noreferenceImagespayload for scene illustrations.src/features/modes/game/api/game-api.ts:2398uploads generated illustrations as game assets, but no chat gallery row creation was found.src/features/catalog/gallery/hooks/use-gallery.ts:70scopes game galleries bygroupId, while refactor game create/start-session paths appear to setmetadata.gameIdbut notgroupId.Legacy evidence:
packages/server/src/routes/game.routes.ts:3739created session-start checkpoints.packages/server/src/routes/game.routes.ts:3947created session-end checkpoints.packages/server/src/routes/game.routes.ts:5097created combat transition checkpoints.packages/client/src/hooks/use-scene-analysis.ts:68threw on failed/game/scene-wrap, letting the UI fallback run.packages/server/src/routes/game.routes.ts:257,:7023, and:7105enforced illustration cooldown metadata.packages/server/src/routes/game.routes.ts:452and:7089saved generated illustrations to chat gallery.packages/server/src/routes/game.routes.ts:3006and:3603wrotegroupId: gameIdon game/session chats.Steps to reproduce
game-checkpointsrows.Impact area
Environment
6cc9d086Logs, screenshots, or video
No runtime logs or screenshots. Static evidence is listed above with relative file paths and line anchors.
Regression notes
These behaviors existed in the legacy game implementation and appear absent or weakened in the refactor code paths. No current-code evidence found that the removals were intentional product decisions.
Additional context
Suggested repair order:
groupIdpersistence, or update gallery scoping to usemetadata.gameIdconsistently.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@cha1latte commented on GitHub (Jun 1, 2026):
Fixed in #1823