[GH-ISSUE #3633] [Issue]: Gallery generation buttons disappear with serialized chat metadata #1968

Closed
opened 2026-10-21 05:44:16 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @thetopham on GitHub.

Summary

Gallery generation actions disappear even when the Illustrator capability is installed and visual generation is enabled for the chat. Existing Gallery images remain available, but users lose the buttons for illustrations, storyboards, videos/animations, and backgrounds.

Expected behavior

When Illustrator is active and the chat enables visual generation, Gallery should show the generation action buttons supplied by the active mode.

Actual behavior

Gallery opens and displays existing media, but its generation action row is omitted. The drawer reads chat.metadata as an object even though chat API responses may serialize metadata as a JSON string, so the availability checks evaluate as disabled and the callbacks are removed.

Steps to reproduce

  1. Open a Game Mode chat with Illustrator enabled and an image-generation connection configured.
  2. Open Gallery from the Game toolbar.
  3. Observe that existing images appear, but the Illustration, Storyboard, Video/Animation, and Background actions are missing.

Environment

  • Marinara Engine version: 2.3.0
  • Install type: source
  • OS + version: Linux server
  • Browser or app shell: web client

Logs, screenshots, or video

The live chat metadata contains enableSpriteGeneration: true and a valid gameImageConnectionId, and the installed capability endpoint reports Illustrator as active. The Gallery drawer still removes all generation callbacks because it accesses the serialized metadata value directly.

Additional context

This regression was introduced by the Gallery capability gate in the recent agent/UI refactor. Parsing chat metadata through the existing shared client helper restores the intended checks without changing Gallery layout or generation behavior.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Jul 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3633 Originally assigned to: @thetopham on GitHub. ## Summary Gallery generation actions disappear even when the Illustrator capability is installed and visual generation is enabled for the chat. Existing Gallery images remain available, but users lose the buttons for illustrations, storyboards, videos/animations, and backgrounds. ## Expected behavior When Illustrator is active and the chat enables visual generation, Gallery should show the generation action buttons supplied by the active mode. ## Actual behavior Gallery opens and displays existing media, but its generation action row is omitted. The drawer reads `chat.metadata` as an object even though chat API responses may serialize metadata as a JSON string, so the availability checks evaluate as disabled and the callbacks are removed. ## Steps to reproduce 1. Open a Game Mode chat with Illustrator enabled and an image-generation connection configured. 2. Open Gallery from the Game toolbar. 3. Observe that existing images appear, but the Illustration, Storyboard, Video/Animation, and Background actions are missing. ## Environment - Marinara Engine version: 2.3.0 - Install type: source - OS + version: Linux server - Browser or app shell: web client ## Logs, screenshots, or video The live chat metadata contains `enableSpriteGeneration: true` and a valid `gameImageConnectionId`, and the installed capability endpoint reports Illustrator as active. The Gallery drawer still removes all generation callbacks because it accesses the serialized metadata value directly. ## Additional context This regression was introduced by the Gallery capability gate in the recent agent/UI refactor. Parsing chat metadata through the existing shared client helper restores the intended checks without changing Gallery layout or generation behavior. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:16 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
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#1968
No description provided.