[GH-ISSUE #155] [Issue]: Opening linked lore discards unsaved World Map edits without warning #73

Closed
opened 2026-10-20 17:24:05 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @thetopham on GitHub (Jul 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/155

Originally assigned to: @thetopham on GitHub.

Summary

Opening a linked lorebook from the World Maps location editor navigates to the correct lorebook, but silently discards all pending World Map edits. There is no Save, Discard, or Cancel warning before leaving the editor.

This is a data-loss bug affecting unsaved map work.

Affected package

World Maps (hierarchical-maps) v1.2.3

Expected behavior

When the map has pending edits and the user selects Open for a linked lorebook entry, World Maps should protect the draft before navigating. At minimum, show the existing unsaved-changes confirmation with clear choices to remain in the editor or discard the draft. If supported by the product flow, saving before navigation may also be offered.

Opening a lorebook when the map is clean should continue navigating directly to the associated lorebook/entry.

Actual behavior

  • Open navigates to the associated lorebook successfully.
  • Every pending World Map edit is discarded.
  • No warning or confirmation is displayed.
  • Returning to World Maps does not restore the lost draft.

Steps to reproduce

  1. Install or update World Maps to v1.2.3.
  2. Open an existing map and make one or more edits without saving.
  3. Select a location and expand Linked lore.
  4. Attach or select a linked lorebook entry.
  5. Click Open beside that linked entry.
  6. Observe that Marinara Engine opens the associated lorebook/entry.
  7. Return to World Maps.
  8. Observe that the pending map edits were discarded without warning.

Environment

  • Marinara Engine version: v2.3.5
  • Engine build: a121d12
  • Package version: World Maps v1.2.3
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

A screenshot was provided in the original beta-review conversation but is not attached to this issue yet.

Additional context

The World Maps workspace already has an unsaved-change confirmation for closing the editor. The Linked lore Open button currently calls the host navigation callback directly, bypassing that protection. The fix should cover this internal navigation route and preserve the existing clean-map behavior.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/155 Originally assigned to: @thetopham on GitHub. ## Summary Opening a linked lorebook from the World Maps location editor navigates to the correct lorebook, but silently discards all pending World Map edits. There is no Save, Discard, or Cancel warning before leaving the editor. This is a data-loss bug affecting unsaved map work. ## Affected package World Maps (`hierarchical-maps`) v1.2.3 ## Expected behavior When the map has pending edits and the user selects **Open** for a linked lorebook entry, World Maps should protect the draft before navigating. At minimum, show the existing unsaved-changes confirmation with clear choices to remain in the editor or discard the draft. If supported by the product flow, saving before navigation may also be offered. Opening a lorebook when the map is clean should continue navigating directly to the associated lorebook/entry. ## Actual behavior - **Open** navigates to the associated lorebook successfully. - Every pending World Map edit is discarded. - No warning or confirmation is displayed. - Returning to World Maps does not restore the lost draft. ## Steps to reproduce 1. Install or update World Maps to v1.2.3. 2. Open an existing map and make one or more edits without saving. 3. Select a location and expand **Linked lore**. 4. Attach or select a linked lorebook entry. 5. Click **Open** beside that linked entry. 6. Observe that Marinara Engine opens the associated lorebook/entry. 7. Return to World Maps. 8. Observe that the pending map edits were discarded without warning. ## Environment - Marinara Engine version: v2.3.5 - Engine build: a121d12 - Package version: World Maps v1.2.3 - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video A screenshot was provided in the original beta-review conversation but is not attached to this issue yet. ## Additional context The World Maps workspace already has an unsaved-change confirmation for closing the editor. The Linked lore **Open** button currently calls the host navigation callback directly, bypassing that protection. The fix should cover this internal navigation route and preserve the existing clean-map behavior. ## 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-Agents#73
No description provided.