[GH-ISSUE #4278] [Feature]: Resolve Global Gallery images for spatial references #2315

Closed
opened 2026-10-21 05:47:13 +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-Engine/issues/4278

Originally assigned to: @thetopham on GitHub.

What problem does this solve?

World Maps can assign a location reference image that Roleplay Illustrator and Game Storyboards receive through Marinara Engine's spatial projection. The current resolver accepts only an unqualified chat Gallery image ID and rejects images outside the active chat.

Marinara Engine already has an account-wide Global Gallery. Reusable illustrated map templates and future shared worlds should be able to reference one existing account asset instead of copying the same bytes into every chat Gallery. Without host support, downloadable packages cannot safely send those shared location references to image providers.

Proposed solution

Extend the generic spatial location-reference resolver with a backward-compatible, source-aware reference format.

  • Continue treating existing unqualified IDs as current-chat Gallery images.
  • Recognize an explicit Global Gallery reference and resolve it through the existing Global Gallery storage and guarded file path.
  • Keep missing, deleted, malformed, or unsupported references non-fatal and visible in debug logging.
  • Do not add another binary asset store or duplicate existing Global Gallery files.
  • Add focused regression coverage for legacy chat references, valid Global Gallery references, missing records, and unsafe or missing files.
  • Keep the change compatible with the active gallery lifecycle work in #4276.

The downloadable World Maps package will own its artwork picker, template serialization, import/export remapping, and shared-world behavior. This Engine issue covers only the generic provider-facing host resolution needed before Engine 2.3.5 leaves staging.

Alternatives considered

  • Copy every shared image into each chat Gallery. This preserves the current resolver but recreates the storage duplication reported in Pasta-Devs/Marinara-Agents#133.
  • Use the shared Backgrounds library as the canonical reference store. Backgrounds are filename-based and renameable, making them less suitable than stable Global Gallery IDs for durable references.
  • Allow arbitrary cross-chat Gallery IDs. Chat Gallery ownership and deletion semantics make that ambiguous and unsafe.
  • Create a new Maps-specific blob store. Global Gallery already provides account-wide image storage and metadata.

Additional context

Companion package issues:

This is the narrow Engine foundation for those package-owned features, not the complete shared-world implementation.

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-Engine/issues/4278 Originally assigned to: @thetopham on GitHub. ## What problem does this solve? World Maps can assign a location reference image that Roleplay Illustrator and Game Storyboards receive through Marinara Engine's spatial projection. The current resolver accepts only an unqualified chat Gallery image ID and rejects images outside the active chat. Marinara Engine already has an account-wide Global Gallery. Reusable illustrated map templates and future shared worlds should be able to reference one existing account asset instead of copying the same bytes into every chat Gallery. Without host support, downloadable packages cannot safely send those shared location references to image providers. ## Proposed solution Extend the generic spatial location-reference resolver with a backward-compatible, source-aware reference format. - Continue treating existing unqualified IDs as current-chat Gallery images. - Recognize an explicit Global Gallery reference and resolve it through the existing Global Gallery storage and guarded file path. - Keep missing, deleted, malformed, or unsupported references non-fatal and visible in debug logging. - Do not add another binary asset store or duplicate existing Global Gallery files. - Add focused regression coverage for legacy chat references, valid Global Gallery references, missing records, and unsafe or missing files. - Keep the change compatible with the active gallery lifecycle work in #4276. The downloadable World Maps package will own its artwork picker, template serialization, import/export remapping, and shared-world behavior. This Engine issue covers only the generic provider-facing host resolution needed before Engine 2.3.5 leaves staging. ## Alternatives considered - Copy every shared image into each chat Gallery. This preserves the current resolver but recreates the storage duplication reported in Pasta-Devs/Marinara-Agents#133. - Use the shared Backgrounds library as the canonical reference store. Backgrounds are filename-based and renameable, making them less suitable than stable Global Gallery IDs for durable references. - Allow arbitrary cross-chat Gallery IDs. Chat Gallery ownership and deletion semantics make that ambiguous and unsafe. - Create a new Maps-specific blob store. Global Gallery already provides account-wide image storage and metadata. ## Additional context Companion package issues: - Pasta-Devs/Marinara-Agents#129 — preserve World Maps artwork in reusable templates. - Pasta-Devs/Marinara-Agents#133 — support one shared World Map across multiple chats. This is the narrow Engine foundation for those package-owned features, not the complete shared-world implementation. ## 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#2315
No description provided.