[GH-ISSUE #4532] [Issue]: World Maps Start over hides Link to chat for shared worlds #2470

Closed
opened 2026-10-21 05:48:30 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @thetopham on GitHub (Aug 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4532

Originally assigned to: @thetopham on GitHub.

Summary

When an existing Roleplay or Game map is opened from a chat/runtime World Maps surface, Replace / start over → Use template or shared world lists the account's shared worlds but does not show Link to chat. The user cannot restart the chat's map by linking it to a shared world from the replacement workflow.

Current source indicates that Engine supplies the capability with chatId but omits chatMode from its runtime and in-game world-map entry points. The World Maps library requires both values to recognize a supported chat, so it takes the non-chat branch and hides the linking action.

Expected behavior

  • Replace / start over → Use template or shared world retains the target chat context when opened from any Roleplay or Game World Maps surface.
  • Each viable shared world offers Link to chat (or Link different world when already linked elsewhere).
  • Selecting it links the current chat to the canonical shared world when the existing spatial state is compatible.
  • If committed history, the current location, bindings, or unpublished changes make relinking unsafe, keep the action visible and explain the specific blocking condition or safe alternative instead of silently hiding it.
  • The library clearly identifies the target chat and does not fall back to global-only actions such as Delete merely because a capability prop was omitted.

Actual behavior

The replacement panel opens the World library and lists shared worlds, but their cards do not include Link to chat. This makes the completed Use template or shared world replacement path appear unable to use a shared world as a durable link.

Depending on the entry point, the same library can show Link to chat when opened through a surface that supplies chatMode, which makes the behavior context-dependent.

Steps to reproduce

  1. Open a Roleplay or Game chat that already has a World Map.
  2. Open the map/editor from the chat's runtime map or in-game World Map surface.
  3. Select Replace / start over.
  4. Select Use template or shared world.
  5. Find an existing, populated shared world.
  6. Observe that the shared-world card has no Link to chat action.
  7. As a control, open the World library through a package/detail surface that supplies the active chat mode and compare the available actions.

Environment

  • Marinara Engine version: v2.4.1 staging source (ce90b08b703aa6aeff57b023f5bee933b9f1dc4f); reporter's exact served build not yet supplied
  • World Maps version: v1.3.0 current package source (8318164b79221073e39edf63f74264f62b12ce8a); reporter's exact installed artifact not yet supplied
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

No runtime log is required to identify the current prop mismatch:

Additional context

This is a regression/integration gap following completed World Maps work:

  • Marinara-Agents #135 established Replace / start over with template/shared-world selection.
  • Marinara-Agents #162 established clearer shared-world association and replacement navigation.
  • Engine #4323 addressed selecting a shared world during initial Game setup; this report concerns replacing an already-existing chat map from the runtime/editor flow.

World Maps should continue enforcing history and current-location safety. The bug is that the linking action disappears before those validations can run because Engine did not preserve the target chat mode across the capability entry point.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Aug 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4532 Originally assigned to: @thetopham on GitHub. ## Summary When an existing Roleplay or Game map is opened from a chat/runtime World Maps surface, **Replace / start over → Use template or shared world** lists the account's shared worlds but does not show **Link to chat**. The user cannot restart the chat's map by linking it to a shared world from the replacement workflow. Current source indicates that Engine supplies the capability with `chatId` but omits `chatMode` from its runtime and in-game world-map entry points. The World Maps library requires both values to recognize a supported chat, so it takes the non-chat branch and hides the linking action. ## Expected behavior - **Replace / start over → Use template or shared world** retains the target chat context when opened from any Roleplay or Game World Maps surface. - Each viable shared world offers **Link to chat** (or **Link different world** when already linked elsewhere). - Selecting it links the current chat to the canonical shared world when the existing spatial state is compatible. - If committed history, the current location, bindings, or unpublished changes make relinking unsafe, keep the action visible and explain the specific blocking condition or safe alternative instead of silently hiding it. - The library clearly identifies the target chat and does not fall back to global-only actions such as Delete merely because a capability prop was omitted. ## Actual behavior The replacement panel opens the World library and lists shared worlds, but their cards do not include **Link to chat**. This makes the completed **Use template or shared world** replacement path appear unable to use a shared world as a durable link. Depending on the entry point, the same library can show **Link to chat** when opened through a surface that supplies `chatMode`, which makes the behavior context-dependent. ## Steps to reproduce 1. Open a Roleplay or Game chat that already has a World Map. 2. Open the map/editor from the chat's runtime map or in-game World Map surface. 3. Select **Replace / start over**. 4. Select **Use template or shared world**. 5. Find an existing, populated shared world. 6. Observe that the shared-world card has no **Link to chat** action. 7. As a control, open the World library through a package/detail surface that supplies the active chat mode and compare the available actions. ## Environment - Marinara Engine version: v2.4.1 staging source (`ce90b08b703aa6aeff57b023f5bee933b9f1dc4f`); reporter's exact served build not yet supplied - World Maps version: v1.3.0 current package source (`8318164b79221073e39edf63f74264f62b12ce8a`); reporter's exact installed artifact not yet supplied - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video No runtime log is required to identify the current prop mismatch: - Engine's [Roleplay runtime contribution](https://github.com/Pasta-Devs/Marinara-Engine/blob/ce90b08b703aa6aeff57b023f5bee933b9f1dc4f/packages/client/src/components/chat/ChatInput.tsx#L1859-L1877), [Game runtime contribution](https://github.com/Pasta-Devs/Marinara-Engine/blob/ce90b08b703aa6aeff57b023f5bee933b9f1dc4f/packages/client/src/components/game/GameInput.tsx#L398-L415), and [in-game world-map contribution](https://github.com/Pasta-Devs/Marinara-Engine/blob/ce90b08b703aa6aeff57b023f5bee933b9f1dc4f/packages/client/src/components/game/GameMap.tsx#L776-L789) supply `chatId` but not `chatMode`. - The [World Maps wrapper forwards `props.chatMode` into the library](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/scripts/build-feature-packages.mjs#L699-L701), and the [library defines a supported target](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapLibrary.tsx#L165-L168) as a non-empty chat ID plus `roleplay` or `game` mode. - The [shared-world card renders **Link to chat** only for that supported-chat branch](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapLibrary.tsx#L935-L970); otherwise it renders a global Delete action. ## Additional context This is a regression/integration gap following completed World Maps work: - [Marinara-Agents #135](https://github.com/Pasta-Devs/Marinara-Agents/issues/135) established **Replace / start over** with template/shared-world selection. - [Marinara-Agents #162](https://github.com/Pasta-Devs/Marinara-Agents/issues/162) established clearer shared-world association and replacement navigation. - [Engine #4323](https://github.com/Pasta-Devs/Marinara-Engine/issues/4323) addressed selecting a shared world during initial Game setup; this report concerns replacing an already-existing chat map from the runtime/editor flow. World Maps should continue enforcing history and current-location safety. The bug is that the linking action disappears before those validations can run because Engine did not preserve the target chat mode across the capability entry point. ## Template check - [ ] I DID NOT read this template and provide the requested details.
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#2470
No description provided.