[GH-ISSUE #137] [Feature]: Preserve World Maps template artwork through Global Gallery #66

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

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

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

Account templates and shared World Maps need stable, reusable artwork without copying the same image into every chat Gallery. Existing chat-owned image IDs are not durable account references, while permanently embedding base64 in every template would create another binary asset store.

Proposed package or change

Add the narrow Global Gallery foundation used by #129 and #133:

  • Preserve namespaced Global Gallery artwork references in account templates and shared worlds.
  • Promote referenced chat Gallery artwork when saving or sharing a map.
  • Deduplicate exact image content against existing Global Gallery records before uploading.
  • Let template and chat map editors select shared artwork.
  • Reuse stable artwork IDs when a template is applied to multiple chats.
  • Keep portable JSON export/import self-contained by embedding artwork for transport, deduplicating it at import, and reconnecting references.
  • Preserve legacy chat Gallery references for existing maps.
  • Protect account artwork from deletion while a template, shared world, or chat draft references it.

Acceptance criteria:

  • Saving a map as a template preserves its location references and child-map backgrounds.
  • Exact duplicate artwork is reused rather than uploaded again.
  • Applying the template to multiple chats reuses shared artwork references.
  • Portable export/import includes and restores artwork without creating unnecessary duplicates.
  • Existing chat-local map artwork remains compatible.

Why should this be optional?

World Maps owns template serialization, image roles, promotion, import/export remapping, and editor pickers. Engine support should stay generic so other capability packages can use the same Global Gallery spatial-reference contract.

Alternatives considered

  • Copy images into every chat Gallery. This multiplies storage across scenarios.
  • Store opaque base64 bundles in templates. This duplicates bytes and complicates cleanup/editing.
  • Use renameable Backgrounds filenames as durable IDs. Global Gallery already provides stable account-owned records.
  • Allow arbitrary cross-chat Gallery IDs. Ownership and deletion semantics would be ambiguous.

Additional context

Implementation is in draft PR #136. Companion Engine support is Pasta-Devs/Marinara-Engine#4278 / Pasta-Devs/Marinara-Engine#4279.

This issue is the implementation-sized first phase of the broader template-artwork request #129 and shared-world request #133.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 30, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/137 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? Account templates and shared World Maps need stable, reusable artwork without copying the same image into every chat Gallery. Existing chat-owned image IDs are not durable account references, while permanently embedding base64 in every template would create another binary asset store. ## Proposed package or change Add the narrow Global Gallery foundation used by #129 and #133: - Preserve namespaced Global Gallery artwork references in account templates and shared worlds. - Promote referenced chat Gallery artwork when saving or sharing a map. - Deduplicate exact image content against existing Global Gallery records before uploading. - Let template and chat map editors select shared artwork. - Reuse stable artwork IDs when a template is applied to multiple chats. - Keep portable JSON export/import self-contained by embedding artwork for transport, deduplicating it at import, and reconnecting references. - Preserve legacy chat Gallery references for existing maps. - Protect account artwork from deletion while a template, shared world, or chat draft references it. Acceptance criteria: - [ ] Saving a map as a template preserves its location references and child-map backgrounds. - [ ] Exact duplicate artwork is reused rather than uploaded again. - [ ] Applying the template to multiple chats reuses shared artwork references. - [ ] Portable export/import includes and restores artwork without creating unnecessary duplicates. - [ ] Existing chat-local map artwork remains compatible. ## Why should this be optional? World Maps owns template serialization, image roles, promotion, import/export remapping, and editor pickers. Engine support should stay generic so other capability packages can use the same Global Gallery spatial-reference contract. ## Alternatives considered - Copy images into every chat Gallery. This multiplies storage across scenarios. - Store opaque base64 bundles in templates. This duplicates bytes and complicates cleanup/editing. - Use renameable Backgrounds filenames as durable IDs. Global Gallery already provides stable account-owned records. - Allow arbitrary cross-chat Gallery IDs. Ownership and deletion semantics would be ambiguous. ## Additional context Implementation is in draft PR #136. Companion Engine support is Pasta-Devs/Marinara-Engine#4278 / Pasta-Devs/Marinara-Engine#4279. This issue is the implementation-sized first phase of the broader template-artwork request #129 and shared-world request #133. ## 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#66
No description provided.