mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3633] [Issue]: Gallery generation buttons disappear with serialized chat metadata #1968
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#1968
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.metadataas 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
Environment
Logs, screenshots, or video
The live chat metadata contains
enableSpriteGeneration: trueand a validgameImageConnectionId, 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: