mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7529] [MERGED] fix(image): make the image response size limit configurable #7777
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#7777
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/7529
Author: @Gunterlie
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/7526-image-response-limit📝 Commits (2)
1bee5d6fix(image): make the image response size limit configurable38e037cdocs: say the 30 MiB image response limit is the default📊 Changes
6 files changed (+64 additions, -2 deletions)
View changed files
📝
.env.example(+3 -0)📝
docs/CONFIGURATION.md(+2 -1)📝
docs/TROUBLESHOOTING.md(+1 -0)📝
packages/server/src/config/env-watcher.ts(+1 -0)📝
packages/server/src/services/image/image-generation.ts(+15 -1)➕
scripts/regressions/image-response-limit.regression.ts(+42 -0)📄 Description
Linked issue
Closes #7526
Why this change
Outbound response exceeded 31457280 bytes. The user had no way to raise the cap and no hint about the cause.What changed
.envsettingIMAGE_GEN_MAX_RESPONSE_BYTES. The default stays 30 MiB. A blank, zero, or malformed value falls back to the default, so a typo cannot disable the cap. It mirrorsVIDEO_GEN_MAX_RESPONSE_BYTESand needs a restart.Outbound response exceeded N bytes. Raise IMAGE_GEN_MAX_RESPONSE_BYTES in .env and restart Marinara to accept larger images..env.example,docs/CONFIGURATION.md,docs/TROUBLESHOOTING.md, and the env-watcher restart list.scripts/regressions/image-response-limit.regression.ts.Not changed, on purpose:
runpod-comfyui.service.ts) and Venice keep their own fixed 30 MiB caps. They are not in the path of the issue.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent:
node ./scripts/run-regressions.mjs --filter scripts/regressions/image-response-limit.regression.ts: passed.image-generation-timeoutandgreeting-image-bakeregressions: passed.pnpm --filter @marinara-engine/server run lint(tsc): passed.pnpm format:check: passed.pnpm checkwas not run locally. CI runs it.Local review:
causefrom the wrapped error, because route error formatters appendcause.messageand printed the limit twice. Not done: a warning log for a malformed value (optional, the video setting has none).Manual verification notes
IMAGE_GEN_MAX_RESPONSE_BYTES=104857600, restart, and generate a ComfyUI image whose output file is larger than 30 MiB. The image must arrive.IMAGE_GEN_MAX_RESPONSE_BYTES.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs changed:
docs/CONFIGURATION.md,docs/TROUBLESHOOTING.md. Follow-up for translations: https://github.com/Pasta-Devs/Marinara-Engine/issues/7528UI evidence (if applicable)
None. Server and docs only.
Summary by CodeRabbit
IMAGE_GEN_MAX_RESPONSE_BYTES. The default is 30 MiB; invalid values use the default, and changing the setting requires a server restart.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.