[GH-ISSUE #1234] [Issue]: Refactor generated images lose provider and model metadata #603

Closed
opened 2026-10-20 17:30:38 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @cha1latte on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1234

Originally assigned to: @cha1latte on GitHub.

Summary

On upstream/refactor, generated chat-gallery images can lose their actual provider/model metadata. The image generation command returns image data only, while the save path expects optional provider and model fields and falls back to generic values.

Expected behavior

Generated gallery entries should record the actual image provider/source and model used, so users can inspect, reuse, debug, and compare outputs later.

Actual behavior

image_generate returns only:

  • base64
  • mimeType
  • image

The connected-command save path then stores:

  • provider: image.provider ?? "image_generation"
  • model: image.model ?? null

So generated items can be saved with generic provider metadata and null model.

Steps to reproduce

  1. Check out upstream/refactor at commit 507e64ac.
  2. Configure image generation.
  3. Generate a chat-gallery image through the connected command/selfie/gallery path.
  4. Inspect the saved gallery record metadata.

Marinara Engine version

upstream/refactor commit 507e64ac

Install type

Source

OS + version

Windows, exact version not specified

Browser or app shell

Source/refactor app shell; identified by code-path audit during browser image-generation pass

Screenshots or video

Not a visual/UI issue.

Logs

Relevant code paths:

src-tauri/src/commands/storage/images.rs returns base64, mimeType, image from generate_image.
src/engine/generation/connected-commands.ts stores provider: image.provider ?? "image_generation" and model: image.model ?? null.

Additional context

Likely owner/component: image generation response contract in src-tauri/src/commands/storage/images.rs and gallery save metadata in src/engine/generation/connected-commands.ts.

This is output metadata loss: users may keep the image, but lose the exact generation source/model needed to reproduce or debug it.

Template check

  • I provided the required summary, behavior, reproduction, and environment details.
  • If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
Originally created by @cha1latte on GitHub (May 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1234 Originally assigned to: @cha1latte on GitHub. ### Summary On `upstream/refactor`, generated chat-gallery images can lose their actual provider/model metadata. The image generation command returns image data only, while the save path expects optional `provider` and `model` fields and falls back to generic values. ### Expected behavior Generated gallery entries should record the actual image provider/source and model used, so users can inspect, reuse, debug, and compare outputs later. ### Actual behavior `image_generate` returns only: - `base64` - `mimeType` - `image` The connected-command save path then stores: - `provider: image.provider ?? "image_generation"` - `model: image.model ?? null` So generated items can be saved with generic provider metadata and `null` model. ### Steps to reproduce 1. Check out `upstream/refactor` at commit `507e64ac`. 2. Configure image generation. 3. Generate a chat-gallery image through the connected command/selfie/gallery path. 4. Inspect the saved gallery record metadata. ### Marinara Engine version `upstream/refactor` commit `507e64ac` ### Install type Source ### OS + version Windows, exact version not specified ### Browser or app shell Source/refactor app shell; identified by code-path audit during browser image-generation pass ### Screenshots or video Not a visual/UI issue. ### Logs Relevant code paths: ```text src-tauri/src/commands/storage/images.rs returns base64, mimeType, image from generate_image. src/engine/generation/connected-commands.ts stores provider: image.provider ?? "image_generation" and model: image.model ?? null. ``` ### Additional context Likely owner/component: image generation response contract in `src-tauri/src/commands/storage/images.rs` and gallery save metadata in `src/engine/generation/connected-commands.ts`. This is output metadata loss: users may keep the image, but lose the exact generation source/model needed to reproduce or debug it. ### Template check - [ ] I provided the required summary, behavior, reproduction, and environment details. - [ ] If this is a visual/UI bug, blank screen, layout issue, mobile/responsive issue, incorrect image or sprite, broken animation, or unexpected error state, I attached screenshots or video.
bsakaguchi 2026-10-20 17:30:38 +07:00
Author
Owner

@Xelvanis commented on GitHub (May 26, 2026):

Additional audit note: this is a contract issue between the native image command result and the connected-command save path. While fixing provider/model propagation, it would be worth avoiding silent generic fallbacks like image_generation or null for fields the UI presents as provenance. If the backend cannot identify provider/model, the saved record should represent that explicitly or the command result should carry enough metadata for the save path to be truthful.

<!-- gh-comment-id:4544644030 --> @Xelvanis commented on GitHub (May 26, 2026): Additional audit note: this is a contract issue between the native image command result and the connected-command save path. While fixing provider/model propagation, it would be worth avoiding silent generic fallbacks like `image_generation` or `null` for fields the UI presents as provenance. If the backend cannot identify provider/model, the saved record should represent that explicitly or the command result should carry enough metadata for the save path to be truthful.
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#603
No description provided.