mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #484] [Issue]: Setting a destination on the map doesn't move the party — marker stays at the old location #218
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#218
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 @Romuromylus on GitHub (May 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/484
Summary
In Game Mode, clicking a node and confirming Set destination writes the move to the server but the party marker on the map stays at the previous location. The GM narrates the move correctly from the user's
*moves to X*message text, but the map state never advances, so subsequent turns build their prompts from the oldpartyPosition.Expected behavior
After confirming a destination,
/api/game/map/moveshould persist the newpartyPosition. The map widget marker should jump to the chosen node, and the next/generatecall should see the new position inchat.metadata.gameMap.partyPosition.Actual behavior
The marker stays at the previous node. The GM still narrates the player walking to the destination (because the user message contains
*moves to <label>*), but the map widget never updates, and the next round of prompt building reads the stalepartyPositionagain.Steps to reproduce
Environment
Logs, screenshots, or video
No client-side errors. The DevTools console shows
/api/game/map/movesucceeding (200) and/api/generaterunning normally.Root cause is server-side in
packages/server/src/routes/game.routes.ts: the/map/movehandler writes the newpartyPosition, then runsbuildHydratedGameMeta, which callssyncGameMapMetaPartyPosition(meta, currentLocation)wherecurrentLocationis read from the latestgameStateSnapshot.location— and that snapshot still records the previous location until the next/generaterun produces a new one. The sync silently snapspartyPositionback to the old node before persistence.Additional context
/map/movehandler in #333; not a recent regression inbuildHydratedGameMetaitself.Template check