mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2458] [Issue]: Refactor NovelAI image outputs omit legacy request metadata #1206
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#1206
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 @Xelvanis on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2458
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The refactor NovelAI image transport normalizes returned image bytes, MIME type, and extension, but static trace found no equivalent to the legacy
marinara_novelai_requestPNG metadata injection. This leaves NovelAI-generated PNG assets without the request metadata legacy wrote before storage callers saved the output.Related parity tracker: #2410.
Related fixed normalization issue: #2437.
Expected behavior
NovelAI zip or direct PNG responses should preserve the legacy embedded PNG metadata behavior when the output is a PNG.
Legacy behavior in
packages/server/src/services/image/image-generation.ts:generateNovelAIextracted NovelAI zip/direct PNG bytes.appendNovelAiGenerationMetadatabefore returning{ base64, mimeType: "image/png", ext: "png" }.appendNovelAiGenerationMetadatawrote amarinara_novelai_requestPNG text chunk containing provider/request metadata.Actual behavior
Current refactor behavior in
src-tauri/src/commands/storage/images/providers.rs:parse_novelai_image_responseaccepts NovelAI zip/direct image/JSON responses.normalized_image_bytes.appendNovelAiGenerationMetadataormarinara_novelai_requestbefore storage callers receive the generated asset.The refactor normalization work from #2437 appears fixed for ext/base64 shape, but this residual metadata parity gap remains unless the metadata was intentionally retired.
Steps to reproduce
src-tauri/src/commands/storage/images/providers.rsonorigin/refactor@1a18f83d.parse_novelai_image_responsefor zip and direct PNG responses.packages/server/src/services/image/image-generation.ts, wheregenerateNovelAIcallsappendNovelAiGenerationMetadatafor zip and direct PNG outputs.marinara_novelai_requestor an equivalent NovelAI metadata writer.Impact area
Environment
origin/refactor@1a18f83dstatic parity traceLogs, screenshots, or video
No live provider call was run. Evidence is static trace from #2410.
Regression notes
Legacy behavior existed in
packages/server/src/services/image/image-generation.tsthroughappendNovelAiGenerationMetadataand themarinara_novelai_requestPNG text chunk.Additional context
If preserving this metadata is no longer desired, classify it as an intentional divergence and update #2410 instead of restoring it.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jun 6, 2026):
Fixed on
refactorina68177b5.marinara_novelai_requestPNGiTXtmetadata chunk before normalization.Verification:
cargo test --manifest-path src-tauri/Cargo.toml novelai_png_outputs_include_request_metadata_chunk -- --nocapturecargo check --manifest-path src-tauri/Cargo.toml --workspacepnpm check:architecture