[GH-ISSUE #217] [Feature]: Give World Map-imported lorebooks distinguishable names and show the reuse/create outcome #110

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/217

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

Importing a World Map with portable lore can create additional lorebooks that retain the exact original lorebook names. Several identical names then appear in the library, making it difficult to identify the original lorebook versus copies tied to imported maps.

The import dialog currently offers Import separate copies and Reuse matches & import the rest, but it does not make the concrete result clear. Both choices can create a new lorebook: separate import always creates copies, while reuse still creates a book for any unmatched entries.

Proposed package or change

Improve World Map portable-lore import so the result is distinguishable before and after import:

  • Give newly created lorebook copies a clear, collision-safe name such as <Original lorebook> - World Map or <Original lorebook> - <Map name> (World Map).
  • Do not rename an existing lorebook that the reuse strategy selects.
  • Before confirmation, summarize the expected outcome: how many existing entries/books will be reused and how many entries/books will be created.
  • After import, list the lorebooks that were reused or created and retain provenance linking the created copy to the imported map.
  • If every portable entry has an exact or explicitly selected match, Reuse matches & import the rest should create zero new lorebooks.

Why should this be optional?

This behavior belongs to the downloadable World Maps package because that package owns portable map/lore export, conflict planning, and its import dialog. It does not require a general Engine-wide lorebook naming convention.

Alternatives considered

  • Keep the original names and rely on users to inspect entries: this is the current confusing behavior.
  • Add a suffix only when a collision is detected: better than identical names, but an always-visible World Map provenance suffix for newly created copies is easier to understand.
  • Reuse by name alone: not safe because same-named lorebooks can contain different content; reuse should continue to require exact/unique matches or an explicit choice.

Additional context

Current staging behavior:

  • The dialog exposes the two strategies in PortableLoreImportDialog.tsx.
  • The reuse strategy skips matched entries, but creates a lorebook for unmatched entries with name: book.name, which makes imported copies indistinguishable in the library.
  • Related portable-lore work: #181. This request is specifically about naming and communicating the selected strategy's outcome.

Reported environment: Marinara Engine v2.4.1 (builds a89b71f and 6a6fccb), World Maps v1.3.0. Install type, OS, and browser/app shell were not provided.

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/217 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? Importing a World Map with portable lore can create additional lorebooks that retain the exact original lorebook names. Several identical names then appear in the library, making it difficult to identify the original lorebook versus copies tied to imported maps. The import dialog currently offers **Import separate copies** and **Reuse matches & import the rest**, but it does not make the concrete result clear. Both choices can create a new lorebook: separate import always creates copies, while reuse still creates a book for any unmatched entries. ## Proposed package or change Improve World Map portable-lore import so the result is distinguishable before and after import: - Give newly created lorebook copies a clear, collision-safe name such as `<Original lorebook> - World Map` or `<Original lorebook> - <Map name> (World Map)`. - Do not rename an existing lorebook that the reuse strategy selects. - Before confirmation, summarize the expected outcome: how many existing entries/books will be reused and how many entries/books will be created. - After import, list the lorebooks that were reused or created and retain provenance linking the created copy to the imported map. - If every portable entry has an exact or explicitly selected match, **Reuse matches & import the rest** should create zero new lorebooks. ## Why should this be optional? This behavior belongs to the downloadable World Maps package because that package owns portable map/lore export, conflict planning, and its import dialog. It does not require a general Engine-wide lorebook naming convention. ## Alternatives considered - Keep the original names and rely on users to inspect entries: this is the current confusing behavior. - Add a suffix only when a collision is detected: better than identical names, but an always-visible World Map provenance suffix for newly created copies is easier to understand. - Reuse by name alone: not safe because same-named lorebooks can contain different content; reuse should continue to require exact/unique matches or an explicit choice. ## Additional context Current `staging` behavior: - The dialog exposes the two strategies in [`PortableLoreImportDialog.tsx`](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/components/PortableLoreImportDialog.tsx#L194-L221). - The reuse strategy skips matched entries, but creates a lorebook for unmatched entries with [`name: book.name`](https://github.com/Pasta-Devs/Marinara-Agents/blob/8318164b79221073e39edf63f74264f62b12ce8a/packages/hierarchical-maps/src/engine/packages/client/src/features/spatial-context/portable-lore.ts#L606-L644), which makes imported copies indistinguishable in the library. - Related portable-lore work: #181. This request is specifically about naming and communicating the selected strategy's outcome. Reported environment: Marinara Engine v2.4.1 (builds a89b71f and 6a6fccb), World Maps v1.3.0. Install type, OS, and browser/app shell were not provided. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:24:28 +07:00
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#110
No description provided.