mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #912] [Issue]: Large image uploads can deadlock replies with OpenAI 413 payload errors #445
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#445
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 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/912
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Sending a large uploaded image into chat can deadlock the assistant reply path when the model starts responding to the picture. The OpenAI API returns a request-size failure instead of the app resizing or otherwise handling the upload safely.
Expected behavior
Uploaded images should be resized/compressed before they are sent to the AI provider, or the app should reject/handle oversized images before generation starts. The assistant should not get stuck when replying to an image message.
Actual behavior
When the AI attempts to start writing a reply to the uploaded picture, the request fails with:
The user described this as a total deadlock.
Steps to reproduce
Marinara Engine version
Not specified; has happened across versions and still occurs in newest.
Install type
Has occurred on a variety of installs.
OS + version
Definitely happens at least on Windows.
Browser or app shell
Not specified.
Screenshots or video
Logs
Additional context
Reporter suggested adding image resizing on upload to prevent oversized image payloads from reaching the provider and deadlocking the reply attempt.
@SpicyMarinara commented on GitHub (May 17, 2026):
Fixing.
@SpicyMarinara commented on GitHub (May 17, 2026):
Fixed on staging in
d517e577: chat image attachments are now compressed before generation and provider-bound oversized image data URLs are capped so OpenAI 413 payload errors no longer deadlock replies.