[GH-ISSUE #5143] Experience packages cannot hear spatial transition results — address capability server events to the game-owning package #2841

Closed
opened 2026-10-21 05:56:42 +07:00 by bsakaguchi · 1 comment
Owner

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 pendingSpatialTransition third argument of sendMessage), it never learns whether the move committed or was rejected. The engine already emits spatial_transition_committed / spatial_transition_rejected SSE events on the /generate stream, and the client re-dispatches them as marinara-capability-server-event window events — but they are addressed to hierarchical-maps only.

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's gameExperienceId — 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.

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 `pendingSpatialTransition` third argument of `sendMessage`), it never learns whether the move committed or was rejected. The engine already emits `spatial_transition_committed` / `spatial_transition_rejected` SSE events on the `/generate` stream, and the client re-dispatches them as `marinara-capability-server-event` window events — but they are addressed to `hierarchical-maps` only. 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's `gameExperienceId` — 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.
bsakaguchi 2026-10-21 05:56:42 +07:00
Author
Owner

@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).

<!-- gh-comment-id:5308150559 --> @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).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2841
No description provided.