[GH-ISSUE #219] [Issue]: Published shared-world changes do not appear in other linked chats #111

Closed
opened 2026-10-20 17:24:28 +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-Agents/issues/219

Originally assigned to: @thetopham on GitHub.

Summary

Publishing reviewed changes from one chat linked to a shared World Map updates the canonical world, but another chat linked to that same world can still open with the previous definition and omit newly added locations.

The reporter has one shared world, no independent templates, and the world reports six linked chats. The publish action reports success and the canonical version contains the changes, but a different linked chat does not receive them.

Affected package

World Maps (hierarchical-maps)

Expected behavior

  • Publishing a linked chat's reviewed draft updates the canonical shared-world revision.
  • A different linked chat with no unpublished local draft resolves or refreshes to that latest canonical definition, including newly added locations.
  • A linked chat that does have an unpublished local draft keeps that draft rather than being silently overwritten, but clearly reports that the canonical world changed and presents the existing conflict-resolution choices (discard, fork, or publish when valid).
  • The publish-success UI should make it clear whether the canonical revision was saved and whether other open/linked chat caches were refreshed or require reopening.

This matches the current confirmation copy, which says that every linked chat will receive the new canonical definition.

Actual behavior

  1. The source chat adds locations and publishes its reviewed changes.
  2. The UI reports that the changes were pushed to the canonical version.
  3. The shared-world library reflects the canonical update and shows six linked chats.
  4. Opening a different chat linked to the same shared world still shows the older definition without the new locations.

The reporter confirmed there is one shared map and zero independent templates, so this does not appear to be confusion between a shared link and an imported/template copy.

It is not yet known whether the receiving chat had an unpublished draft. That distinction must be included in reproduction because the package intentionally prefers a chat draft over the canonical definition and marks it conflicted when its base revision is stale.

Steps to reproduce

  1. Create or choose one shared World Map linked to at least two chats.
  2. In linked chat A, open the map editor, add one or more clearly identifiable locations, save the chat draft, and publish it to the shared world.
  3. Confirm the publish-success message and verify the canonical world contains the new locations.
  4. Open linked chat B and confirm its shared-world identity matches chat A.
  5. Observe whether chat B contains the newly published locations.
  6. Repeat with chat B having no local draft before chat A publishes; verify it refreshes to the new canonical revision.
  7. Repeat with chat B having an unpublished local draft before chat A publishes; verify its draft is preserved, its status becomes a visible shared-world conflict, and the new canonical revision is available through the intended resolution flow.
  8. Exercise both an already-open chat B and a newly reopened/reloaded chat B to distinguish cache invalidation from persisted-link resolution.

Environment

  • Marinara Engine version: Not provided; reported against the current user build on 2026-08-03
  • Package version: Current installed World Maps build; exact version not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided
  • Shared-world state: 1 shared world, 0 independent templates, 6 linked chats

Logs, screenshots, or video

No debug log or recording was supplied for this publish case.

Relevant source behavior on current staging (8318164b79221073e39edf63f74264f62b12ce8a):

Additional context

This is separate from the queued-movement Needs review loop. The key diagnostic question here is whether the receiving chat is clean or has a pending draft:

  • If clean, the report suggests stale client/cache data or failure to resolve the latest canonical revision.
  • If drafted, preserving the draft is intentional, but silently looking unchanged without an obvious conflict/revision indicator is still a UX failure.

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-Agents/issues/219 Originally assigned to: @thetopham on GitHub. ## Summary Publishing reviewed changes from one chat linked to a shared World Map updates the canonical world, but another chat linked to that same world can still open with the previous definition and omit newly added locations. The reporter has one shared world, no independent templates, and the world reports six linked chats. The publish action reports success and the canonical version contains the changes, but a different linked chat does not receive them. ## Affected package World Maps (`hierarchical-maps`) ## Expected behavior - Publishing a linked chat's reviewed draft updates the canonical shared-world revision. - A different linked chat with **no unpublished local draft** resolves or refreshes to that latest canonical definition, including newly added locations. - A linked chat that **does have an unpublished local draft** keeps that draft rather than being silently overwritten, but clearly reports that the canonical world changed and presents the existing conflict-resolution choices (discard, fork, or publish when valid). - The publish-success UI should make it clear whether the canonical revision was saved and whether other open/linked chat caches were refreshed or require reopening. This matches the current confirmation copy, which says that every linked chat will receive the new canonical definition. ## Actual behavior 1. The source chat adds locations and publishes its reviewed changes. 2. The UI reports that the changes were pushed to the canonical version. 3. The shared-world library reflects the canonical update and shows six linked chats. 4. Opening a different chat linked to the same shared world still shows the older definition without the new locations. The reporter confirmed there is one shared map and zero independent templates, so this does not appear to be confusion between a shared link and an imported/template copy. It is not yet known whether the receiving chat had an unpublished draft. That distinction must be included in reproduction because the package intentionally prefers a chat draft over the canonical definition and marks it conflicted when its base revision is stale. ## Steps to reproduce 1. Create or choose one shared World Map linked to at least two chats. 2. In linked chat A, open the map editor, add one or more clearly identifiable locations, save the chat draft, and publish it to the shared world. 3. Confirm the publish-success message and verify the canonical world contains the new locations. 4. Open linked chat B and confirm its shared-world identity matches chat A. 5. Observe whether chat B contains the newly published locations. 6. Repeat with chat B having **no local draft** before chat A publishes; verify it refreshes to the new canonical revision. 7. Repeat with chat B having an **unpublished local draft** before chat A publishes; verify its draft is preserved, its status becomes a visible shared-world conflict, and the new canonical revision is available through the intended resolution flow. 8. Exercise both an already-open chat B and a newly reopened/reloaded chat B to distinguish cache invalidation from persisted-link resolution. ## Environment - Marinara Engine version: Not provided; reported against the current user build on 2026-08-03 - Package version: Current installed World Maps build; exact version not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided - Shared-world state: 1 shared world, 0 independent templates, 6 linked chats ## Logs, screenshots, or video No debug log or recording was supplied for this publish case. Relevant source behavior on current `staging` (`8318164b79221073e39edf63f74264f62b12ce8a`): - [Publish confirmation promises every linked chat receives the canonical definition](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/SpatialMapWorkspace.tsx#L1750-L1753). - [Successful publish updates the source chat and shared-world list, then invalidates all spatial-context queries](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/packages/hierarchical-maps/src/engine/packages/client/src/hooks/use-spatial-context.ts#L649-L670). - [Linked chats with a draft intentionally resolve from that draft](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/shared-world.service.ts#L175-L185), while [clean linked chats resolve from the canonical world](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/packages/hierarchical-maps/src/engine/packages/server/src/services/spatial-context/shared-world.service.ts#L223-L255). ## Additional context This is separate from the queued-movement `Needs review` loop. The key diagnostic question here is whether the receiving chat is clean or has a pending draft: - If clean, the report suggests stale client/cache data or failure to resolve the latest canonical revision. - If drafted, preserving the draft is intentional, but silently looking unchanged without an obvious conflict/revision indicator is still a UX failure. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:24:28 +07:00
  • closed this issue
  • added the
    bug
    label
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-Agents#111
No description provided.