mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5143] Experience packages cannot hear spatial transition results — address capability server events to the game-owning package #2841
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#2841
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 @kolacheee on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5143
Originally assigned to: @kolacheee on GitHub.
The problem
When a game-surface Experience sends a travel command (the
pendingSpatialTransitionthird argument ofsendMessage), it never learns whether the move committed or was rejected. The engine already emitsspatial_transition_committed/spatial_transition_rejectedSSE events on the/generatestream, and the client re-dispatches them asmarinara-capability-server-eventwindow events — but they are addressed tohierarchical-mapsonly.Pixelforge ships a workaround because of this: after sending a travel command it counts spatial refreshes, and if the location hasn't changed after two turns it assumes the move was rejected and shows "Travel didn't happen — the story stayed put." That is a guess with a two-turn lag, and every future Experience will need the same hack.
Try it yourself
In a Pixelforge chat with World Maps active, use Travel to a destination and have the GM narrate a refusal (or force a 409 by making the map stale in another tab). The world's travel state only clears two turns later — the package had no way to know sooner.
The ask
Deliver the same commit/reject events, with the same payload (
chatId, commandId, currentLocationId, definitionRevision), addressed to the package that owns the chat'sgameExperienceId— as a documented contract Experience authors can rely on, not by having them listen to another package's event namespace. Likely a capability API minor bump.Acceptance: Pixelforge can delete its stale-count workaround and clear/confirm a pending journey the moment the event arrives.
@kolacheee commented on GitHub (Aug 16, 2026):
Ownership: @kolacheee (agent-assisted). Implementation is up as draft PR #5149; it flips to ready after the live end-to-end pass with the Pixelforge consumer change (Marinara-Agents side).