mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #485] [MERGED] fix(game-map): preserve explicit move past metadata hydration #4637
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#4637
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/485
Author: @Romuromylus
Created: 5/6/2026
Status: ✅ Merged
Merged: 5/6/2026
Merged by: @Romuromylus
Base:
main← Head:fix/map-move-stale-partyposition📝 Commits (3)
55bd967fix(game-map): preserve explicit move past metadata hydration8f3bbeafix(game-map): thread explicit move through hydration03b4c51fix(game-map): anchor finalMap to targetMapId after hydration📊 Changes
1 file changed (+30 additions, -6 deletions)
View changed files
📝
packages/server/src/routes/game.routes.ts(+30 -6)📄 Description
Linked issue
Closes #484
Why this change
*moves to <label>*), butchat.metadata.gameMap.partyPositionnever advanced — so subsequent prompts kept building from the stale location and the map widget never updated.What changed
packages/server/src/routes/game.routes.ts, the/map/movehandler now re-applies the user's chosenpartyPositionon top of the hydrated meta afterbuildHydratedGameMeta. That helper callssyncGameMapMetaPartyPosition(meta, currentLocation)wherecurrentLocationis read from the latestgameStateSnapshot.location. Until the next/generaterun persists a new snapshot, that location still records the previous node, so the sync was silently snappingpartyPositionback to the old node before persistence.withActiveGameMapMetacall rebuildsgameMaps[]andactiveGameMapIdconsistently with the corrected map.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Docs and release impact
UI evidence (if applicable)
No UI code changed. Behaviour change is observed in the existing map widget — the marker now follows the user's destination click. Happy to attach a short screen recording if reviewers want one.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.