mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1234] [Issue]: Refactor generated images lose provider and model metadata #603
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#603
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 @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 optionalproviderandmodelfields 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_generatereturns only:base64mimeTypeimageThe connected-command save path then stores:
provider: image.provider ?? "image_generation"model: image.model ?? nullSo generated items can be saved with generic provider metadata and
nullmodel.Steps to reproduce
upstream/refactorat commit507e64ac.Marinara Engine version
upstream/refactorcommit507e64acInstall 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:
Additional context
Likely owner/component: image generation response contract in
src-tauri/src/commands/storage/images.rsand gallery save metadata insrc/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
@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_generationornullfor 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.