mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1300] [MERGED] Fix generated image metadata provenance #5021
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#5021
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1300
Author: @cha1latte
Created: 5/26/2026
Status: ✅ Merged
Merged: 5/26/2026
Merged by: @cha1latte
Base:
refactor← Head:fix/refactor-issue-1234-image-metadata📝 Commits (2)
085b8bbFix generated image metadata provenanceec045a3Merge branch 'refactor' into fix/refactor-issue-1234-image-metadata📊 Changes
2 files changed (+65 additions, -2 deletions)
View changed files
📝
src-tauri/src/commands/storage/images.rs(+7 -2)📝
src-tauri/src/commands/storage/images/providers.rs(+58 -0)📄 Description
Linked issue
Closes #1234
Why this change
image_generatecommand returned image data without the actual image source or model. The TypeScript save path already preserved those fields when present, but fell back toimage_generationandnullwhen the native command omitted them.What changed
image_generateJSON response while preserving the existingbase64,mimeType, andimagefields.Refactor impact
Primary owner:
Rust storage / image generation command contract.
Impact areas reviewed:
src-tauri/src/commands/storage/images.rssrc-tauri/src/commands/storage/images/providers.rssrc/engine/generation/connected-commands.tssave path behavior, via scratch reproBoundary notes:
providerandmodel.Pressure points touched:
image_generateresponse payload only; no command registration or UI surface changes.Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
pnpm exec vitest run --config scratch/vitest.issue-1234.config.ts: before the fix, the native response shape lackedprovider/model, and the connected selfie gallery save producedprovider: "image_generation"andmodel: null.provider: "openrouter"andmodel: "google/gemini-2.5-flash-image"reaching the saved gallery row.pnpm checkon the final diff. The first Rust rerun hit a sandbox/build-target permission issue after clearingsrc-tauri/target; rerunningpnpm check:rustoutside the sandbox succeeded, and the final fullpnpm checkpassed.node C:\Users\celia\.codex\tools\marinara-proof-gate.mjs scratch/bugfix-verification.json; the proof gate passed.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNo docs or release metadata changes are needed for this narrow response-contract fix.
UI evidence
N/A. This is not a visual/UI issue; proof is the scratch connected-command repro and final
pnpm check.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.